-
Notifications
You must be signed in to change notification settings - Fork 53
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
Regipy in Docker container not working (AttributeError: module 'importlib' has no attribute 'util') #181
Comments
Which version of |
Here ist the output of
|
This is an issue with construct and python 3.9 support. I'll update dependencies once it is merged. |
Thank you, that's awesome! I can confirm that the pull request construct/construct#930 fixes the issue when applied manually in the Docker container. |
I had this issue just today, tried python 3.7, 3.8 and 3.9, all of them did not work. I added pull request to the repository of construct. I solve it in my environment by editing core.py and just adding it to the imports: It is how it is defined in the documentation: https://docs.python.org/3/library/importlib.html These would solve the issue. |
Yes you are right. Like I mentioned in my previous post the changes in construct/construct#930 already fix the issue in Pyhton 3.9. Here are the relevant lines of my Docker file:
Note that this will probably break as soon as the pull requests mentioned above have been accepted. |
Hello everybody,
I am trying to use regipy in a script within a Docker container. As soon as my script tries to import the RegistryHive, the following error gets thrown:
It seems like core.py is importing importlib.util the wrong way (based on other articles with similar problems).
I use the following line within my script to import the RegistryHive
from regipy.registry import RegistryHive
The important lines of my Dockerfile are the following:
The requirements.txt includes a line "regipy", which installs version 2.0.1 of regipy. I already tried to use older version of python (3.8, 3.7, 3.6), which resulted in the same error.
I am aware that this is not directly an issue of Regipy, but I would appreciate any help/input I can get here.
Thanks in advance and Best Regards
Moe
The text was updated successfully, but these errors were encountered: