Giter Site home page Giter Site logo

escherba / python-metrohash Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 3.0 264 KB

Python bindings for MetroHash

Home Page: https://pypi.org/project/metrohash/

License: Apache License 2.0

Python 2.48% Makefile 1.07% C++ 92.22% C 0.79% Cython 3.44%
hashing-library cython-wrapper metrohash hashing cython python

python-metrohash's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-metrohash's Issues

pip installation failure on Windows

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 failure: "NotImplementedError: Can't perform this operation for loaders without 'get_data()"

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()'

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.