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 when installing python module from the sources #1972

Open
Mikhail2017 opened this issue Jan 11, 2025 · 1 comment
Open

Error when installing python module from the sources #1972

Mikhail2017 opened this issue Jan 11, 2025 · 1 comment

Comments

@Mikhail2017
Copy link

Description

make scripts fail to install built gtsam python modules, returning

Traceback (most recent call last):
  File "/home/mikhail/dev/gtsam/build1/venv/bin/pybind11-stubgen", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/mikhail/dev/gtsam/build1/venv/lib/python3.12/site-packages/pybind11_stubgen/__init__.py", line 319, in main
    run(
  File "/home/mikhail/dev/gtsam/build1/venv/lib/python3.12/site-packages/pybind11_stubgen/__init__.py", line 358, in run
    QualifiedName.from_str(module_name), importlib.import_module(module_name)
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mikhail/anaconda3/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 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'gtsam'

, when running make python-install

Steps to reproduce

  1. Create and source virtual environment
  2. Build and install according to https://github.com/borglab/gtsam/blob/develop/python/README.md

Expected behavior

Successfull installation

Environment

Ubuntu 22
Python 3.12.2

Additional information

@varunagrawal
Copy link
Collaborator

What version of GTSAM are you using? I believe this is an issue in an older commit but has been fixed since.

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