pluots / PyAltium

A python package that allows interface of Altium files
GNU General Public License v3.0
3 stars 2 forks source link

No module named 'pyaltium._helpers' #5

Open jankokert opened 1 year ago

jankokert commented 1 year ago

Hi, when I run the first example (SchLib - Sample usage) , I get this error message:

File "C:\Program Files (x86)\Python311-32\Lib\site-packages\pyaltium\matlib\base.py", line 15, in <module>
    from pyaltium._helpers import (
ModuleNotFoundError: No module named 'pyaltium._helpers'

I'm using Python 3.11.1 and installed pyaltium using:

pip install pyaltium
pip install python-dateutil
pip install matplotlib

In the git repository I can not find the file. Is there really a file missing? Please fix it. Thank you very much in advance!

jankokert commented 1 year ago

I copied a file from a different branch: "https://raw.githubusercontent.com/pluots/PyAltium/docs-theme/src/pyaltium/helpers.py" to my "C:\Program Files (x86)\Python311-32\Lib\site-packages\pyaltium"

And also run: pip install olefile

But now the next package is missing:

  File "C:\Program Files (x86)\Python311-32\Lib\site-packages\pyaltium\_helpers.py", line 10, in <module>
    from pyaltium.magic import MAX_READ_SIZE_BYTES
ModuleNotFoundError: No module named 'pyaltium.magic'

Somehow it seems, that all the dependencies are broken. What is going on?

tgross35 commented 1 year ago

Hello!

This project is incomplete and I have not had a chance to work on it. Specifically, I hit a limitation in parsing the binaries in Python (which was a silly idea in retrospect). So, unfortunately, this project is unsupported until I get a chance to rewrite the parser. I have updated the readme to reflect this.

If you are interested, you are welcome to make PRs to fix anything, but I can't promise anything about the functionality of the project at this point.

tgross35 commented 1 year ago

Hey @jankokert, I now have a working library for this in Rust. The API is much much cleaner than the Python version and it's significantly less buggy (and much faster).

I'm not sure how familiar you are with the language, but if you'd like to try it out the docs are at http://docs.rs/altium and the repo is here https://github.com/pluots/altium. Python bindings are an eventual plan, but that's a long way off.