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

cannot import name 'Stocker' from 'stocker' #65

Open
thecoltster1 opened this issue Jan 14, 2021 · 3 comments
Open

cannot import name 'Stocker' from 'stocker' #65

thecoltster1 opened this issue Jan 14, 2021 · 3 comments

Comments

@thecoltster1
Copy link

Getting this message:

  Message=cannot import name 'Stocker' from 'stocker' (C:\Users\Colter\AppData\Local\Programs\Python\Python38\lib\site-packages\stocker\__init__.py)
  Source=C:\Users\Colter\source\repos\Stockbroker\Stockbroker\Stockbroker.py
  StackTrace:
  File "C:\Users\Colter\source\repos\Stockbroker\Stockbroker\Stockbroker.py", line 2, in <module>
    from stocker import Stocker

This is my code:
`import tensorflow
from stocker import Stocker

amazon = Stocker('AMZN')`

Not sure what to do here?

@pardeep-tm
Copy link

You should use Jupyter Notebook and place the Stocker module in the same dir where ur notebook is.

@joshuah9
Copy link

joshuah9 commented Feb 8, 2021

I did that, and I get:
ImportError Traceback (most recent call last)
in
----> 1 from stocker import Stocker

ImportError: cannot import name 'Stocker' from 'stocker' (C:\Users\joshu\OneDrive\Desktop\Stocks\PredictiveStocks\stocker_init_.py)

not sure if I'm pulling the wrong stocker.

@Ankrik
Copy link

Ankrik commented Sep 5, 2021

I think you are referring to the Stocker package which helps in Stock Price Prediction.

Note

The Stocker package gets placed into the stocker directory. On the Stocker github it mentions how you should open a document in Jupyter Notebook from the stocker directory. Check if your stocker directory is in a hidden appdata folder, currently make the folder unhidden to try using Stocker.

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

4 participants