Skip to content

No module named 'madpose.madpose' #4

@pablovela5620

Description

@pablovela5620

when running examples or trying to use this as a library in another application (by using this as a submodule) I get the following error

python examples/two_focal.py

Traceback (most recent call last):
  File "/home/pablo/0Dev/repos/madpose/examples/two_focal.py", line 7, in <module>
    import madpose
  File "/home/pablo/0Dev/repos/madpose/.pixi/envs/default/lib/python3.11/site-packages/madpose/__init__.py", line 1, in <module>
    from .madpose import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'madpose.madpose

if I use python -m examples.two_focal.py then things work but I'm trying to use this in another repo and get the same error. I don't know all that much about pybind. but it seems like maybe it has to do with how init.py is setup?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions