Aaronontheweb / scaffold-py

Simple project scaffolding for Python
Other
99 stars 23 forks source link

invalid syntax #15

Open aidiss opened 9 years ago

aidiss commented 9 years ago
E:\Coding>pyscaffold -p
Traceback (most recent call last):
  File "c:\users\main\anaconda3\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\main\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\main\Anaconda3\Scripts\pyscaffold.exe\__main__.py", line 5, in
<module>
  File "c:\users\main\anaconda3\lib\site-packages\scaffold\__main__.py", line 24

    except IOError as (errno, strerror):
                      ^
SyntaxError: invalid syntax```
chuckoy commented 8 years ago

You're probably using Python 3 and installed via Pip. Pip only has Scaffold version 0.1.3. The latest version which supports Python 3 is 0.1.5. Either wait for @Aaronontheweb to update the version on PyPI or clone this repo and run python setup.py install to manually install the latest version.

EDIT: I searched on the PyPI website, and it seems Scaffold 0.1.5 is already up there. However, when trying to install via Pip, it can't find 0.1.5 (and only until 0.1.3). I'm not sure if this error is because of pip or some other mistake along the way.

sbliven commented 5 years ago

@chuckoy This error exists in 0.1.5 as well. This is definitely a syntax error. It appears that the old py2.5 syntax except os.error, (errno, errstr) has been converted automatically to except...as format rather than updated to object-oriented exceptions.

sbliven commented 5 years ago

This was fixed in #12 (d47b1e1), after the 0.1.5 release. You need to install from source to use this package on python 3.

Aaronontheweb commented 5 years ago

@sbliven I'd be happy to give someone else control over this package - I have my hands full with a number of large .NET OSS projects and I'd love to make sure Python users who want to use this package can still deliver updates to it.

sbliven commented 5 years ago

@Aaronontheweb Sure, I'll send you an email.