Comments (4)
should change line 147 in setup.py from
macros.append(('PYLZMA_VERSION', '"'+version+'"'))
to
macros.append(('PYLZMA_VERSION', '\\"'+version+'\\"'))
from pylzma.
I've just confirmed that sqallATF's suggested fix works in my own environment: Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
from pylzma.
Unfortunately I don't have a Windows machine available for testing, could you please check if the latest push fixed this issue for you?
from pylzma.
Hi @fancycode, I just checked out the lastest git commit
/c/temp/pylzma$ git log | head -n 3
commit c1c603073ada3ab9a92d99027e170c1393f8dae9
Author: Joachim Bauch <[email protected]>
Date: Sat Apr 25 15:28:12 2015 +0200
And it works - thanks for fixing it! 👍
c:\temp\pylzma>python setup.py build
running build
running build_py
creating build
creating build\lib.win32-2.7
copying py7zlib.py -> build\lib.win32-2.7
running build_ext
adding support for multithreaded compression
building 'pylzma' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
creating build\temp.win32-2.7\Release\src\pylzma
creating build\temp.win32-2.7\Release\src\sdk
creating build\temp.win32-2.7\Release\src\7zip
creating build\temp.win32-2.7\Release\src\7zip\c
creating build\temp.win32-2.7\Release\src\compat
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_decompressobj.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompressobj.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_compressfile.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_compressfile.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_decompress.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompress.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_compress.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_compress.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_streams.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_streams.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_aes.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_aes.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_decompress_compat.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompress_com
pat.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/pylzma/pylzma_decompressobj_compat.c -o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompresso
bj_compat.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\sdk\LzFind.c -o build\temp.win32-2.7\Release\src\sdk\lzfind.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\sdk\LzmaDec.c -o build\temp.win32-2.7\Release\src\sdk\lzmadec.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\sdk\LzmaEnc.c -o build\temp.win32-2.7\Release\src\sdk\lzmaenc.o
src\sdk\LzmaEnc.c: In function 'LzmaEnc_Encode':
src\sdk\LzmaEnc.c:2181:8: warning: variable 'allocaDummy' set but not used [-Wunused-but-set-variable]
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\CpuArch.c -o build\temp.win32-2.7\Release\src\7zip\c\cpuarch.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\Aes.c -o build\temp.win32-2.7\Release\src\7zip\c\aes.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\AesOpt.c -o build\temp.win32-2.7\Release\src\7zip\c\aesopt.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\Sha256.c -o build\temp.win32-2.7\Release\src\7zip\c\sha256.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\Bra.c -o build\temp.win32-2.7\Release\src\7zip\c\bra.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\Bra86.c -o build\temp.win32-2.7\Release\src\7zip\c\bra86.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\7zip\C\BraIA64.c -o build\temp.win32-2.7\Release\src\7zip\c\braia64.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src\compat\LzmaCompatDecode.c -o build\temp.win32-2.7\Release\src\compat\lzmacompatdecode.o
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/sdk/LzFindMt.c -o build\temp.win32-2.7\Release\src\sdk\lzfindmt.o
src/sdk/LzFindMt.c: In function 'BtThreadFunc2':
src/sdk/LzFindMt.c:457:8: warning: variable 'allocaDummy' set but not used [-Wunused-but-set-variable]
src/sdk/LzFindMt.c: At top level:
src/sdk/LzFindMt.c:146:1: warning: 'GetHeads5' defined but not used [-Wunused-function]
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -mdll -O -Wall -DWITH_COMPAT=1 -DPYLZMA_VERSION=
None -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\include -IC:\sstrahl\Programme\WinPython-
32bit-2.7.6.4\python-2.7.6\PC -c src/sdk/Threads.c -o build\temp.win32-2.7\Release\src\sdk\threads.o
writing build\temp.win32-2.7\Release\src\pylzma\pylzma.def
C:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\..\tools\mingw32\bin\gcc.exe -shared -s build\temp.win32-2.7\Release\src\pylz
ma\pylzma.o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompressobj.o build\temp.win32-2.7\Release\src\pylzma\pylzma_compressfile.
o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompress.o build\temp.win32-2.7\Release\src\pylzma\pylzma_compress.o build\temp.win3
2-2.7\Release\src\pylzma\pylzma_streams.o build\temp.win32-2.7\Release\src\pylzma\pylzma_aes.o build\temp.win32-2.7\Release\src\pylzma\
pylzma_decompress_compat.o build\temp.win32-2.7\Release\src\pylzma\pylzma_decompressobj_compat.o build\temp.win32-2.7\Release\src\sdk\l
zfind.o build\temp.win32-2.7\Release\src\sdk\lzmadec.o build\temp.win32-2.7\Release\src\sdk\lzmaenc.o build\temp.win32-2.7\Release\src\
7zip\c\cpuarch.o build\temp.win32-2.7\Release\src\7zip\c\aes.o build\temp.win32-2.7\Release\src\7zip\c\aesopt.o build\temp.win32-2.7\Re
lease\src\7zip\c\sha256.o build\temp.win32-2.7\Release\src\7zip\c\bra.o build\temp.win32-2.7\Release\src\7zip\c\bra86.o build\temp.win3
2-2.7\Release\src\7zip\c\braia64.o build\temp.win32-2.7\Release\src\compat\lzmacompatdecode.o build\temp.win32-2.7\Release\src\sdk\lzfi
ndmt.o build\temp.win32-2.7\Release\src\sdk\threads.o build\temp.win32-2.7\Release\src\pylzma\pylzma.def -LC:\sstrahl\Programme\WinPyth
on-32bit-2.7.6.4\python-2.7.6\libs -LC:\sstrahl\Programme\WinPython-32bit-2.7.6.4\python-2.7.6\PCbuild -luser32 -loleaut32 -lpython27 -
lmsvcr90 -o build\lib.win32-2.7\pylzma.pyd
c:\temp\pylzma>
from pylzma.
Related Issues (20)
- Bugs Report : Incorrect stream properties
- Data error during extraction HOT 20
- Feature request: read 7zip file line by line HOT 1
- py7zlib fails with `IndexError: list index out of range` when opening specific 7z archive HOT 13
- py7zlib fails when decompressing lzma2 bcj2 7z file HOT 2
- Feature: py7zlib: archive file mode and format API HOT 2
- Can't decompress the lzma1900.7z file using py7zlib.Archive7z HOT 1
- py7zlib: _read64Bit() returns None when reading bytes start with 0xff HOT 1
- Incorrect stream properties (TypeError) while trying to decompress HOT 1
- How read a 7z file with volumes?
- Do not automatically skip directory entries
- Feature: Add support for streaming ArchiveFiles HOT 2
- Hope to achieve the function of encryption
- Recent important updates not on pypi HOT 2
- Requested pylzma==0.5.0 but installing version is 0.5.0.post0 HOT 1
- index error
- python2 syntax in test_usage.py
- "pip instal pylzma" not working
- Building FreeBSD port archivers/py-lzma fails with error
- compliation fails on OpenBSD 7.3 / Python 3.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylzma.