christoph2 / pyA2L

ASAM ASAP2 Library for Python
GNU General Public License v2.0
138 stars 71 forks source link

Can't import parsers with the new version #56

Open robin-po opened 1 month ago

robin-po commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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