sid5432 / pyOTDR

Simple OTDR SOR file parser written in Python
GNU General Public License v3.0
71 stars 28 forks source link

Port to Python3 #14

Closed RemiDesgrange closed 4 years ago

RemiDesgrange commented 4 years ago

Since pyOTDR now use lazyxml, it cannot be used in python3. Also could add type hinting into the process.

sid5432 commented 4 years ago

I have been able to get lazyxml (1.2.1) with pip in python 3.7.6; not sure why you say it cannot be used?

RemiDesgrange commented 4 years ago

Ok I tested with python 3.8. Will investigate.

RemiDesgrange commented 4 years ago

Since you merge my PR #7 I'll now be able to add github actions with tox to test pyOTDR on multiple version of python :tada: :-)

sid5432 commented 4 years ago

I use pyenv for multiple versions of python. lazyxml also runs in 3.8.1, and the tests pass. But there is a warning that encoding that is going away in python 3.9, so that needs to be fixed.

RemiDesgrange commented 4 years ago

I also use pyenv. I'll rework my PR. You revert it with gitea, which does not revert it in github hum, didn't see it. No problem tought.

sid5432 commented 4 years ago

Sorry for the mess (I need to get better at managing this). About lazyxml: I vaguely remember that at one time there was a dependency on the "utils" module (that you need to install it first) that was not explicitly called in lazyxml requirements. But it's been a while, and I have always installed "utils" first, so I do not know if that it still true (or was it ever true?).

RemiDesgrange commented 4 years ago

It's still true, you need to install utils first. You cannot do pip install -r requirements.txt it'll fail. That's why I replace lazyxml with dicttoxml in my PR. Also LazyXML is unmaintained.