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 from wxPython==4.0.7.post2 #8

Open
jayatsandia opened this issue Oct 20, 2021 · 3 comments
Open

Error from wxPython==4.0.7.post2 #8

jayatsandia opened this issue Oct 20, 2021 · 3 comments

Comments

@jayatsandia
Copy link
Collaborator

wxPython==4.0.7.post2

I think this can safety be changed to wxPython.

@jayatsandia
Copy link
Collaborator Author

Actually this doesn't look like it will work. I'm getting a render_info logo_sizer.Add() error right now... but this might be an issue with sizer.cpp.

Currently working with Python3.9. but I'm unable to

pip install wxPython==4.0.7.post2

because something associated with my windows environment (https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/).

@jayatsandia
Copy link
Collaborator Author

I reverted to Python 3.7.9 and the wxPython installation worked fine for version 4.0.7.post2. We should really upgrade this to python 3.10 and update to use the latest version of wxPython at some point...

@jayatsandia
Copy link
Collaborator Author

Attempted to install with Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32

It produced this error:

  × Running setup.py install for wxpython did not run successfully.
  │ exit code: 1
  ╰─> [43 lines of output]
      C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py:771: 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:\Program Files\Python311\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
        warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
      running install
      C:\Program Files\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      Will build using: "C:\Program Files\Python311\python.exe"
      3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
      Python's architecture is 64bit
      cfg.VERSION: 4.0.7.post2

      Running command: build
      Running command: build_wx
      Command '"C:\Program Files\Python311\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
      Traceback (most recent call last):

        File "<string>", line 1, in <module>

        File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 403, in initialize

          vc_env = query_vcvarsall(VERSION, plat_spec)

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

        File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 281, in query_vcvarsall

          raise DistutilsPlatformError("Unable to find vcvarsall.bat")

      distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
      Finished command: build_wx (0.456s)
      Finished command: build (0.457s)
      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:\Program Files\Python311\python.exe" -u build.py build
      Command '"C:\Program Files\Python311\python.exe" -u build.py build' failed with exit code 1.

Installed MS Visual C++ Redistributable from: [https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170]
(https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170) with no success.

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

1 participant