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

Cannot import Person from partially initialized module. #1565

Open
lk-geimfari opened this issue Jun 9, 2024 · 2 comments
Open

Cannot import Person from partially initialized module. #1565

lk-geimfari opened this issue Jun 9, 2024 · 2 comments
Assignees
Labels
bug Unexpected behaviour and bugs

Comments

@lk-geimfari
Copy link
Owner

lk-geimfari commented Jun 9, 2024

This error occurs when installing Mimesis manually from a wheel or archive.

image

Steps to reproduce this error:

  1. Create new virtual environment with Python 3.12
  2. Download Poetry Core v1.9.0 and mimesis v17 from pypi.org
  3. pip install poetry core
  4. pip install mimesis
  5. Run environment in Pycharm and VS and get the same error.
@lk-geimfari lk-geimfari added the bug Unexpected behaviour and bugs label Jun 9, 2024
@lk-geimfari lk-geimfari self-assigned this Jun 9, 2024
@lk-geimfari
Copy link
Owner Author

lk-geimfari commented Jun 13, 2024

Using relative imports instead of absolute ones should fix it. Therefore, it may be a good idea to use only relative import of local modules.

@lk-geimfari
Copy link
Owner Author

lk-geimfari commented Jun 13, 2024

@acobb83 Just so you know, I'm not going to ignore this issue. I'll fix this problem as soon as I have a little more free time at my job. Thank you for bringing this to my attention.

P.S If you're interested in contributing, you can fix it on your own and send me a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behaviour and bugs
Projects
None yet
Development

No branches or pull requests

1 participant