smihica / pyminizip

To create a password encrypted zip file in python.
Other
106 stars 37 forks source link

does not support Python 3? #14

Closed retsyo closed 6 years ago

retsyo commented 7 years ago

I can build the extension with python2. but for python3, no matter Mingw64 or VC says the same wrong issue.

E:\msys64\mingw64\bin\gcc.exe -shared -s build\temp.win-amd64-3.4\Release\src\py_minizip.o build\temp.win-amd64-3.4\Release\src\zip.o build\temp.win-amd64-3.4\Release\src\ioapi.o build\temp.win-amd64-3.4\Release\zlib123\adler32.o build\temp.win-amd64-3.4\Release\zlib123\compress.o build\temp.win-amd64-3.4\Release\zlib123\crc32.o build\temp.win-amd64-3.4\Release\zlib123\deflate.o build\temp.win-amd64-3.4\Release\zlib123\gzio.o build\temp.win-amd64-3.4\Release\zlib123\infback.o build\temp.win-amd64-3.4\Release\zlib123\inffast.o build\temp.win-amd64-3.4\Release\zlib123\inflate.o build\temp.win-amd64-3.4\Release\zlib123\inftrees.o build\temp.win-amd64-3.4\Release\zlib123\trees.o build\temp.win-amd64-3.4\Release\zlib123\uncompr.o build\temp.win-amd64-3.4\Release\zlib123\zutil.o build\temp.win-amd64-3.4\Release\src\iowin32.o build\temp.win-amd64-3.4\Release\src\pyminizip.def -LE:\prg\py\Anaconda3_64\libs -LE:\prg\py\Anaconda3_64\PCbuild\amd64 -lpython34 -lmsvcr100 -o build\lib.win-amd64-3.4\pyminizip.pyd
build\temp.win-amd64-3.4\Release\src\py_minizip.o:py_minizip.c:(.text+0x8ce): undefined reference to `PyString_Check'
build\temp.win-amd64-3.4\Release\src\py_minizip.o:py_minizip.c:(.text+0x92f): undefined reference to `PyString_AsString'
collect2.exe: error: ld returned 1 exit status
error: command 'E:\\msys64\\mingw64\\bin\\gcc.exe' failed with exit status 1
mrroot5 commented 6 years ago

I use python3 with virtualenv and I don't have any problem with pip install pyminizip.

veon82 commented 6 years ago

I think that this issue can be closed, this problem has been fixed in the last versions

smihica commented 6 years ago

thank you!