sobotklp / pycksum Goto Github PK
View Code? Open in Web Editor NEWPython implementation of cksum algorithm
License: MIT License
Python implementation of cksum algorithm
License: MIT License
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)
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\
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.