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

AttributeError: 'zipimporter' object has no attribute 'exec_module' #1319

Closed
p0las opened this issue Feb 7, 2023 · 2 comments
Closed

AttributeError: 'zipimporter' object has no attribute 'exec_module' #1319

p0las opened this issue Feb 7, 2023 · 2 comments
Labels
duplicate The issue has been previously reported.

Comments

@p0las
Copy link

p0las commented Feb 7, 2023

in certain python environments (foundry nuke python 3.9.10) markdown fails to import with:

File "site-packages\shiboken2\files.dir\shibokensupport_feature_.py", line 142, in import
return original_import(name, *args, **kwargs)
File "site-packages\markdown_init
.py", line 22, in
from .core import Markdown, markdown, markdownFromFile
File "site-packages\shiboken2\files.dir\shibokensupport_feature_.py", line 142, in import
return original_import(name, *args, **kwargs)
File "site-packages\markdown\core.py", line 27, in
from .preprocessors import build_preprocessors
File "site-packages\shiboken2\files.dir\shibokensupport_feature
.py", line 142, in import
return original_import(name, *args, **kwargs)
File "site-packages\markdown\preprocessors.py", line 29, in
from .htmlparser import HTMLExtractor
File "site-packages\shiboken2\files.dir\shibokensupport_feature
.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "site-packages\markdown\htmlparser.py", line 31, in
spec.loader.exec_module(htmlparser)
AttributeError: 'zipimporter' object has no attribute 'exec_module'

we have downgraded markdown to 3.1.1 and this fixed the issue.
we actually don't know if the problem is on the foundry side or markdown package. reporting here in case other ppl have similar issues.

@mitya57
Copy link
Collaborator

mitya57 commented Feb 7, 2023

I think it's a bug in pyside2/shiboken, not in Python-Markdown.

I have seen something similar when packaging pyside2 for Debian. I ended up using this patch from ArchLinux which solved all import problems. Maybe it will help for you too: https://github.com/archlinux/svntogit-packages/blob/packages/pyside2/trunk/fix-build.patch

@waylan
Copy link
Member

waylan commented Feb 8, 2023

I am closing this as a duplicate of #1132.

@waylan waylan closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2023
@waylan waylan added the duplicate The issue has been previously reported. label Feb 8, 2023
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

3 participants