Open brad-colbert opened 2 years ago
I installed the wheel package, got a little further (farther?... I'm your farther Luke!) but hitting a snag when building wxpython:
... lots and lots...
looks to be in the antic_speedups.c:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\bradc\Projects\venv\omnivore\lib\site-packages\numpy\core\include -IC:\Users\bradc\Projects\venv\omnivore\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcomnivore/arch/antic_speedups.c /Fobuild\temp.win-amd64-3.10\Release\omnivore/arch/antic_speedups.obj -DMSVC -D_CRT_SECURE_NO_WARNINGS /Zi
antic_speedups.c
c:\users\bradc\projects\venv\omnivore\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
omnivore/arch/antic_speedups.c(3293): warning C4244: '=': conversion from '__pyx_t_5numpy_uint16_t' to '__pyx_t_5numpy_uint8_t', possible loss of data
omnivore/arch/antic_speedups.c(3314): warning C4244: '=': conversion from '__pyx_t_5numpy_uint16_t' to '__pyx_t_5numpy_uint8_t', possible loss of data
omnivore/arch/antic_speedups.c(3335): warning C4244: '=': conversion from '__pyx_t_5numpy_uint16_t' to '__pyx_t_5numpy_uint8_t', possible loss of data
omnivore/arch/antic_speedups.c(21018): error C2105: '++' needs l-value
omnivore/arch/antic_speedups.c(21020): error C2105: '--' needs l-value
omnivore/arch/antic_speedups.c(21307): error C2105: '++' needs l-value
omnivore/arch/antic_speedups.c(21309): error C2105: '--' needs l-value
omnivore/arch/antic_speedups.c(21546): error C2105: '++' needs l-value
omnivore/arch/antic_speedups.c(21548): error C2105: '--' needs l-value
omnivore/arch/antic_speedups.c(22326): error C2039: 'tp_print': is not a member of '_typeobject'
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
omnivore/arch/antic_speedups.c(22331): error C2039: 'tp_print': is not a member of '_typeobject'
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
omnivore/arch/antic_speedups.c(22346): error C2039: 'tp_print': is not a member of '_typeobject'
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
omnivore/arch/antic_speedups.c(22359): error C2039: 'tp_print': is not a member of '_typeobject'
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
omnivore/arch/antic_speedups.c(22994): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
omnivore/arch/antic_speedups.c(23010): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
omnivore/arch/antic_speedups.c(24785): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\include\cpython/unicodeobject.h(551): note: see declaration of 'PyUnicode_FromUnicode'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
G'dangit!
The tp_print method was removed from the API in Python 3.9. Error "'tp_print': is not a member of '_typeobject'" means that the code is intended for Python <= 3.8.
Ok, a little unfair, maybe, but I've tried this on my MBP (Python 3.7.9) and I get farther/further/I'm your... but errors out, again, in atari800_antic.c:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -UNDEBUG -Ilibatari800/include/linux -Ilibatari800/atari800/src -Ilibatari800/atari800/src/libatari800 -Ilibdebugger -Ilibudis -I/Users/bcolbert/Projects/venv/omnivore/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/bcolbert/Projects/venv/omnivore/include -I/usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c libatari800/atari800_antic.c -o build/temp.macosx-10.15-x86_64-3.7/libatari800/atari800_antic.o -g
libatari800/atari800_antic.c:3055:7: error: implicit declaration of function 'CPU_DLI' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
CPU_DLI();
^
libatari800/atari800_antic.c:3055:7: note: did you mean 'CPU_NMI'?
libatari800/atari800/src/cpu.h:24:6: note: 'CPU_NMI' declared here
void CPU_NMI(void);
^
libatari800/atari800_antic.c:3070:6: error: implicit declaration of function 'CPU_DLI' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
CPU_DLI();
^
libatari800/atari800_antic.c:3218:3: error: implicit declaration of function 'CPU_VBI' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
CPU_VBI();
^
libatari800/atari800_antic.c:3218:3: note: did you mean 'CPU_NMI'?
libatari800/atari800/src/cpu.h:24:6: note: 'CPU_NMI' declared here
void CPU_NMI(void);
^
3 errors generated.
I have not tested Omnivore at python > 3.8, but that's on my plate this coming week.
Also, I don't know what your use case will be, but I'm considering removing the built-in emulator from Omnivore, at least as currently implemented. The threaded implementation I'm currently using is not viable for further development. If you don't need the emulator, I should (hopefully) have things working in the next week or so.
I have not tested Omnivore at python > 3.8, but that's on my plate this coming week.
Also, I don't know what your use case will be, but I'm considering removing the built-in emulator from Omnivore, at least as currently implemented. The threaded implementation I'm currently using is not viable for further development. If you don't need the emulator, I should (hopefully) have things working in the next week or so.
Rob, thanks for the reply!
Right now I'm mainly focused on the Antic 4 font and playfield editing... although I could see where emulation would be a nice to have for quick testing.
Hello,
I'm not sure where to look for a solution but I'm hitting an error on installing via pip on Windows 10.
Thank you for all your hard work.