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

Remove extra white space from print line #67

Open
adamklasicki opened this issue Jul 24, 2015 · 6 comments
Open

Remove extra white space from print line #67

adamklasicki opened this issue Jul 24, 2015 · 6 comments

Comments

@adamklasicki
Copy link

Problems installing with pip. Attached a screenshot of terminal output. Not sure if it is a problem with my setup or otherwise.
screen shot 2015-07-24 at 4 13 05 pm

@mandli
Copy link
Member

mandli commented Jul 24, 2015

There’s a sneaky character after the line continuation in there that is causing the error you are seeing and should be fixed.

That being said that line is executed if Python and git are having difficulties with the submodules (it's timing out). Does this happen every time you execute the pip install command?

@adamklasicki
Copy link
Author

mmm

Adams-MBP:~ adamklasicki$ pip install beautifulsoup
Downloading/unpacking beautifulsoup
  Downloading BeautifulSoup-3.2.1.tar.gz
  Running setup.py (path:/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/beautifulsoup/setup.py) egg_info for package beautifulsoup
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/beautifulsoup/setup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/beautifulsoup/setup.py", line 22

    print "Unit tests have failed!"

                                  ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/beautifulsoup
Storing debug log for failure in /Users/adamklasicki/.pip/pip.log
Adams-MBP:~ adamklasicki$ 

something wrong with my machine then?

@mandli mandli changed the title pip installation Remove extra white space from print line Jul 24, 2015
@mandli
Copy link
Member

mandli commented Jul 24, 2015

Really not sure, it is suspicious that other packages are failing to install though. I also changed the name of the issue to reflect what we know is going wrong.

@mandli
Copy link
Member

mandli commented Aug 4, 2015

Out of curiosity, what version of Python are you using?

@adamklasicki
Copy link
Author

So I've tried installing another random custom library through pip:


Adams-MBP:~ adamklasicki$ pip install scrapy
Downloading/unpacking scrapy
  Downloading Scrapy-1.0.1.tar.gz (948kB): 948kB downloaded
  Running setup.py (path:/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/scrapy/setup.py) egg_info for package scrapy

...

Successfully installed scrapy Twisted w3lib queuelib pyOpenSSL cssselect zope.interface cryptography idna pyasn1 cffi
Cleaning up...

and it works.

Regarding python2/3, Not sure if this is the correct way of doing things but i tried using pip3 and pip for installing clawpack and got the same results:


Adams-MBP:~ adamklasicki$ pip3 install clawpack
Downloading/unpacking clawpack
  Downloading clawpack-5.3.0.tar.gz (4.4MB): 4.4MB downloaded
  Running setup.py (path:/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/clawpack/setup.py) egg_info for package clawpack
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/clawpack/setup.py", line 234
        print "having difficulties updating submodules," + \
                                                       ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/clawpack/setup.py", line 234

    print "having difficulties updating submodules," + \

                                                   ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/ql/vfjj1dc96gb_l8v08zsyh3vc0000gn/T/pip_build_adamklasicki/clawpack
Storing debug log for failure in /Users/adamklasicki/.pip/pip.log

I think my system is defaulted to Python 3 as python command in the command line goes to 3:

Adams-MBP:3750 adamklasicki$ python
Python 3.4.1 |Anaconda 2.0.1 (x86_64)| (default, May 19 2014, 13:05:46) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

@mandli
Copy link
Member

mandli commented Aug 5, 2015

Unfortunately we do not support Python 3.x yet. Anaconda should allow you to use Python 2.7 instead so I would suggest you see how to use that version instead until more of the scientific Python packages are compatible with Python 3.x.

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