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

Can't import parsers with the new version #56

Open
robin-po opened this issue Oct 7, 2024 · 2 comments
Open

Can't import parsers with the new version #56

robin-po opened this issue Oct 7, 2024 · 2 comments

Comments

@robin-po
Copy link

robin-po commented Oct 7, 2024

I tried to install the new version 0.13.1 and I can't use the import_a2l method anymore (which was working fine with 0.12.48).

The problem comes when importing parsers:

import pya2l.parsers

I have the following error:

ModuleNotFoundError: No module named 'pya2l.a2lparser_ext'

Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
pya2ldb version: 0.13.1

@christoph2
Copy link
Owner

Hello,

How did you install the new version?
If you just did something like git pull then the behaviour is expected, because of missing C++ extensions.
There are pre-build wheels for Windows available (3.8 ... 3.13), so pip install pya2ldb should do the trick.
Building from source is a bit challenging, a up-to-date C++23 compiler, cmake, and a Java compiler is required.

@robin-po
Copy link
Author

robin-po commented Oct 8, 2024

I install it with pip install pya2ldb

This error seems to occur with python 3.11 and 3.13.
I created a new venv with Python 3.12 and the error was gone

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