Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "using YFinance" along with other packages #23

Open
vsoler opened this issue Sep 15, 2024 · 3 comments
Open

Problem with "using YFinance" along with other packages #23

vsoler opened this issue Sep 15, 2024 · 3 comments

Comments

@vsoler
Copy link

vsoler commented Sep 15, 2024

I find that YFinance is very useful.

However, if I open the package along with other packages, I get an error message:

image

The workaround that I have found is opening the package separately.

Although this issue is not a big deal, perhaps it has an easy solution.

Thank you

@eohne
Copy link
Owner

eohne commented Sep 15, 2024

Thank you for reporting!
I will look into it.

@eohne
Copy link
Owner

eohne commented Sep 16, 2024

@vsoler couple of questions
Is this simply a Jupyter Notebook or a Pluto Notebook you are loading?
This issue should only happen at the precompilation stage and I wonder why YFinance has to keep being recompiled every time you load it....

I already know two things:

  1. This is only an issue with Julia 1.10 and above.
  2. This should only happen with pre-compilation.

@eohne
Copy link
Owner

eohne commented Sep 16, 2024

@vsoler Is this an error or just a warning? If running this in the REPL, or VSCode it acts just as a warning but actually precompiles and loads the packages successfully.

Still need to figure out how to solve this of course. In Julia 1.9 precompilation works without a problem and also runs much much faster than in 1.10.

I think the warnings come from the fact that the precompilation sends a HTTP.get request which streams the response.

As far as I can tell the only thing that I can do is get rid of precompilation entirely which increases each first call's execution time to 6-7 seconds (with precompilation it is ~ 0.008 seconds on my machine).

So normally this warning of the precompilation should only happen when you install the package or the first time you use it (ever). In subsequent using YFinance calls it should already be precompiled. I wonder why this is not the case for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants