You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/test/.venv/lib/python3.12/site-packages/mindee/__init__.py", line 1, in <module>
from mindee import product
ImportError: cannot import name 'product' from partially initialized module 'mindee' (most likely due to a circular import) (/tmp/test/.venv/lib/python3.12/site-packages/mindee/__init__.py)
Reproduces how often:
100%.
Versions
Python 3.12 on Linux.
mindee==4.14.1
Additional Information
We have introduced a caching layer on-top of Mindee in order to reduce duplicate parsings based on checksuming. Up until this point, this was done by mocking out the requests package in mindee.mindee_http.endpoint like this...
The new structure of the root __init__.py in the mindee package disallows access to this module. I will look into a work-around for this, but I just wanted to mention it here as well until I wait for the circular import issue to be resolved.
Thanks in advance, and have a nice weekend!
Jakob
The text was updated successfully, but these errors were encountered:
Prerequisites
Put an X between the brackets on this line if you have done all of the following:
Description
Version
4.14.1
ofmindee
introduces a circular import issue.Steps to Reproduce
Expected behavior:
A successful import of the
mindee
package.Actual behavior:
Reproduces how often:
100%.
Versions
Python 3.12 on Linux.
Additional Information
We have introduced a caching layer on-top of Mindee in order to reduce duplicate parsings based on checksuming. Up until this point, this was done by mocking out the
requests
package inmindee.mindee_http.endpoint
like this...The new structure of the root
__init__.py
in themindee
package disallows access to this module. I will look into a work-around for this, but I just wanted to mention it here as well until I wait for the circular import issue to be resolved.Thanks in advance, and have a nice weekend!
The text was updated successfully, but these errors were encountered: