Skip to content
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

crash under Win64: no attribute 'exec_module' #1286

Closed
Alexey-T opened this issue Aug 21, 2022 · 9 comments
Closed

crash under Win64: no attribute 'exec_module' #1286

Alexey-T opened this issue Aug 21, 2022 · 9 comments
Labels
duplicate The issue has been previously reported.

Comments

@Alexey-T
Copy link

CudaText plugin, code is here
https://github.com/CudaText-addons/cuda_markdown_preview

crashes on Win64,
Alexey-T/CudaText#4293

ccc

@Alexey-T
Copy link
Author

on Win64 CudaText ships with Python 3.8 (old was 3.6).

@veksha
Copy link

veksha commented Aug 22, 2022

  1. https://bugs.python.org/issue42131 (i don't know if it is related)

  2. also found the following solution:
    "downgrade markdown module"

pip install markdown==3.2.2

(didn't try it)

  1. some opened issue on Markdown bug-tracker Monkeypatching html.parser fails when importing with zipimporter #1132

@Alexey-T
Copy link
Author

I don't like 'downgrade' way, better I wait until it's fixed.

@Alexey-T Alexey-T changed the title crash under Win64 crash under Win64: no attribute 'exec_module' Aug 22, 2022
@waylan
Copy link
Member

waylan commented Aug 22, 2022

This is a duplicate of #1132.

@waylan waylan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2022
@waylan waylan added the duplicate The issue has been previously reported. label Aug 22, 2022
@waylan
Copy link
Member

waylan commented Aug 22, 2022

As I note in #1132, this has been fixed in Python 3.10. Upgrading should fix the issue.

@Alexey-T
Copy link
Author

users of CudaText have Python 3.8 preinstalled.

@waylan
Copy link
Member

waylan commented Aug 22, 2022

Unfortunately, I am not aware of any workarounds. The issue is in Python's zipimport library, not with our code. If CudaText is using zipimport then they need to support Python 3.10 (or backport zipimport from Python 3.10) to have a properly working implementation.

@Alexey-T
Copy link
Author

Alexey-T commented Aug 27, 2022

after user upgraded to Python 3.10 DLLs, he sees new error:

er

@veksha

also found the following solution: "downgrade markdown module" pip install markdown==3.2.2

do you know where do get 3.2.2 version? I cannot find it on https://pypi.org/project/Markdown/#files

@facelessuser
Copy link
Collaborator

Yup the trace explains that the gfm extension (which is not our code) is trying to access markdown.util.etree which is no longer provided. So gfm will have to update its code to not access markdown.util.etree and instead use:

import xml.etree.ElementTree as etree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue has been previously reported.
Projects
None yet
Development

No branches or pull requests

4 participants