ethereum / eth-hash

The Ethereum hashing function, keccak256, sometimes (erroneously) called sha256 or sha3
MIT License
104 stars 64 forks source link

Installation Failure #14

Closed jtn-ms closed 6 years ago

jtn-ms commented 6 years ago

I tried to install the package using the guide, but failed I typed pip install eth-hash then, I encountered the following failure ###############################3 Collecting eth-hash[pycryptodome] Downloading eth-hash-0.1.2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-_je_xR/eth-hash/setup.py", line 71, in 'Programming Language :: Python :: Implementation :: PyPy', File "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 272, in init _Distribution.init(self,attrs) File "/usr/lib/python2.7/distutils/dist.py", line 287, in init self.finalize_options() File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 327, in finalize_options ep.load()(self, ep.name, value) File "/usr/local/lib/python2.7/dist-packages/setuptools_markdown.py", line 22, in long_description_markdown_filename output = pypandoc.convert(markdown_filename, 'rst') File "/usr/local/lib/python2.7/dist-packages/pypandoc/init.py", line 66, in convert raise RuntimeError("Format missing, but need one (identified source as text as no " RuntimeError: Format missing, but need one (identified source as text as no file with that name was found).

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_je_xR/eth-hash/

pipermerriam commented 6 years ago

You need to upgrade to python3. eth-hash and the majority of the other python ethereum tools are python 3 only.

fooock commented 6 years ago

@pipermerriam sorry, but I'm trying to install web3 version 3.16.4 that has support for python2.7 and getting this error

Collecting eth-hash<1.0.0,>=0.1.0 (from eth-utils>=0.7.1->web3==3.16.4->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/17/25/eb0af4e225bd8c2226b9296474e4bd19d1174433b22b41d5680f1dcae090/eth-hash-0.1.2.tar.gz
    Complete output from command python setup.py egg_info:
    zip_safe flag not set; analyzing archive contents...
    pypandoc.__init__: module references __file__

    Installed /tmp/pip-build-_iilY3/eth-hash/.eggs/pypandoc-1.4-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-_iilY3/eth-hash/setup.py", line 71, in <module>
        'Programming Language :: Python :: Implementation :: PyPy',
      File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line 372, in __init__
        _Distribution.__init__(self, attrs)
      File "/usr/local/lib/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line 528, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-build-_iilY3/eth-hash/.eggs/setuptools_markdown-0.2-py2.7.egg/setuptools_markdown.py", line 22, in long_description_markdown_filename
        output = pypandoc.convert(markdown_filename, 'rst')
      File "/tmp/pip-build-_iilY3/eth-hash/.eggs/pypandoc-1.4-py2.7.egg/pypandoc/__init__.py", line 66, in convert
        raise RuntimeError("Format missing, but need one (identified source as text as no "
    RuntimeError: Format missing, but need one (identified source as text as no file with that name was found).

    ----------------------------------------

I'm using Python 2.7. How can I solve this? Thanks

pipermerriam commented 6 years ago

The eth-hash library does not support python 2.7 so there likely isn't a way for you to use it in a python2 environment.

maxrobot commented 6 years ago

I am having the same problem, using python2.7, however it occurs when I run pip install ethereum. Did this change recently as I have successfully installed on my machine 3 weeks ago but now I am trying to create a new environment it is giving:

Collecting eth-hash<1.0.0,>=0.1.0 (from eth-utils<2,>=1.0.2->rlp>=0.4.7->ethereum) Using cached https://files.pythonhosted.org/packages/17/25/eb0af4e225bd8c2226b9296474e4bd19d1174433b22b41d5680f1dcae090/eth-hash-0.1.2.tar.gz Complete output from command python setup.py egg_info: zip_safe flag not set; analyzing archive contents... pypandoc.init: module references file

Installed /tmp/pip-install-Rs6xp3/eth-hash/.eggs/pypandoc-1.4-py2.7.egg
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-Rs6xp3/eth-hash/setup.py", line 71, in <module>
    'Programming Language :: Python :: Implementation :: PyPy',
  File "/home/user97/repos/ION/ion/ion/local/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/user97/repos/ION/ion/ion/local/lib/python2.7/site-packages/setuptools/dist.py", line 363, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/home/user97/repos/ION/ion/ion/local/lib/python2.7/site-packages/setuptools/dist.py", line 519, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/pip-install-Rs6xp3/eth-hash/.eggs/setuptools_markdown-0.2-py2.7.egg/setuptools_markdown.py", line 22, in long_description_markdown_filename
    output = pypandoc.convert(markdown_filename, 'rst')
  File "/tmp/pip-install-Rs6xp3/eth-hash/.eggs/pypandoc-1.4-py2.7.egg/pypandoc/__init__.py", line 66, in convert
    raise RuntimeError("Format missing, but need one (identified source as text as no "
RuntimeError: Format missing, but need one (identified source as text as no file with that name was found).

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-Rs6xp3/eth-hash/

Is there a way to install ethereum without eth-hash?

pipermerriam commented 6 years ago

@maxrobot did you read the previous comments in this issue?

Python 2 is not supported by eth-hash. It's possible that a previous version worked in python 2, but failing in python 2 is not unexpected and we won't be making any python2 specific changes.

maxrobot commented 6 years ago

@pipermerriam indeed I did read, but was hoping for a workaround as migrating python2 projects to python3 is not what I call a fun time...

I have just used an old version, thank you for your response nonetheless :)

pipermerriam commented 6 years ago

You should really try upgrading. It's not hard and there is a lot of tooling to help support the transition. Glad you found something that works for you.

dhanasingh commented 6 years ago

I had a similar issue when trying to install pyethapp. I had to install version of 0.1.2 of eth-hash

sudo pip install https://codeload.github.com/ethereum/eth-hash/tar.gz/v0.1.2

thank you