Comments (6)
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:
FROM python:3.9-slim-buster
RUN sed -i '3 a import importlib.machinery' /usr/local/lib/python3.9/site-packages/construct/core.py
RUN sed -i '4 a import importlib.util' /usr/local/lib/python3.9/site-packages/construct/core.py
Note that this will probably break as soon as the pull requests mentioned above have been accepted.
from regipy.
Which version of construct
you have installed?
from regipy.
Here ist the output of pip3 list
within the Docker container:
Step 11/12 : RUN pip3 list
Package Version
--------------- -------
attrs 21.2.0
configparser 4.0.2
construct 2.10.67
hexdump 3.3
inflection 0.5.1
kaleido 0.2.1
more-itertools 5.0.0
numpy 1.21.1
pandas 1.3.0
pip 21.1.3
plotly 5.1.0
pyparsing 2.4.7
python-dateutil 2.8.2
python-evtx 0.7.4
pytz 2021.1
regipy 2.0.1
setuptools 57.0.0
six 1.16.0
tenacity 8.0.1
wheel 0.36.2
zipp 1.0.0
from regipy.
This is an issue with construct and python 3.9 support.
construct/construct#930
I'll update dependencies once it is merged.
from regipy.
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.
from regipy.
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.
construct/construct#945
I solve it in my environment by editing core.py and just adding it to the imports:
import importlib.util
in your case it would be file "/usr/local/lib/python3.9/site-packages/construct/core.py"
It is how it is defined in the documentation: https://docs.python.org/3/library/importlib.html
These would solve the issue.
from regipy.
Related Issues (20)
- Release `2.0.1` seems to have failed to deploy HOT 2
- Dependency Dashboard
- registry-transaction-log generates a corrupt hive HOT 3
- registry-dump missing some (default) values HOT 6
- Do not pin requirements in setup HOT 3
- OverflowError: Python int too large to convert to C ssize_t HOT 2
- Publish wheel on PyPI HOT 1
- Failure to update HOT 1
- Cant't decode value HOT 2
- Publish wheel on PyPI for 2.3.1 HOT 1
- ConstError when parsing reg-file HOT 1
- Relax libfwsi-python==20220123 requirement and other requirements HOT 3
- UserAssist binary value is returned incomplete HOT 1
- Support Wine registry HOT 2
- `regipy` `console_scripts` have too generic names, that can cause clashes HOT 2
- Cannot iterate over subkeys in NTUSER.DAT\Software
- get_network_info() takes from 2 to 3 positional arguments but 4 were given HOT 1
- regipy-cli: Logging: Use STDINFO instead of STDOUT for information, warning and error messages HOT 1
- `NKRecord.iter_values()` (sometimes?) decodes single-character and empty strings as an integer HOT 1
- Shellbags parsed incorrectly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regipy.