Git Product home page Git Product logo

pycksum's People

Contributors

ajavier avatar sobotklp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pycksum's Issues

TypeError: Argument 'by' has incorrect type (expected bytes, got str)

Hi, I get the following error with the basic test, using:
Pycksum 0.4.1, Python 3.5.1 and Archlinux

In [15]: import pycksum
In [16]: ck = pycksum.cksum("Any string")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-16-35c7dc399fac> in <module>()
----> 1 ck = pycksum.cksum("Any string")

/usr/lib/python3.5/site-packages/pycksum/__init__.py in cksum(o)
    114 def cksum(o):
    115     c = Cksum()
--> 116     c.add(o)
    117     return c.get_cksum()

/usr/lib/python3.5/site-packages/pycksum/__init__.py in add(self, obj)
     93         if hasattr(obj, '__iter__'):
     94             for b in iter(obj):
---> 95                 self._add(b)
     96         else:
     97             self._add(obj)

/usr/lib/python3.5/site-packages/pycksum/__init__.py in _add(self, b)
     87
     88     def _add(self, b):
---> 89         self._ck, incsz = _memcksum(b, self._ck)
     90         self._sz += incsz
     91

_pycksum.pyx in _pycksum._memcksum (ext/_pycksum.c:515)()

TypeError: Argument 'by' has incorrect type (expected bytes, got str)

Issue on windows 7

C:>python -m pip install pycksum
Collecting pycksum
Using cached pycksum-0.4.2.tar.gz
Installing collected packages: pycksum
Running setup.py install for pycksum ... error
Complete output from command C:\Python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\XXXXXX\appdata\local\temp\pip-build-wsbbsb\pycksum\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\XXXXXX\appdata\local\temp\pip-kyhadz-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\pycksum
copying pycksum\main.py -> build\lib.win32-2.7\pycksum
copying pycksum_init_.py -> build\lib.win32-2.7\pycksum
running build_ext
building '_pycksum' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\ext
C:\Users\XXXXXX\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\PC /Tcext/_pycksum.c /Fobuild\temp.win32-2.7\Release\ext/_pycksum.obj _pycksum.cext/_pycksum.c(235) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: command 'C:\Users\XXXXXX\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2

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

Command "C:\Python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\XXXXXX\appdata\local\temp\pip-build-wsbbsb\pycksum\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\XXXXXX\appdata\local\temp\pip-kyhadz-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\XXXXXX\appdata\local\temp\pip-build-wsbbsb\pycksum\

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.