Skip to content

ModuleNotFoundError: No module named 'PyCeres.PyCeres' #22

@uestchjw

Description

@uestchjw

I first install Ceres and then install ceres_python_bindings. It seems successful,

(Where2comm) root@386d1e05ef15:/data/localdata/hjw/Github/ceres-solver/ceres_python_bindings# pip install .
Processing /data/localdata/hjw/Github/ceres-solver/ceres_python_bindings
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: PyCeres
  Building wheel for PyCeres (pyproject.toml) ... done
  Created wheel for PyCeres: filename=PyCeres-0.0.0-cp37-cp37m-linux_x86_64.whl size=1611978 sha256=57c4e95a1f3bae1def39ec135ce50acf019da47e2f74bcefac02b8b97a2ad271
  Stored in directory: /tmp/pip-ephem-wheel-cache-8v00wsv5/wheels/18/8e/5f/5a4a7bdf7bb119e9aae6b12fc0531bee90b11dcbb69327067c
Successfully built PyCeres
Installing collected packages: PyCeres
  Attempting uninstall: PyCeres
    Found existing installation: PyCeres 0.0.0
    Uninstalling PyCeres-0.0.0:
      Successfully uninstalled PyCeres-0.0.0
Successfully installed PyCeres-0.0.0

However, when I run "import PyCeres", it tells me no module named PyCeres.PyCeres, whether I use base environment or my own virtual environment

(base) root@386d1e05ef15:/data/localdata/hjw/Code# python whileboard.py 
Traceback (most recent call last):
  File "/data/localdata/hjw/Code/whileboard.py", line 4, in <module>
    import PyCeres
  File "/opt/conda/lib/python3.9/site-packages/PyCeres/__init__.py", line 1, in <module>
    from PyCeres.PyCeres import *
ModuleNotFoundError: No module named 'PyCeres.PyCeres'

Thanks for any insight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions