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

Camelot can't find its own modules inside Poetry venv #544

Open
GroundhogState opened this issue Feb 19, 2025 · 0 comments
Open

Camelot can't find its own modules inside Poetry venv #544

GroundhogState opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@GroundhogState
Copy link

GroundhogState commented Feb 19, 2025

Describe the bug

Steps to reproduce the bug

  1. Set up poetry venv inside VSCode Devcontainer
  2. poetry run pip install camelot-py[base]
  3. poetry run pip list | grep camelot >> camelot-py 1.0.0
  4. in command line, poetry run python
  5. import camelot

Expected behavior

Import should resolve, but raises:
ImportError: cannot import name 'TableList' from 'camelot.core' (/workspaces/projectname/.venv/lib/python3.12/site-packages/camelot/core/__init__.py)

Same result if replacing 2. above with poetry add camelot-py[base].

Additional context

This is similar/same behaviour to some other closed issues, but their reported fixes have not worked

It looks to me like the from .core import TableList is seeking a directory (c.f. ImportError) whereas the TableList actually lives in in the core.py module, not a subpackage /core. Is this a side effect of the venv? If I run pip install camelot-py[base] in the devcontainer, then I can import at will.

@GroundhogState GroundhogState added the bug Something isn't working label Feb 19, 2025
@GroundhogState GroundhogState changed the title Camelot can't find its own modules Camelot can't find its own modules inside Poetry venv Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant