sid5432 / pyOTDR

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

pip install pyOTDR fail #9

Closed FriedrichWilhelmNietzsche closed 5 years ago

FriedrichWilhelmNietzsche commented 5 years ago

image

sid5432 commented 5 years ago

I have only run this in Linux, so I am not sure what the problem is. It may be related to a multi-byte encoding issue (there is a posting at https://github.com/bndr/pipreqs/issues/125 that might be relevant to the problem), but I do not know how to fix this. The trouble seems to be in the lazyxml module; RemiDesgrange has comments about problems with installing lazyxml, and suggested that I switch to some other package to handle the conversion to/from XML (I haven't looked at his fork, but maybe you can try his code and see if that works for you). Unfortunately I never got around doing that. Maybe I'll take that up as a New Year's resolution for 2019!

FriedrichWilhelmNietzsche commented 5 years ago

Thanks for your prompt reply.

I changed the 19th line as "with open('README.rst', 'r', encoding='UTF-8') as fp:" in " setup.py " file { [lazyxml-1.2.1] } , and installed, after that, pip install pyOTDR, it works.

image

vivindeveloper commented 5 years ago

I am facing the same issue in windows. can you tell me where the folder setup.py is located please

sid5432 commented 5 years ago

I assume you are talking about "setup.py" in the lazyxml package? It should be in the top directory if you download the package.