-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error when installing pylzham on MacOS #3
Comments
Hi, look like it's a known issue on mac, EDIT: i fixed this issue in the following commit |
Thanks its working now! |
One more thing, do you know how to extract the files that don't have a tex_sc file for it? For eg scenery_clashy_constructs_dl_opt.sc This one, it doesn't have a tex_sc file. |
Yeah you can use this tool: https://github.com/Galaxy1036/Old-Sc-Dumper |
So I tried to download pylzham again but now its giving me a different error. It worked a month ago. |
I think the issue might be macOS Catalina , last time I think I tried it on macOS Mojave |
Ok I was able to fix it by installing the latest version of python3 using home-brew as lited here. |
So i was able to extract png from that tool thanks! Is there a way to also extract all the sprites from the single png? |
hi, I am getting this error when installing lzham
Collecting pylzham
Using cached pylzham-0.1.1.tar.gz (109 kB)
Building wheels for collected packages: pylzham
Building wheel for pylzham (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sf/4yt8hgxj1n511np5gfncnqwc0000gn/T/pip-install-ja6cx5pn/pylzham/setup.py'"'"'; file='"'"'/private/var/folders/sf/4yt8hgxj1n511np5gfncnqwc0000gn/T/pip-install-ja6cx5pn/pylzham/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/sf/4yt8hgxj1n511np5gfncnqwc0000gn/T/pip-wheel-w_rrql9n
cwd: /private/var/folders/sf/4yt8hgxj1n511np5gfncnqwc0000gn/T/pip-install-ja6cx5pn/pylzham/
Complete output (99 lines):
WARNING: '' not a valid package name; please use only .-separated package names in setup.py
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/lzham
copying src/lzham/decompress.py -> build/lib.macosx-10.9-x86_64-3.8/lzham
copying src/lzham/init.py -> build/lib.macosx-10.9-x86_64-3.8/lzham
copying src/lzham/compress.py -> build/lib.macosx-10.9-x86_64-3.8/lzham
running build_ext
building '_lzham' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/lib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/lzham_module.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/lzham_module.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/lib/lzham_api.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/lib/lzham_api.o
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:259:
src/lib/lzham_traits.h:132:15: error: expected unqualified-id
if ( LZHAM_HAS_DESTRUCTOR(T) )
^
src/lib/lzham_traits.h:82:64: note: expanded from macro 'LZHAM_HAS_DESTRUCTOR'
#define LZHAM_HAS_DESTRUCTOR(T) ((!scalar_type::cFlag) && (!LZHAM_IS_POD(T)))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:56:14: error: expected unqualified-id
if (LZHAM_IS_BITWISE_COPYABLE(T))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:101:14: error: expected unqualified-id
if (LZHAM_IS_BITWISE_COPYABLE(T))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:257:17: error: expected unqualified-id
if (LZHAM_IS_BITWISE_COPYABLE(T))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:274:14: error: expected unqualified-id
if (LZHAM_IS_BITWISE_COPYABLE(T))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:323:14: error: expected unqualified-id
if (LZHAM_IS_BITWISE_COPYABLE(T))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
In file included from src/lib/lzham_api.cpp:3:
In file included from src/lib/lzham_core.h:263:
src/lib/lzham_vector.h:573:14: error: expected unqualified-id
(LZHAM_IS_BITWISE_MOVABLE(T) || (is_vector::cFlag)) ? NULL : object_mover, nofail);
^
src/lib/lzham_traits.h:80:38: note: expanded from macro 'LZHAM_IS_BITWISE_MOVABLE'
#define LZHAM_IS_BITWISE_MOVABLE(T) (LZHAM_IS_BITWISE_COPYABLE(T) || (bitwise_movable::cFlag))
^
src/lib/lzham_traits.h:78:98: note: expanded from macro 'LZHAM_IS_BITWISE_COPYABLE'
#define LZHAM_IS_BITWISE_COPYABLE(T) ((scalar_type::cFlag) || (bitwise_copyable::cFlag) || LZHAM_IS_POD(T))
^
src/lib/lzham_traits.h:71:33: note: expanded from macro 'LZHAM_IS_POD'
#define LZHAM_IS_POD(T) std::__is_pod::__value
^
7 errors generated.
error: command 'gcc' failed with exit status 1
ERROR: Failed building wheel for pylzham
The text was updated successfully, but these errors were encountered: