BlockIo / block_io-python

Python library for Block.io
MIT License
29 stars 72 forks source link

Dependency problem when installing on Python 3.4 #5

Closed miohtama closed 9 years ago

miohtama commented 10 years ago

When doing pip install block_io on Python 3 you get:

Downloading/unpacking block-io
  Downloading block-io-1.0.6.tar.gz
  Running setup.py (path:/Users/mikko/code/cryptoassets/venv/build/block-io/setup.py) egg_info for package block-io

Requirement already satisfied (use --upgrade to upgrade): requests in /Users/mikko/code/cryptoassets/venv/lib/python3.4/site-packages (from block-io)
Downloading/unpacking pycrypto (from block-io)
  Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded
  Running setup.py (path:/Users/mikko/code/cryptoassets/venv/build/pycrypto/setup.py) egg_info for package pycrypto

Downloading/unpacking hashlib (from block-io)
  Downloading hashlib-20081119.zip (42kB): 42kB downloaded
  Running setup.py (path:/Users/mikko/code/cryptoassets/venv/build/hashlib/setup.py) egg_info for package hashlib
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
      File "/Users/mikko/code/cryptoassets/venv/lib/python3.4/site-packages/setuptools/__init__.py", line 11, in <module>
        from setuptools.extension import Extension
      File "/Users/mikko/code/cryptoassets/venv/lib/python3.4/site-packages/setuptools/extension.py", line 5, in <module>
        from setuptools.dist import _get_unpatched
      File "/Users/mikko/code/cryptoassets/venv/lib/python3.4/site-packages/setuptools/dist.py", line 15, in <module>
        from setuptools.compat import numeric_types, basestring
      File "/Users/mikko/code/cryptoassets/venv/lib/python3.4/site-packages/setuptools/compat.py", line 48, in <module>
        import http.client as httplib
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 69, in <module>
        import email.parser
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/email/parser.py", line 12, in <module>
        from email.feedparser import FeedParser, BytesFeedParser
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/email/feedparser.py", line 27, in <module>
        from email import message
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/email/message.py", line 15, in <module>
        from email import utils
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/email/utils.py", line 28, in <module>
        import random
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 45, in <module>
        from hashlib import sha512 as _sha512
      File "/Users/mikko/code/cryptoassets/venv/build/hashlib/hashlib.py", line 80
        raise ValueError, "unsupported hash type"
                        ^
    SyntaxError: invalid syntax

Apparently some of the dependencies refer to (old?) versions which are not Python 3 compatible. I'll see if I can get bottom of this.

patricklodder commented 10 years ago

I can reproduce this with python3, thank you for the find.

miohtama commented 10 years ago

Thanks. See the related pull request :)

patricklodder commented 9 years ago

Python 3.x updates were just merged into master. Closing this :)