vikstrous / pirate-get

A command line interface for The Pirate Bay
GNU Affero General Public License v3.0
337 stars 53 forks source link

SyntaxError: invalid syntax on Mac #78

Closed HelloGrayson closed 8 years ago

HelloGrayson commented 8 years ago

After fresh sudo pip install pirate-get, I'm unable to run the program:

~ » pirate-get -h
Traceback (most recent call last):
  File "/usr/local/bin/pirate-get", line 9, in <module>
    load_entry_point('pirate-get==0.2.8', 'console_scripts', 'pirate-get')()
  File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 519, in load_entry_point
  File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 2630, in load_entry_point
  File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 2310, in load
  File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 2316, in resolve
  File "/usr/local/lib/python2.7/site-packages/pirate/pirate.py", line 20
    from pirate.print import Printer
                    ^
SyntaxError: invalid syntax
vikstrous commented 8 years ago

What version of python 3 do you have?

On January 2, 2016 2:31:13 AM EST, Grayson Koonce notifications@github.com wrote:

After fresh sudo pip install pirate-get, I'm unable to run the program:

~ » pirate-get -h
Traceback (most recent call last):
 File "/usr/local/bin/pirate-get", line 9, in <module>
load_entry_point('pirate-get==0.2.8', 'console_scripts',
'pirate-get')()
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py",
line 519, in load_entry_point
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py",
line 2630, in load_entry_point
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py",
line 2310, in load
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py",
line 2316, in resolve
File "/usr/local/lib/python2.7/site-packages/pirate/pirate.py", line 20
   from pirate.print import Printer
                   ^
SyntaxError: invalid syntax

Reply to this email directly or view it on GitHub: https://github.com/vikstrous/pirate-get/issues/78

Sent from my Android device with K-9 Mail. Please excuse my brevity.

HelloGrayson commented 8 years ago

Aaaaand I installed with python2 :P

vikstrous commented 8 years ago

I'm surprised it let you. Do we not specify in pip that it works only on 3?

On January 2, 2016 2:51:41 AM EST, Grayson Koonce notifications@github.com wrote:

Aaaaand I installed with python2 :P


Reply to this email directly or view it on GitHub: https://github.com/vikstrous/pirate-get/issues/78#issuecomment-168372416

Sent from my Android device with K-9 Mail. Please excuse my brevity.

rnhmjoj commented 8 years ago

It's tagged as Programming Language :: Python :: 3 :: Only but probably this as no effect.

HelloGrayson commented 8 years ago

Suggest putting a check in setup.py and raising an exception if not greater than 3.wtvr, this will save people time.

Sent from my iPhone

On Jan 2, 2016, at 5:24 AM, Michele Guerini Rocco notifications@github.com wrote:

It's tagged as Programming Language :: Python :: 3 :: Only but probably this as no effect.

― Reply to this email directly or view it on GitHub.

vikstrous commented 8 years ago

https://github.com/vikstrous/pirate-get/pull/79

HelloGrayson commented 8 years ago

Cool, thanks @vikstrous