Conversation
|
Can this be merged? Seems very useful to make this installable under python 3 |
|
This latest version is compatible with Python 2.7+ and 3.5+ |
|
So how can we install lshash to python 3 environment? I still get errors. I tried both of lshash3 and lshash3 with using pip3. |
|
Can you post the output of |
|
@hobson I have tried |
|
[UPDATE] root@584e172afc7b:/app# pip install lshash3
Processing /root/.cache/pip/wheels/30/7f/09/f8d846b30660911ca453e60d71af991bd8a506e804a7df6100/lshash3-0.0.8-py2.py3-none-any.whl
Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from lshash3) (1.18.4)
Collecting bitarray
Using cached https://files.pythonhosted.org/packages/3d/78/99528059e42f199910df89bd0ad8d9238f41d0499b506e0b3174340075ea/bitarray-1.2.1.tar.gz
Building wheels for collected packages: bitarray
Building wheel for bitarray (setup.py) ... done
Created wheel for bitarray: filename=bitarray-1.2.1-cp37-cp37m-linux_x86_64.whl size=166467 sha256=2851409bed14aa9e2dcbd8b3a1c0fe1085ac6d9356a8b77a2d428f785d4ca288
Stored in directory: /root/.cache/pip/wheels/8e/4f/42/90d76aca9f4a7420c8c82fe15ed949777ab3fafe9fc1d705b3
Successfully built bitarray
Installing collected packages: bitarray, lshash3
Successfully installed bitarray-1.2.1 lshash3-0.0.8it worked after adding to my |
|
@hobson Not sure why but I was able to build Traceback (most recent call last):
File "test_clustering_lshash.py", line 10, in <module>
from lshash import LSHash
ImportError: cannot import name 'LSHash' from 'lshash' (/usr/local/lib/python3.7/site-packages/lshash/__init__.py)I can see the class |
|
[UPDATE] |
|
@p-venkatesh I have deployed a fixed and enhanced version of this package to pip here lshashpy3 |


Uses
PyScaffoldingto add asetup.cfgfile and eliminate__author__,__version__and other constants from the__init__.pyfile so thatsetup.pydoesn't have toimport lshashbefore it has been installed.In my python3 virtualenv on a Ubuntu 15.04
pip install lshashfails onimport lshashinsetup.pywith this traceback: