fritz0705 / python-lmdb

ctypes-based LMDB bindings
1 stars 0 forks source link

Does not install #1

Open StyXman opened 10 years ago

StyXman commented 10 years ago

Given that there are no install instructions, I tried the generic ones. First, with pip:

$ pip install python-lmdb  
Downloading/unpacking python-lmdb
   Could not find a version that satisfies the requirement python-lmdb (from versions: 1.0.0b1) 
Cleaning up... 
No distributions matching the version for python-lmdb 
Storing debug log for failure in /home/mdione/.pip/pip.log

According to the log, I should use --pre, so:

$ pip install --pre python-lmdb
Downloading/unpacking python-lmdb
  Downloading python-lmdb-1.0.0b1.tar.gz
  Running setup.py (path:/tmp/pip_build_mdione/python-lmdb/setup.py) egg_info for package python-lmdb
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_mdione/python-lmdb/setup.py", line 5, in <module>
        with open("README.md") as f:
    IOError: [Errno 2] No such file or directory: 'README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_mdione/python-lmdb/setup.py", line 5, in <module>

    with open("README.md") as f:

IOError: [Errno 2] No such file or directory: 'README.md'

Which is a verbose version of what I get if I try to install it from the source .tar.gz.

duruyao commented 1 year ago

I had the same problem as above.

$ pip3 install python-lmdb     
Collecting python-lmdb
  Using cached python-lmdb-1.0.0b1.tar.gz (8.1 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/duruyao/anaconda3/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hnjunx2y/python-lmdb_df9069ff03f4423d8ec9258a7ce0a08c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hnjunx2y/python-lmdb_df9069ff03f4423d8ec9258a7ce0a08c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-lzzfo6m8
         cwd: /tmp/pip-install-hnjunx2y/python-lmdb_df9069ff03f4423d8ec9258a7ce0a08c/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-hnjunx2y/python-lmdb_df9069ff03f4423d8ec9258a7ce0a08c/setup.py", line 5, in <module>
        with open("README.md") as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/99/2f/3e88269f265222c50545184387af2400024c184c98150932234711589c7c/python-lmdb-1.0.0b1.tar.gz#sha256=150283ff9c6d3837cf5b5e76d1ac66292471f2a9641b3402c15485f29c0dbfb8 (from https://pypi.org/simple/python-lmdb/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement python-lmdb (from versions: 1.0.0b1)
ERROR: No matching distribution found for python-lmdb