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 Incompatibility with Python 3.12 #510

Closed
nrahaim3 opened this issue Nov 28, 2023 · 2 comments
Closed

Build Incompatibility with Python 3.12 #510

nrahaim3 opened this issue Nov 28, 2023 · 2 comments

Comments

@nrahaim3
Copy link

Describe the bug
Python 3.12 has removed the 'imp' module:
https://github.com/python/cpython/issues/98040

This is blocking my ability to build BSK using the venv.

To reproduce

Build basic setup provided in Docs for MacOS:
https://hanspeterschaub.info/basilisk/Install/installOnMacOS.html

  1. $ xcode-select --install

  2. $ brew install swig

  3. $ brew install cmake

  4. $ brew link cmake

  5. DOWNLOAD LATEST Python version, Python 3.12

  6. $ python3 -m venv .venv

  7. (.venv) $ pip3 install wheel

  8. (.venv) $ pip3 install -v "conan==1.61.0"

  9. $ python3 conanfile.py

error:
image

According to Python 3.12 docs, 'imp' module has been replaced.
https://github.com/python/cpython/issues/98040

Expected behavior
Fully build sim

Resolved this locally by removing Python 3.12.0 and downloading Python 3.11.6 (Note: operating with only 1 python version at all times)

Desktop (please complete the following information):

  • OS: [Macos]
  • Version [Ventura 13.5]
  • Python version [3.12.0]

Additional context
Add any other context about the problem or potential solution paths here.

This was resolved locally by using Python 3.11.6

@sassy-asjp
Copy link
Contributor

Have you tried updating to the latest conan?

conan-io/conan#14841

https://docs.conan.io/1/changelog.html#nov-2023

@nrahaim3
Copy link
Author

nrahaim3 commented Dec 5, 2023

I used conan v1.XX as that was labeled as necessary in the build instructions; I'll refactor that and get python 3.12 stood up
It seems the issue I am running into was covered in the bug fix you provided, thanks!

@nrahaim3 nrahaim3 closed this as completed Dec 5, 2023
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