-
-
Notifications
You must be signed in to change notification settings - Fork 908
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
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' with Python 3.9.4 #1182
Comments
Oh. I have seen now it was fixed since 2.1.0 |
Duplicate of #1162. |
Installing it from specific commit via pip didn't work for me: ~# pip install https://github.com/s3tools/s3cmd/archive/5834228d5bddde3819a3ae5506dd656b62dfb2d1.zip
Collecting https://github.com/s3tools/s3cmd/archive/5834228d5bddde3819a3ae5506dd656b62dfb2d1.zip
Downloading https://github.com/s3tools/s3cmd/archive/5834228d5bddde3819a3ae5506dd656b62dfb2d1.zip (477 kB)
|████████████████████████████████| 477 kB 300 kB/s
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.9/site-packages/python_dateutil-2.8.1-py3.9.egg (from s3cmd===2.1.0-) (2.8.1)
Requirement already satisfied: python-magic in /usr/local/lib/python3.9/site-packages/python_magic-0.4.22-py3.9.egg (from s3cmd===2.1.0-) (0.4.22)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.9/site-packages (from python-dateutil->s3cmd===2.1.0-) (1.15.0)
Building wheels for collected packages: s3cmd
Building wheel for s3cmd (setup.py) ... done
Created wheel for s3cmd: filename=s3cmd-2.1.0_-py2.py3-none-any.whl size=150977 sha256=150baa01a4f556728e6d8b4a3aac87f86d4d6eaf63230119b386d9a61f985aaa
Stored in directory: /tmp/pip-ephem-wheel-cache-hbsgj3tg/wheels/7d/b4/64/917d47da08f0dc10c288c8704e965c151b31c0d82b7fd5d6c4
WARNING: Built wheel for s3cmd is invalid: Metadata 1.2 mandates PEP 440 version, but '2.1.0-' is not
Failed to build s3cmd
Installing collected packages: s3cmd
Running setup.py install for s3cmd ... done
DEPRECATION: s3cmd was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Successfully installed s3cmd-2.1.0-
~# s3cmd
sh: s3cmd: not found But installing it manually via ENV S3CMD_COMMIT=5834228d5bddde3819a3ae5506dd656b62dfb2d1
RUN wget https://github.com/s3tools/s3cmd/archive/$S3CMD_COMMIT.zip -O /tmp/s3cmd.zip \
&& cd /tmp/ \
&& unzip /tmp/s3cmd.zip \
&& cd /tmp/s3cmd-$S3CMD_COMMIT/ \
&& python setup.py install \
&& rm -rf /tmp/s3cmd* |
@trane9991 which pip version are you using? Your commands work for me with python 3.9.0 and pip 20.0.2, without the warnings about the wheel.
|
Surprised to see that creates the wheel package. |
@salty-horse, FROM python:3.9.2-alpine3.13
RUN pip -V && pip install https://github.com/s3tools/s3cmd/archive/5834228d5bddde3819a3ae5506dd656b62dfb2d1.zip
RUN s3cmd |
It breaks in pip 20.3.4 due to this change:
Try: A new bug should be opened about the failed wheel verification. |
Thanks to @salty-horse investigation, I have renamed the development version, and so your pip install should be working again I hope. For the original issue, as reported, it is already fixed in MASTER and I will soon do a new release that will have it included. |
Sorry, I forgot to mention that after |
you are a live saver. Thank you. |
@MurphyAdam this is no longer needed if you install from the latest commit: |
Thank you once again. I initially installed from https://pypi.org/ which seem to still have not been updated with the last changes. |
Tried to resolve previous issue by updating python 3.8 -> 3.9
Got new problem.
According ocrmypdf/OCRmyPDF#583 method
getchildren
was deprecated since 3.4 and now it removed from python standard library.Suppose there must be some changes in code to fix this problem.
But i have no competence in python at all.
The text was updated successfully, but these errors were encountered: