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

Build failing with Python 3.12.3 #25

Open
mcdent opened this issue Jul 2, 2024 · 2 comments
Open

Build failing with Python 3.12.3 #25

mcdent opened this issue Jul 2, 2024 · 2 comments

Comments

@mcdent
Copy link

mcdent commented Jul 2, 2024

I am attempting to build on Ubuntu 24.04 LTS and running in to a problem, looks like my version of Python3 may be too new?

File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 924, in <lambda>
    loaded = map(lambda e: e.load(), filtered)
                           ^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/mike/flightaware/piaware_builder/package-bookworm/debian/venv/lib/python3.12/site-packages/cx_Freeze/__init__.py", line 12, in <module>
    from .command.build_exe import BuildEXE as build_exe
  File "/home/mike/flightaware/piaware_builder/package-bookworm/debian/venv/lib/python3.12/site-packages/cx_Freeze/command/build_exe.py", line 13, in <module>
    from cx_Freeze.freezer import Freezer
  File "/home/mike/flightaware/piaware_builder/package-bookworm/debian/venv/lib/python3.12/site-packages/cx_Freeze/freezer.py", line 30, in <module>
    from .finder import ModuleFinder
  File "/home/mike/flightaware/piaware_builder/package-bookworm/debian/venv/lib/python3.12/site-packages/cx_Freeze/finder.py", line 33, in <module>
    IMPORT_STAR = opcode.opmap["IMPORT_STAR"]
                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'IMPORT_STAR'

ERROR Backend subprocess exited when trying to invoke build_wheel
make[1]: *** [debian/rules:92: build_mlat-client] Error 1
make[1]: Leaving directory '/home/mike/flightaware/piaware_builder/package-bookworm'
make: *** [debian/rules:122: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
mike@fa1:~/flightaware/piaware_builder/package-bookworm$
@mcdent
Copy link
Author

mcdent commented Jul 2, 2024

Actually I may just be as well installing on to a Bookworm OS like 22.04?

@jprochazka
Copy link

Hopefully fixed in pull request #26 if excepted.

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