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

pip install fails on Python 3.12 #674

Closed
2hu4u opened this issue Apr 3, 2024 · 4 comments
Closed

pip install fails on Python 3.12 #674

2hu4u opened this issue Apr 3, 2024 · 4 comments

Comments

@2hu4u
Copy link

2hu4u commented Apr 3, 2024

Hi there
I am using a fresh install of Python 3.12 with pip 24.0.
Using pip install mapillary_tools fails with the following output;

Collecting pynmea2==1.12.0 (from mapillary_tools)
  Downloading pynmea2-1.12.0.tar.gz (26 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\22105466\AppData\Local\Temp\pip-build-env-n0vvx2ob\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\22105466\AppData\Local\Temp\pip-build-env-n0vvx2ob\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "C:\Users\22105466\AppData\Local\Temp\pip-build-env-n0vvx2ob\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\22105466\AppData\Local\Temp\pip-build-env-n0vvx2ob\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 3, in <module>
      ModuleNotFoundError: No module named 'imp'
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

It appears that this is a depreciation issue with imp which was depreciated in 3.12 but I am not entirely sure.
mapillary_tools installs correctly using the same pip method on Python 3.11 and Python 3.9. I tried this with a few other PCs with Windows 10 and Windows 11, same thing happens across all.

@ptpt
Copy link
Member

ptpt commented Apr 3, 2024

GH actions work. I wonder if it's because of any recent changes. Let me trigger it again and update you here.

@blaueente
Copy link

same here

@OnurKader
Copy link

Possible related issue: Knio/pynmea2#163

@ptpt
Copy link
Member

ptpt commented May 21, 2024

Should be fixed in https://pypi.org/project/mapillary-tools/0.11.2/

Please try again.

@ptpt ptpt closed this as completed May 21, 2024
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

4 participants