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

No module named 'nodekind' when trying to package using Pyinstaller #7

Open
dostiep opened this issue Jan 2, 2023 · 3 comments
Open

Comments

@dostiep
Copy link

dostiep commented Jan 2, 2023

I'm getting the following error when I'm using Pyinstaller to create an executable file:

Traceback (most recent call last):
File "xxxxxxx.pyw", line 7, in
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "saxonpy_init_.py", line 45, in
File "python_saxon\saxonc.pyx", line 16, in init saxonc
ModuleNotFoundError: No module named 'nodekind'

Not sure if it's a Pyinstaller or Saxonpy issue but I haven't been able to find a solution so far.

@ond1
Copy link

ond1 commented Jan 2, 2023

I am not experienced in using Pyinstaller but it seems to be missing the file nodekind.py which is included in saxonpy

@dostiep
Copy link
Author

dostiep commented Jan 3, 2023

I'm no Pyinstaller expert either but from what I read, it might be a "hook file" that is missing. Don't know if that might help solve the issue (https://pyinstaller.org/en/stable/hooks.html)

@ond1
Copy link

ond1 commented Feb 23, 2023

Hi, just looking back at this issue. I had the same problem on SaxonC 12 and managed to remove the dependency (See the bug issue: https://saxonica.plan.io/issues/5853). This will be applied in the next maintenance release of SaxonC 12 which will be available on python saxonche, saxoncpe and saxoncee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants