vadmium / python-altium

Altium schematic format documentation, SVG converter and TK viewer
Do What The F*ck You Want To Public License
174 stars 45 forks source link

Clarification on current state of `olefile` Python package #12

Closed follower closed 4 years ago

follower commented 5 years ago

TL;DR:

Context

Thanks for your work on python-altium.

I encountered an issue during installation/first use that I thought I'd document here in case it was helpful for others.

Fork/version issues with OleFileIO/OleFileIO_PL package dependency

It seems that:

Unfortunately the OleFileIO_PL package still seems to exist separately from olefile but presents itself as olefile when installed.

With Python3 in particular this situation seems to lead to problems when first installing olefile, uninstalling olefile and then attempting to install OleFileIO_PL (in part due to pip hiding an error.).

(Further details here: https://github.com/decalage2/olefile/issues/123.)

Use of renamed olefile dependency

Additionally, python-altium doesn't work out of the box with the now "standard" olefile but from looking at the project forks I noticed @martonmiklos has made a patch for this but hasn't yet created a PR for it:

I haven't tested the patch yet.

Solution

It seems the dependency installation situation can now be much simpler than in the past but to gain this:

Edited: Added Pillow-related links. Added link describing install issue.

martonmiklos commented 5 years ago

Hi folks, @follower @vadmium

If you want me to submit a PR just let me know.

follower commented 5 years ago

Thanks for your reply & offer @martonmiklos.

While I obviously have no ability to merge a PR, if what you have is working I think having a PR would at least be helpful for people to apply themselves and/or be more likely to be merged. :)

vadmium commented 5 years ago

I am happy to merge commits directly, but in this case I think I can simplify the change to one line, with no other code changes needed. I pushed a new branch olefile (https://github.com/vadmium/python-altium/compare/olefile), which I’ll merge when I get around to it unless anyone sees any problems.

vadmium commented 4 years ago

Merged the olefile branch, better eleven months later than never :)