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

Fail to run "pip install -U grs" on Windows 8.1 #38

Open
snowuyl opened this issue Oct 28, 2016 · 1 comment
Open

Fail to run "pip install -U grs" on Windows 8.1 #38

snowuyl opened this issue Oct 28, 2016 · 1 comment

Comments

@snowuyl
Copy link

snowuyl commented Oct 28, 2016

Dear Toomore,

    I run the following command on Windows 8.1

pip install -U grs

But the following error occurred.
Collecting grs
Downloading grs-0.7.0.tar.gz (96kB)
42% |█████████████▋ | 40kB 91kB/s eta 0:00:01
53% |█████████████████ | 51kB 112kB/s eta 0:0
63% |████████████████████▌ | 61kB 134kB/s eta
74% |███████████████████████▉ | 71kB 119kB/s
85% |███████████████████████████▎ | 81kB 136k
95% |██████████████████████████████▊ | 92kB 1
100% |████████████████████████████████| 102k
B 166kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\snowuyl\AppData\Local\Temp\pip-build-mcrgjp54\grs\setup.py",
line 4, in
import grs
File "C:\Users\snowuyl\AppData\Local\Temp\pip-build-mcrgjp54\grs\grs__init
_.py", line 33, in
from .fetch_data import Stock
File "C:\Users\snowuyl\AppData\Local\Temp\pip-build-mcrgjp54\grs\grs\fetch

data.py", line 497
raise ConnectionError(), u'IN OFFLINE, NO DATA FETCH.'
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\snowuyl\A
ppData\Local\Temp\pip-build-mcrgjp54\grs\

Do you have any suggestion?

Thanks in advance!

snowuyl

@snowuyl
Copy link
Author

snowuyl commented Oct 29, 2016

I run moving_average.py again with Python 2.7.12. But it fail now. But moving_average.py can be run after I type "pip install -U grs" on Dos terminal first time.
My moving_average.py is as follows.
from grs import Stock

stock = Stock('6278')
tuple = stock.moving_average(1)

The error log is as follows.
C:\Users\snowuyl>cd \workspace_Python

C:\workspace_Python>python moving_average.py
Traceback (most recent call last):
File "moving_average.py", line 1, in
from grs import Stock
ImportError: cannot import name Stock

C:\workspace_Python>pip install -U grs
Requirement already up-to-date: grs in c:\python27\lib\site-packages
Requirement already up-to-date: ujson in c:\python27\lib\site-packages (from grs
)
Requirement already up-to-date: urllib3 in c:\python27\lib\site-packages (from g
rs)
Requirement already up-to-date: python-dateutil==1.5 in c:\python27\lib\site-pac
kages (from grs)

C:\workspace_Python>python moving_average.py
Traceback (most recent call last):
File "moving_average.py", line 1, in
from grs import Stock
ImportError: cannot import name Stock

C:\workspace_Python>

Do you have any suggestion?

Thanks in advance!

snowuyl

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

1 participant