escherba / python-metrohash Goto Github PK
View Code? Open in Web Editor NEWPython bindings for MetroHash
Home Page: https://pypi.org/project/metrohash/
License: Apache License 2.0
Python bindings for MetroHash
Home Page: https://pypi.org/project/metrohash/
License: Apache License 2.0
From within PyCharm, I tried installing metrohash, and got the following error:
Collecting metrohash
Downloading metrohash-0.0.13.tar.gz
Building wheels for collected packages: metrohash
Running setup.py bdist_wheel for metrohash: started
Running setup.py bdist_wheel for metrohash: finished with status 'error'
Complete output from command D:\Repos\@VEnv\base-pypy2-01\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pepoluan\\AppData\\Local\\Temp\\pycharm-packaging\\metrohash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\pepoluan\appdata\local\temp\tmpqsporapip-wheel- --python-tag pp257:
running bdist_wheel
running build
running build_ext
building 'metrohash' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
C:\Users\pepoluan\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iinclude -ID:\Repos\@VEnv\base-pypy2-01\include /Tpsrc/metrohash64.cc /Fobuild\temp.win32-2.7\Release\src/metrohash64.obj -O3 -msse4.2 -Wno-unused-value -Wno-unused-function
cl : Command line error D8021 : invalid numeric argument '/Wno-unused-value'
error: command 'C:\\Users\\pepoluan\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
----------------------------------------
Running setup.py clean for metrohash
Failed to build metrohash
Installing collected packages: metrohash
Running setup.py install for metrohash: started
Running setup.py install for metrohash: finished with status 'error'
Complete output from command D:\Repos\@VEnv\base-pypy2-01\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pepoluan\\AppData\\Local\\Temp\\pycharm-packaging\\metrohash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\pepoluan\appdata\local\temp\pip-esvcxi-record\install-record.txt --single-version-externally-managed --compile --install-headers D:\Repos\@VEnv\base-pypy2-01\include\site\python2.7\metrohash:
running install
running build
running build_ext
building 'metrohash' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
C:\Users\pepoluan\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iinclude -ID:\Repos\@VEnv\base-pypy2-01\include /Tpsrc/metrohash64.cc /Fobuild\temp.win32-2.7\Release\src/metrohash64.obj -O3 -msse4.2 -Wno-unused-value -Wno-unused-function
cl : Command line error D8021 : invalid numeric argument '/Wno-unused-value'
error: command 'C:\\Users\\pepoluan\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for metrohash
Command "D:\Repos\@VEnv\base-pypy2-01\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pepoluan\\AppData\\Local\\Temp\\pycharm-packaging\\metrohash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\pepoluan\appdata\local\temp\pip-esvcxi-record\install-record.txt --single-version-externally-managed --compile --install-headers D:\Repos\@VEnv\base-pypy2-01\include\site\python2.7\metrohash" failed with error code 1 in C:\Users\pepoluan\AppData\Local\Temp\pycharm-packaging\metrohash\
The key seems to be this line:
cl : Command line error D8021 : invalid numeric argument '/Wno-unused-value'
If you need further info, feel free to ask.
PIP installation seems to fail on Windows under both Python 2.7 and Python 3.5 with a weird "NotImplementedError: Can't perform this operation for loaders without 'get_data()" error.
Anybody know how to resolve this?
> pip install metrohash
Collecting metrohash
Using cached metrohash-0.0.13.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\[REDACTED]\AppData\Local\Temp\pip-build-vxips9m8\metrohash\setup.py", line 104, in <module>
long_description=resource_string(__name__, 'README.rst'),
File "C:\[REDACTED]\env\lib\site-packages\pkg_resources\__init__.py", line 1173, in resource_string
self, resource_name
File "C:\[REDACTED]\env\lib\site-packages\pkg_resources\__init__.py", line 1605, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "C:\[REDACTED]\env\lib\site-packages\pkg_resources\__init__.py", line 1685, in _get
"Can't perform this operation for loaders without 'get_data()'"
NotImplementedError: Can't perform this operation for loaders without 'get_data()'
----------------------------------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.