-
Notifications
You must be signed in to change notification settings - Fork 60
Broken in 3.8 due to bad import from marrow/cgi #87
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
Comments
It's just that
Yeah, it's kinda odd that |
Given it's not even used, the solution here is removal of that dependency, which is primarily there to support Python 2 compatibility, which is no longer a desired feature or concern. There are no ramifications. |
Yes, |
@iamareebjamal Reference my recent comment on #90 — with a properly quoted search you find the summary included at the end of that comment. That is: virtually none of marrow.util is required, except the compatibility for Python 2, which can go away, and This issue is an actual issue, where the other is not. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Indeed it installs fine but importing it causes this
What would be the fastest way to go? for run in python 3.8? Install an older version? (guess not?) |
@tyoc213 Quick fix while I work on removing |
Any news on this? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@GertBurger I have switched to this fork https://github.com/LexMachinaInc/mailer https://github.com/LexMachinaInc/util which contains the "trivial" fix we mere mortals are not worthy to enjoy in the official package. I suggest you do the same unless you want to wait another 4 months for a non-update |
Curiouser and curiouser. That person made the fork, didn't bother opening a PR. Go figure. Edit: and did it wrong. That's just icing on this cavalcade. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@GertBurger Apologies for the fantastic signal:noise ratio on this issue today. Work is progressing on the The "hack and slash" fix (comment out one specific line in your copy) can be effective as a short-term solution, slightly longer-term is the bit of helpful pointer that bubbled out of the chatter, a fork that is patched. However, this is also stop-gap, and an approach entirely taken from the wrong direction. |
Hey everyone, I ran into this issue today. Rather than switching to a fork, you can temporarily fix this error by adding these lines at the top of the file (before importing import sys # isort:skip
sys.modules["cgi.parse_qsl"] = None |
OT but it seems that there is also an issue with Python 3.9 as I guess one can do a similar monkey patch to add it back... |
Looks like my employer paid me to unarchive the repository and patch it. The develop branch of If you are utilizing
Aside: I also just tested the import process retrieving references to Marking as closed. |
@GertBurger The |
Lifesaver!!! Thanks :)
…On Thu, Feb 17, 2022 at 1:41 PM Alice Zoë Bevan–McGregor < ***@***.***> wrote:
@GertBurger <https://github.com/GertBurger> The encodestring reference
was corrected in 32dde28
<32dde28>
.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGAYW7XL5XNPG2DINQORC3U3VTQLANCNFSM4KLAS3ZQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This seems to be patched but there is no release on the Python package index, so the original problem is still there when installing marrow.mailer via pip. |
I just hit that issue today. It's still buggy on PyPI. |
Looks like it's broken on python 3.8.1 currently.
Installs fine:
Running a script with the example code:
If I go diving into
compat.py
and changefrom cgi import parse_qsl
tofrom urllib.parse import parse_qsl
, it works fine. This is makes sense, given Python 3.8 notes:I don't know the ramifications of using
urllib.parse
overhtml
, though.Util is archived, otherwise I would have raised the issue there /shrug.
The text was updated successfully, but these errors were encountered: