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 'pyaltium._helpers' #5

Open
jankokert opened this issue Dec 13, 2022 · 3 comments
Open

No module named 'pyaltium._helpers' #5

jankokert opened this issue Dec 13, 2022 · 3 comments

Comments

@jankokert
Copy link

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Collaborator

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.

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