Skip to content
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

Error on pip install: Running setup.py install for wxpython did not run successfully. #264

Open
brad-colbert opened this issue Jul 2, 2022 · 5 comments

Comments

@brad-colbert
Copy link

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.

>python3 --version
Python 3.10.5
>pip3 --version
pip 22.0.4 from C:\Users\bradc\Projects\venv\omnivore\lib\site-packages\pip (python 3.10)
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.4
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>cd C:\Users\bradc

C:\Users\bradc>Projects\venv\omnivore\Scripts\activate.bat

(omnivore) C:\Users\bradc>pip3 install omnivore
Collecting omnivore
  Using cached omnivore-1.99.9.tar.gz (2.8 MB)
  Preparing metadata (setup.py) ... done
Collecting pathlib2
  Using cached pathlib2-2.3.7.post1-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: numpy in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (1.23.0)
Requirement already satisfied: python-slugify in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (6.1.2)
Requirement already satisfied: ply in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (3.11)
Requirement already satisfied: lz4 in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (4.0.1)
Requirement already satisfied: construct<2.9 in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (2.8.22)
Requirement already satisfied: pytz in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (2022.1)
Requirement already satisfied: pyparsing in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (3.0.9)
Collecting configobj
  Using cached configobj-5.0.6.tar.gz (33 kB)
  Preparing metadata (setup.py) ... done
Collecting bson<1.0.0
  Using cached bson-0.5.10.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: jsonpickle in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (2.2.0)
Requirement already satisfied: pyopengl in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (3.1.6)
Requirement already satisfied: fleep in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (1.0.1)
Requirement already satisfied: appdirs in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (1.4.4)
Collecting wxpython
  Using cached wxPython-4.1.1.tar.gz (66.0 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pillow in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (9.2.0)
Requirement already satisfied: six in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from omnivore) (1.16.0)
Collecting python-dateutil>=2.4.0
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Requirement already satisfied: text-unidecode>=1.3 in c:\users\bradc\projects\venv\omnivore\lib\site-packages (from python-slugify->omnivore) (1.3)
Using legacy 'setup.py install' for omnivore, since package 'wheel' is not installed.
Using legacy 'setup.py install' for bson, since package 'wheel' is not installed.
Using legacy 'setup.py install' for configobj, since package 'wheel' is not installed.
Using legacy 'setup.py install' for wxpython, since package 'wheel' is not installed.
Installing collected packages: wxpython, python-dateutil, pathlib2, configobj, bson, omnivore
  Running setup.py install for wxpython ... error
  error: subprocess-exited-with-error

  × Running setup.py install for wxpython did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      C:\Users\bradc\Projects\venv\omnivore\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
        warnings.warn(
      C:\Users\bradc\Projects\venv\omnivore\lib\site-packages\setuptools\dist.py:294: DistDeprecationWarning: use_2to3 is ignored.
        warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
      running install
      running build
      C:\Users\bradc\AppData\Local\Temp\pip-install-e4lj1fx7\wxpython_a9617faa11f041c28ba5feb0ab4ed8ac\build.py:41: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
        from distutils.dep_util import newer, newer_group
      Will build using: "C:\Users\bradc\Projects\venv\omnivore\Scripts\python.exe"
      3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)]
      Python's architecture is 64bit
      cfg.VERSION: 4.1.1

      Running command: build
      Running command: build_wx
      MSVC: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe
      Downloading microsoft.web.webview2 1.0.622.22...
      Traceback (most recent call last):
        File "C:\Users\bradc\AppData\Local\Temp\pip-install-e4lj1fx7\wxpython_a9617faa11f041c28ba5feb0ab4ed8ac\build.py", line 676, in getMSWebView2
          import requests
      ModuleNotFoundError: No module named 'requests'
      Finished command: build_wx (0m1.540s)
      Finished command: build (0m1.540s)
      WARNING: Building this way assumes that all generated files have been
      generated already.  If that is not the case then use build.py directly
      to generate the source and perform the build stage.  You can use
      --skip-build with the bdist_* or install commands to avoid this
      message and the wxWidgets and Phoenix build steps in the future.

      "C:\Users\bradc\Projects\venv\omnivore\Scripts\python.exe" -u build.py build
      Command '"C:\Users\bradc\Projects\venv\omnivore\Scripts\python.exe" -u build.py build' failed with exit code 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> wxpython

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the 'C:\Users\bradc\Projects\venv\omnivore\Scripts\python.exe -m pip install --upgrade pip' command.
@brad-colbert
Copy link
Author

brad-colbert commented Jul 2, 2022

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]

@brad-colbert
Copy link
Author

brad-colbert commented Jul 2, 2022

G'dangit!

https://stackoverflow.com/questions/65462530/pyclipper-installation-error-tp-print-is-not-a-member-of-typeobject

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.

@brad-colbert
Copy link
Author

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/[email protected]/include -I/usr/local/opt/sqlite/include -I/Users/bcolbert/Projects/venv/omnivore/include -I/usr/local/opt/[email protected]/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.

@robmcmullen
Copy link
Owner

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.

@brad-colbert
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants