leveldb-py icon indicating copy to clipboard operation
leveldb-py copied to clipboard

pip install on Windows + Python 3.7?

Open josephernest opened this issue 5 years ago • 4 comments
trafficstars

On Windows and Python 3.7,

pip install leveldb-py

gives:

ERROR: Could not find a version that satisfies the requirement leveldb-py (from versions: none)
ERROR: No matching distribution found for leveldb-py

Would it be possible to release a version on PyPI @jtolio ?

josephernest avatar Nov 19 '20 11:11 josephernest

I'm sure someone could! That person will have to not be me though. In the meantime, this module is a single file - I suggest just importing it into your codebase directly.

jtolio avatar Nov 19 '20 18:11 jtolio

In the meantime, this module is a single file - I suggest just importing it into your codebase directly.

Oh this is perfect, I love single-file libraries for this precise reason, it's easy to import!

On Windows, which .dll or .pyd or similar file has be in the same folder? Where to download it from?

Currently, I have:

  File "D:\leveldb-py\leveldb.py", line 59, in <module>
    _ldb = ctypes.CDLL(ctypes.util.find_library('leveldb'))
  File "C:\Python37\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None

josephernest avatar Nov 19 '20 18:11 josephernest

Oh, I just saw https://github.com/jtolio/leveldb-py/issues/10 and noticed you're also using py3 (good job!). This library was sadly written for py2 and I don't have time to fix it.

jtolio avatar Nov 19 '20 19:11 jtolio

try: pip install lvldb

dniprox avatar Feb 01 '24 17:02 dniprox