For no apparent reason my installed packages are not found


I have a repl that seemed to be working fine yesterday but when it ran today I got an error after my first import statement of a package that the package manager says is installed. It is listed in pyproject.toml also.

When the app runs I get a console error of:

Traceback (most recent call last):
  File "", line 2, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'

If I try to add via shell:

$ poetry add yfinance==0.1.74
poetry: command not installed. Multiple versions of this command were found in Nix.
Select one to run (or press Ctrl-C to cancel):

This is odd to me since it ran fine yesterday without any changes being made.

Can you please provide the link to your repl so we can take a look?

Thanks, I dug deeper and came to the conclusion I must have messed something up deep within settings since I did some major git/github branch updates and force pushes. I decided it is easier to just make a new repl from the main files which solves my previous concern about not running the most updated version of python and the packages. Thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.