tgalal / python-axolotl-curve25519 Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I use anaconda and python 3.6.1, followed all the steps but I have this error :
In file included from C:\Anaconda3\include/Python.h:65:0,
from curve25519module.c:3:
C:\Anaconda3\include/pytime.h:111:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
struct timeval *tv,
^~~~~~~
C:\Anaconda3\include/pytime.h:116:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
struct timeval *tv,
^~~~~~~
curve25519module.c:161:9: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
NULL,
^~~~
curve25519module.c:161:9: note: (near initialization for 'c.urve25519_module.m_size')
writing build\temp.win-amd64-3.6\Release\curve\axolotl_curve25519.cp36-win_amd64.def
C:\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-3.6\Release\curve\curve25519-donna.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\compare.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\curve_sigs.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\elligator.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\fe_isequal.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\fe_isreduced.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\fe_mont_rhs.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\fe_montx_to_edy.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\fe_sqrt.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_isneutral.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_montx_to_p3.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_neg.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_p3_to_montx.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_scalarmult.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\ge_scalarmult_cofactor.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\keygen.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\open_modified.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\sc_clamp.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\sc_cmov.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\sc_neg.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\sign_modified.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\utility.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\xeddsa.o build\temp.win-amd64-3.6\Release\curve\ed25519\additions\zeroize.o build\temp.win-amd64-3.6\Release\curve\ed25519\nacl_sha512\blocks.o build\temp.win-amd64-3.6\Release\curve\ed25519\nacl_sha512\hash.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_0.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_1.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_add.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_cmov.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_copy.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_frombytes.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_invert.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_isnegative.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_isnonzero.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_mul.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_neg.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_pow22523.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_sq.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_sq2.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_sub.o build\temp.win-amd64-3.6\Release\curve\ed25519\fe_tobytes.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_add.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_double_scalarmult.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_frombytes.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_madd.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_msub.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p1p1_to_p2.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p1p1_to_p3.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p2_0.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p2_dbl.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p3_0.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p3_dbl.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p3_to_cached.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p3_to_p2.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_p3_tobytes.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_precomp_0.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_scalarmult_base.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_sub.o build\temp.win-amd64-3.6\Release\curve\ed25519\ge_tobytes.o build\temp.win-amd64-3.6\Release\curve\ed25519\open.o build\temp.win-amd64-3.6\Release\curve\ed25519\sc_muladd.o build\temp.win-amd64-3.6\Release\curve\ed25519\sc_reduce.o build\temp.win-amd64-3.6\Release\curve\ed25519\sign.o build\temp.win-amd64-3.6\Release\curve25519module.o build\temp.win-amd64-3.6\Release\curve\axolotl_curve25519.cp36-win_amd64.def -LC:\Anaconda3\libs -LC:\Anaconda3\PCbuild\amd64 -lpython36 -lmsvcr140 -o build\lib.win-amd64-3.6\axolotl_curve25519.cp36-win_amd64.pyd
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lmsvcr140
collect2.exe: error: ld returned 1 exit status
error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1
how to download and install zlip
i didn't understand anything
plz describe step by step the install processe
help pls :c
Running setup.py install for python-axolotl-curve25519: started
Running setup.py install for python-axolotl-curve25519: finished with status 'error'
Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokeniz e;__file__='C:\\Users\\CRAZYA~1\\AppData\\Local\\Temp\\pip-install-059v2u3q\\python-axolotl-curve25519\\setup.py'; f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fil e__, 'exec'))" install --record C:\Users\CRAZYA~1\AppData\Local\Temp\pip-record-a_ujapqu\install-record.txt --sing le-version-externally-managed --compile:
c:\program files (x86)\python37-32\lib\site-packages\setuptools\dist.py:397: UserWarning: Normalizing '0.4.1-2 ' to '0.4.1.post2'
normalized_version,
running install
running build
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\CRAZYA~1\AppData\Local\Temp\pip-install-059v2u3q\python-axolotl-curve25519\setup.py", line 27 , in <module>
platforms='any'
File "c:\program files (x86)\python37-32\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\program files (x86)\python37-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\program files (x86)\python37-32\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\program files (x86)\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\program files (x86)\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\site-packages\setuptools\command\build_ext.py", line 78, in run
_build_ext.run(self)
File "c:\program files (x86)\python37-32\lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "c:\program files (x86)\python37-32\lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "c:\program files (x86)\python37-32\lib\distutils\cygwinccompiler.py", line 282, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "c:\program files (x86)\python37-32\lib\distutils\cygwinccompiler.py", line 126, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\C RAZYA~1\\AppData\\Local\\Temp\\pip-install-059v2u3q\\python-axolotl-curve25519\\setup.py';f=getattr(tokenize, 'ope n', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install - -record C:\Users\CRAZYA~1\AppData\Local\Temp\pip-record-a_ujapqu\install-record.txt --single-version-externally-ma naged --compile" failed with error code 1 in C:\Users\CRAZYA~1\AppData\Local\Temp\pip-install-059v2u3q\python-axol otl-curve25519\
Hi all,
i'm using the python-axolotl-curve25519 repo in my project for signing messages. Everything works fine, as long as the message is smaller than 256 bytes. Any idea on how to sign larger messages?
Best
Marc
I'm wondering what's the reason why there are bit-wise operations on the secret key in generatePrivateKey():
I've been trying to find something similar in the reference 25519 implementation by Bernstein and I could not. Care to point me in the right direction?
Could you please tag the 0.1 release that is uploaded on pypi?
C:\Users\demir\Downloads\python-axolotl-curve25519-master>python setup.py install
running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
failed to import Cython: DLL load failed: %1 is not a valid Win32 application.
error: Cython does not appear to be installed
When trying to install python-axolotl-curve25519 on my Windows 8 64 bit computer, I get the following error:
python setup.py
install
running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.
txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'axolotl_curve25519' extension
gcc -mno-cygwin -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/add
itions -Icurve/ed25519 -IC:\Python27\include -IC:\Python27\PC -c curve25519modul
e.c -o build\temp.win-amd64-2.7\Release\curve25519module.o
error: command 'gcc' failed: No such file or directory
error: Setup script exited with error: SandboxViolation: mkdir('/private/var/root/Library/Caches/com.apple.python/private/tmp/easy_install-az7auxvu', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Hi Tarek,
thanks for accepting the pull request fixing the limit of the message length. Anyway, when i now try to install the library via pip, i get the following error:
The directory '/Users/marcjansen/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/marcjansen/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting python-axolotl-curve25519
Downloading python-axolotl-curve25519-0.4.1.post1.tar.gz (79kB)
100% |████████████████████████████████| 81kB 1.3MB/s
Installing collected packages: python-axolotl-curve25519
Running setup.py install for python-axolotl-curve25519 ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-VWQUs5/python-axolotl-curve25519/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-u9E4Pi-record/install-record.txt --single-version-externally-managed --compile:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py:285: UserWarning: Normalizing '0.4.1-1' to '0.4.1.post1'
normalized_version,
running install
running build
running build_ext
building 'axolotl_curve25519' extension
error: unknown file type '.h' (from 'curve/ed25519/additions/compare.h')
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-VWQUs5/python-axolotl-curve25519/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-u9E4Pi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-VWQUs5/python-axolotl-curve25519/
Greets
Marc
plz tell me how?
i don't know how to Add mingw to my PATH
and also all the files i need to modify?
Failed to build python-axolotl-curve25519
Installing collected packages: python-axolotl-curve25519
Running setup.py install for python-axolotl-curve25519
Complete output from command /home/alonisser/.virtualenvs/yowsup/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-jngej7t3/python-axolotl-curve25519/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ombhqloe-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/alonisser/.virtualenvs/yowsup/include/site/python3.4/python-axolotl-curve25519:
running install
running build
running build_ext
building 'axolotl_curve25519' extension
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 -I/home/alonisser/.pyenv/versions/3.4.1/include/python3.4m -c curve25519module.c -o build/temp.linux-x86_64-3.4/curve25519module.o
curve25519module.c: In function ‘calculateSignature’:
curve25519module.c:50:4: warning: pointer targets in passing argument 1 of ‘curve25519_sign’ differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
int curve25519_sign(unsigned char* signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 2 of ‘curve25519_sign’ differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_sign(unsigned char* signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 3 of ‘curve25519_sign’ differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_sign(unsigned char* signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 5 of ‘curve25519_sign’ differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_sign(unsigned char* signature_out,
^
curve25519module.c: In function ‘verifySignature’:
curve25519module.c:76:5: warning: pointer targets in passing argument 1 of ‘curve25519_verify’ differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_verify(const unsigned char* signature,
^
curve25519module.c:76:5: warning: pointer targets in passing argument 2 of ‘curve25519_verify’ differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_verify(const unsigned char* signature,
^
curve25519module.c:76:5: warning: pointer targets in passing argument 3 of ‘curve25519_verify’ differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
int curve25519_verify(const unsigned char* signature,
^
curve25519module.c:76:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c: At top level:
curve25519module.c:159:9: warning: initialization makes integer from pointer without a cast [enabled by default]
NULL,
^
curve25519module.c:159:9: warning: (near initialization for ‘curve25519_module.m_size’) [enabled by default]
cc1: some warnings being treated as errors
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/alonisser/.virtualenvs/yowsup/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-jngej7t3/python-axolotl-curve25519/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ombhqloe-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/alonisser/.virtualenvs/yowsup/include/site/python3.4/python-axolotl-curve25519" failed with error code 1 in /tmp/pip-build-jngej7t3/python-axolotl-curve25519
Installation process described in README.md will not work for Python x64 on Windows.
First, you'll need to install mingw64, not w32. And it uses packman -S to install packages, not mingw-get
Second, the PATH must contain C:\msys64\mingw64\bin
Third, you'll need to patch: Python27\Lib\distutils\cygwinccompiler.py
https://stackoverflow.com/questions/2842469/python-undefined-reference-to-imp-py-initmodule4#
distutils.cfg step is still valid.
Only then you may try to build it via setup.py
Hello tgalal,
these days I've been able to compile this package for python 2.7.x on windows 64bit by modify the curve25519module.c file (this should fix #5 issue). I did this change with no errors, only a warning.
Now I want to be sure that the edit file works well before share this update.
Since I do not know what features/functions are implemented in this package, could you provide me a small script (something like a 'unittest') that use all working functions and some checking output?
Thanks again for your great work
i install whitout problems mingw compiler, gcc and zlib, when i run the installation command "python setup.py install" i got this error:
`running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.
txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_ext
building 'axolotl_curve25519' extension
C:\Users\InterSys\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python
9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Icurve/ed25519/nacl_incl
udes -Icurve/ed25519/additions -Icurve/ed25519 -Ic:\Python27\include -Ic:\Python
27\PC /Tccurve25519module.c /Fobuild\temp.win32-2.7\Release\curve25519module.obj
curve25519module.c
curve25519module.c(77) : error C2143: syntax error : missing ';' before 'type'
curve25519module.c(80) : error C2065: 'result' : undeclared identifier
curve25519module.c(84) : error C2143: syntax error : missing '{' before '*'
curve25519module.c(102) : warning C4133: 'return' : incompatible types - from 'P
yObject *' to 'int *'
curve25519module.c(148) : warning C4133: 'initializing' : incompatible types - f
rom 'int *(__cdecl *)(PyObject *,PyObject *)' to 'PyCFunction'
error: command 'C:\Users\InterSys\AppData\Local\Programs\Common\Microsoft
\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.
txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_ext
building 'axolotl_curve25519' extension
C:\Users\InterSys\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python
9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Icurve/ed25519/nacl_incl
udes -Icurve/ed25519/additions -Icurve/ed25519 -Ic:\Python27\include -Ic:\Python
27\PC /Tccurve25519module.c /Fobuild\temp.win32-2.7\Release\curve25519module.obj
curve25519module.c
curve25519module.c(77) : error C2143: syntax error : missing ';' before 'type'
curve25519module.c(80) : error C2065: 'result' : undeclared identifier
curve25519module.c(84) : error C2143: syntax error : missing '{' before '*'
curve25519module.c(102) : warning C4133: 'return' : incompatible types - from 'P
yObject *' to 'int *'
curve25519module.c(148) : warning C4133: 'initializing' : incompatible types - f
rom 'int *(__cdecl *)(PyObject *,PyObject *)' to 'PyCFunction'
error: command 'C:\Users\InterSys\AppData\Local\Programs\Common\Microsoft
\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2`
any idea???
The installation is failing and i have no idea how to fix.
Has anyone experienced the same issue?
D:\ProgramData\Anaconda3\lib\site-packages\setuptools\dist.py:355: UserWarning: Normalizing '0.4.1-2' to '0.4.1.post2'
normalized_version,
running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.txt
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
Traceback (most recent call last):
File "setup.py", line 27, in <module>
platforms='any'
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "D:\ProgramData\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\ProgramData\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "D:\ProgramData\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "D:\ProgramData\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\ProgramData\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\bdist_egg.py", line 170, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\bdist_egg.py", line 156, in call_command
self.run_command(cmdname)
File "D:\ProgramData\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\ProgramData\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "D:\ProgramData\Anaconda3\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "D:\ProgramData\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\ProgramData\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\build_ext.py", line 75, in run
_build_ext.run(self)
File "D:\ProgramData\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\ProgramData\Anaconda3\lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "D:\ProgramData\Anaconda3\lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "D:\ProgramData\Anaconda3\lib\distutils\cygwinccompiler.py", line 285, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "D:\ProgramData\Anaconda3\lib\distutils\cygwinccompiler.py", line 129, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
How can I fix the TypeError? This is from a fresh install, haven't installed python-axolotl yet.
I am trying to install this library on windows server 2012 but getting error
type error: unorderable types: Nonetype >= str()
The error is C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Icurve/ed25519/hacl_includes -Icurve/ed25519/additions -Icurve/ed25519 -IC:\Python27\include -IC:\Python27\PC -c curve25519module.c -o build\temp.win32-2.7\Release\curve25519module.o gcc: error: unrecognized command line option '-mno-cygwin' error: command 'gcc' failed with exit status 1
E:\GitHub\yowsup>cd..
E:\GitHub>cd python-axolotl-curve25519
E:\GitHub\python-axolotl-curve25519>python setup.py install
running install
running bdist_egg
running egg_info
writing python_axolotl_curve25519.egg-info\PKG-INFO
writing top-level names to python_axolotl_curve25519.egg-info\top_level.txt
writing dependency_links to python_axolotl_curve25519.egg-info\dependency_links.txt
reading manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_axolotl_curve25519.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'axolotl_curve25519' extension
creating build\temp.win-amd64-3.4
creating build\temp.win-amd64-3.4\Release
creating build\temp.win-amd64-3.4\Release\curve
creating build\temp.win-amd64-3.4\Release\curve\ed25519
creating build\temp.win-amd64-3.4\Release\curve\ed25519\additions
creating build\temp.win-amd64-3.4\Release\curve\ed25519\nacl_sha512
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve25519module.c -o build\temp.win-amd64-3.4\Release\curve25519module.o
curve25519module.c: In function 'calculateSignature':
curve25519module.c:50:4: warning: pointer targets in passing argument 1 of 'curve25519_sign' differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected 'unsigned char ' but argument is of type 'char *'
int curve25519_sign(unsigned char signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 2 of 'curve25519_sign' differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_sign(unsigned char signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 3 of 'curve25519_sign' differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_sign(unsigned char signature_out,
^
curve25519module.c:50:4: warning: pointer targets in passing argument 5 of 'curve25519_sign' differ in signedness [-Wpointer-sign]
curve25519_sign(signature, privatekey, message, messagelen, random);
^
curve25519module.c:17:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_sign(unsigned char signature_out,
^
curve25519module.c: In function 'verifySignature':
curve25519module.c:76:18: warning: pointer targets in passing argument 1 of 'curve25519_verify' differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_verify(const unsigned char signature,
^
curve25519module.c:76:18: warning: pointer targets in passing argument 2 of 'curve25519_verify' differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_verify(const unsigned char signature,
^
curve25519module.c:76:18: warning: pointer targets in passing argument 3 of 'curve25519_verify' differ in signedness [-Wpointer-sign]
int result = curve25519_verify(signature, publickey, message, messagelen);
^
curve25519module.c:22:5: note: expected 'const unsigned char ' but argument is of type 'const char *'
int curve25519_verify(const unsigned char signature,
^
curve25519module.c: At top level:
curve25519module.c:159:9: warning: initialization makes integer from pointer without a cast
NULL,
^
curve25519module.c:159:9: warning: (near initialization for 'curve25519_module.m_size')
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/curve25519-donna.c -o build\temp.win-amd64-3.4\Release\curve\curve25519-donna.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_0.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_0.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_1.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_1.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_add.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_add.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_cmov.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_cmov.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_copy.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_copy.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_frombytes.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_frombytes.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_invert.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_invert.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_isnegative.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_isnegative.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_isnonzero.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_isnonzero.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_mul.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_mul.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_neg.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_neg.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_pow22523.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_pow22523.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_sq.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_sq.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_sq2.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_sq2.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_sub.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_sub.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\fe_tobytes.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_tobytes.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_add.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_add.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_double_scalarmult.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_double_scalarmult.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_frombytes.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_frombytes.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_madd.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_madd.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_msub.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_msub.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p1p1_to_p2.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p1p1_to_p2.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p1p1_to_p3.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p1p1_to_p3.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p2_0.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p2_0.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p2_dbl.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p2_dbl.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p3_0.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_0.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p3_dbl.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_dbl.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p3_tobytes.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_tobytes.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p3_to_cached.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_to_cached.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_p3_to_p2.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_to_p2.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_precomp_0.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_precomp_0.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_scalarmult_base.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_scalarmult_base.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_sub.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_sub.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\ge_tobytes.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_tobytes.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\open.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\open.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\sc_muladd.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\sc_muladd.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\sc_reduce.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\sc_reduce.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519\sign.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\sign.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/additions\compare.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\compare.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/additions\curve_sigs.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\curve_sigs.o
curve/ed25519/additions\curve_sigs.c: In function 'curve25519_keygen':
curve/ed25519/additions\curve_sigs.c:10:6: warning: unused variable 'ed_y' [-Wunused-variable]
fe ed_y, ed_y_plus_one, one_minus_ed_y, inv_one_minus_ed_y;
^
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/additions\sign_modified.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\sign_modified.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/additions\zeroize.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\zeroize.o
curve/ed25519/additions\zeroize.c: In function 'zeroize':
curve/ed25519/additions\zeroize.c:6:17: warning: unused variable 'retval' [-Wunused-variable]
unsigned long retval = 0;
^
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/nacl_sha512\blocks.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\nacl_sha512\blocks.o
c:\mingw\bin\gcc.exe -mdll -O -Wall -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 "-IC:\Program Files\Python34\include" "-IC:\Program Files\Python34\include" -c curve/ed25519/nacl_sha512\hash.c -o build\temp.win-amd64-3.4\Release\curve\ed25519\nacl_sha512\hash.o
writing build\temp.win-amd64-3.4\Release\axolotl_curve25519.def
creating build\lib.win-amd64-3.4
c:\mingw\bin\gcc.exe -shared -s build\temp.win-amd64-3.4\Release\curve25519module.o build\temp.win-amd64-3.4\Release\curve\curve25519-donna.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_0.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_1.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_add.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_cmov.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_copy.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_frombytes.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_invert.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_isnegative.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_isnonzero.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_mul.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_neg.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_pow22523.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_sq.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_sq2.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_
sub.o build\temp.win-amd64-3.4\Release\curve\ed25519\fe_tobytes.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_add.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_double_scalarmult.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_frombytes.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_madd.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_msub.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p1p1_to_p2.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p1p1_to_p3.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p2_0.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p2_dbl.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_0.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_dbl.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_tobytes.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_to_cached.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_p3_to_p2.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_precomp_0.o build\temp.win-amd64-3.
4\Release\curve\ed25519\ge_scalarmult_base.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_sub.o build\temp.win-amd64-3.4\Release\curve\ed25519\ge_tobytes.o build\temp.win-amd64-3.4\Release\curve\ed25519\open.o build\temp.win-amd64-3.4\Release\curve\ed25519\sc_muladd.o build\temp.win-amd64-3.4\Release\curve\ed25519\sc_reduce.o build\temp.win-amd64-3.4\Release\curve\ed25519\sign.o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\compare.o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\curve_sigs.o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\sign_modified.o build\temp.win-amd64-3.4\Release\curve\ed25519\additions\zeroize.o build\temp.win-amd64-3.4\Release\curve\ed25519\nacl_sha512\blocks.o build\temp.win-amd64-3.4\Release\curve\ed25519\nacl_sha512\hash.o build\temp.win-amd64-3.4\Release\axolotl_curve25519.def "-LC:\Program Files\Python34\libs" "-LC:\Program Files\Python34\PCbuild\amd64" -lpython34 -lmsvcr100 -o build\lib.win-amd64-3.4\axolotl_curve25519
.pyd
build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x48): undefined reference to __imp_PyExc_ValueError' build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x6d): undefined reference to
__imp_PyExc_ValueError'
build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x110): undefined reference to __imp_PyExc_ValueError' build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x189): undefined reference to
__imp_PyExc_ValueError'
build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x229): undefined reference to __imp_PyExc_ValueError' build\temp.win-amd64-3.4\Release\curve25519module.o:curve25519module.c:(.text+0x24e): more undefined references to
__imp_PyExc_ValueError' follow
collect2.exe: error: ld returned 1 exit status
error: command 'c:\mingw\bin\gcc.exe' failed with exit status 1
E:\GitHub\python-axolotl-curve25519>
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
ValueError: Unknown MS Compiler version 1916
Although I completed all installation instructions, the following error is seen when running python setup.py install (Windows 8 64 bit)
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
35): undefined reference to _imp___PyArg_ParseTuple_SizeT' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 4d): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
58): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 73): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
7e): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x b2): undefined reference to
_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
106): undefined reference to _imp___PyArg_ParseTuple_SizeT' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 11e): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
129): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 15d): undefined reference to
_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
191): undefined reference to _imp___PyArg_ParseTuple_SizeT' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 1a9): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
1b4): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 1e4): undefined reference to
_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
237): undefined reference to _imp___PyArg_ParseTuple_SizeT' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 253): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
25e): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 279): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
284): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 2c0): undefined reference to
_imp___Py_BuildValue_SizeT'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
31a): undefined reference to _imp___PyArg_ParseTuple_SizeT' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 336): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
341): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 35c): undefined reference to
_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
367): undefined reference to _imp__PyErr_SetString' build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x 3ab): undefined reference to
_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\curve25519module.o:curve25519module.c:(.text+0x
3ea): undefined reference to _imp__Py_InitModule4' c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build\temp .win-amd64-2.7\Release\curve25519module.o: bad reloc address 0x0 in section
.da
ta'
collect2.exe: error: ld returned 1 exit status
error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1
curve25519module.c:3:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
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.