wuttem / simple-hdlc

Simple HDLC Protocol
MIT License
17 stars 9 forks source link

Could not install package with pip #1

Open bfauser opened 6 years ago

bfauser commented 6 years ago

Hi,

I tried to install simple-hdlc on python2 and python 3 and got different errors. I try to install it on a Raspi 2B, which runs under Strech, python2 and python3 as also the requirements serial, ... are installed and functional.

Python2.7:

pip install simple-hdlc [... output with 'success'...] This installs the package into /usr/local/dist-packages/simple_hdlc/ which is in my search path and seems to have been installed correctly, however if I do python2

from simple_hdlc import HDLC I get an error message 'package not found' NOTE: When I download the file simple_hdlc.py from the git and import from there the class HDLC is loaded and seems to do something (my meter is not yet responding but that could be an electrical problem).

Python3.5: I actually want to use python3 in my project. So I tried to install the package with

pip3 install simple_hdlc and get an error message 'No module named pip.req' which points to an packaging error (missing file(s) in distribution or wrong wheel?)

So, while I have a workaround to just download the file and use it, I would like to be able to install the package and use it as intended. Any help what I do wrong is very much appreciated... Kind reagards

wuttem commented 6 years ago

Hi,

I wrote this Library to quickly communicate with a microcontroller and i did not looked at it anymore after it worked for my setup. There are probably some bugs as i never tested this on different environments ... Unfortunately it will take me some time to come back to this to fix this problems. Probably a task for a winter day ...

I have seen that there is another library for HDLC communication from @SkypLabs (looks also a little bit more advanced and recently updated ... ) https://github.com/SkypLabs/python-hdlc-controller Maybe you should give it a try ...

bfauser commented 6 years ago

Hi

many thanks for your very fast response ;) We need to write some python module to talk to Electrical and Gas Metters via a Smart Metter Gatway LMN protokoll, in case you have any informations how to put certificates on the meter and initiate an TLS secured communication over the LNM channel I would appreciate any help.

In case we need to update your package, we will let you know of any advances.

Kind regards BF.

2018-09-12 12:11 GMT+02:00 mths notifications@github.com:

Hi,

I wrote this Library to quickly communicate with a microcontroller and i did not looked at it anymore after it worked for my setup. There are probably some bugs as i never tested this on different environments ... Unfortunately it will take me some time to come back to this to fix this problems. Probably a task for a winter day ...

I have seen that there is another library for HDLC communication from @SkypLabs https://github.com/SkypLabs (looks also a little bit more advanced and recently updated ... ) https://github.com/SkypLabs/python-hdlc-controller Maybe you should give it a try ...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wuttem/simple-hdlc/issues/1#issuecomment-420591256, or mute the thread https://github.com/notifications/unsubscribe-auth/AAI-1DWUrP3vPrD9t34vQ7PdqhpBYaAoks5uaN27gaJpZM4Wk-dv .

-- % Dr Bertfried Fauser % Mobile : +49 160 91311632

SkypLabs commented 6 years ago

Thanks for mentioning my work @wuttem :)

I would be happy to help if needed.

flowswitch commented 4 years ago

PyPI's current version 0.2 is one step behind, cloning this repository and running pip install . inside the cloned directory worked fine with Python 3.