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

self.contains_transaction: bool = False ^ SyntaxError: invalid syntax #4

Closed
drandreaskrueger opened this issue Nov 18, 2019 · 2 comments

Comments

@drandreaskrueger
Copy link

drandreaskrueger commented Nov 18, 2019

Hey!

Very happy to find your library.

However, when installing, I encountered this error:

python3 ./setup.py install

/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing top-level names to scalecodec.egg-info/top_level.txt
writing requirements to scalecodec.egg-info/requires.txt
writing scalecodec.egg-info/PKG-INFO
writing dependency_links to scalecodec.egg-info/dependency_links.txt
reading manifest file 'scalecodec.egg-info/SOURCES.txt'
writing manifest file 'scalecodec.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/exceptions.py -> build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/types.py -> build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/block.py -> build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/base.py -> build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/metadata.py -> build/bdist.linux-x86_64/egg/scalecodec
copying build/lib/scalecodec/__init__.py -> build/bdist.linux-x86_64/egg/scalecodec
byte-compiling build/bdist.linux-x86_64/egg/scalecodec/exceptions.py to exceptions.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/scalecodec/types.py to types.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/scalecodec/block.py to block.cpython-35.pyc
  File "build/bdist.linux-x86_64/egg/scalecodec/block.py", line 43
    self.contains_transaction: bool = False
                             ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-x86_64/egg/scalecodec/base.py to base.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/scalecodec/metadata.py to metadata.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/scalecodec/__init__.py to __init__.cpython-35.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying scalecodec.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying scalecodec.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying scalecodec.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying scalecodec.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying scalecodec.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/scalecodec-0.1.0-py3.5.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing scalecodec-0.1.0-py3.5.egg
Removing /env/lib/python3.5/site-packages/scalecodec-0.1.0-py3.5.egg
Copying scalecodec-0.1.0-py3.5.egg to /env/lib/python3.5/site-packages
scalecodec 0.1.0 is already the active version in easy-install.pth

Installed /env/lib/python3.5/site-packages/scalecodec-0.1.0-py3.5.egg
Processing dependencies for scalecodec==0.1.0
Searching for more-itertools==7.0.0
Best match: more-itertools 7.0.0
Adding more-itertools 7.0.0 to easy-install.pth file

Using /env/lib/python3.5/site-packages
Finished processing dependencies for scalecodec==0.1.0

Thanks

@arjanz
Copy link
Member

arjanz commented Nov 19, 2019

We removed the type hinting for compatibility, this is supporting since Python 3.5. Most likely it will now work with your version of Python 3

@arjanz arjanz closed this as completed Nov 19, 2019
@drandreaskrueger
Copy link
Author

Thanks a lot. Wow. That caused a long detour now:

There is a new Debian 10.2 now, so I dist-upgraded from Debian 9 - to then have python 3.7.

Also to work with your other library, because hashlib had no blake2b in python 3.5 ?!!

And wow, that 9-->10-upgrade has cost me nerves yesterday. And a whole day. But now I am a proud "Debian Buster" user, and can happily play with python 3.7.3. Good.

Idea: Is there a good automated way that you can always test your libraries whether they really run with all those versions?

Thanks.

posplaw pushed a commit to soramitsu/py-scale-codec that referenced this issue Oct 18, 2021
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