Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Problems installing Liota on a Python virtualenv #85

Open
richia44 opened this issue Feb 13, 2017 · 3 comments
Open

Problems installing Liota on a Python virtualenv #85

richia44 opened this issue Feb 13, 2017 · 3 comments

Comments

@richia44
Copy link

richia44 commented Feb 13, 2017

Hello

We started working with Liota a few weeks ago, developing my own packages and sending information to my own DCC. So far, we managed to send data through HTTP but since you added the MQTT implementation we tried to work with it. Our problem comes with the Liota installation through pip, we got some errors because our packages with MQTT implementation don't find the MQTT files from Liota (can't resolve the imports), and our package files are on the package folder inside the installed Liota, are we doing maybe something wrong?

We are used to develop using virtualenv and the idea is continue the same process with Liota unless you think it's a bad idea. We've created our own requirements.txt file to create the virtualenv based on the file included with Liota, but I decided to download Liota from Github in order to have the latest Liota, work with MQTT and resolve the import issue. But through this method, Liota doesn't install correctly, doesn't appear on the virtualenv libraries and I get "ImportError: No module named liota.core.package_manager" each time I try to run the liotad.py file. Any advice on how can install Liota on a virtualenv and use MQTT?

P.D: this is how mi requirements.txt looks like
aenum==1.4.5
appdirs==1.4.0
linux-metrics==0.1.4
packaging==16.8
paho-mqtt==1.2
Pint==0.7.2
pyparsing==2.1.10
six==1.10.0
websocket-client==0.37.0
-e git+https://github.com/vmware/liota.git@e2427c533db363aeccb5ad34c5b37e97330db06f#egg=liota

@Venkat2811
Copy link
Contributor

Hello @richia44 ,

Thank you for using LIOTA !

  1. "Our problem comes with the Liota installation through pip, we got some errors because our packages with MQTT implementation don't find the MQTT files from Liota (can't resolve the imports)".

Ans: LIOTA installation through pip is not updated with MQTT support yet. We are working on few changes and providing more examples using MQTT #71 . It will be updated soon!

  1. ImportError in virtualenv

Ans: Would suggest you to refer this and try resolving the issue. If you still face the issue let us know and we'll help you.

Thanks,
Venkat

@KohliDev
Copy link
Contributor

@richia44 We`ll be coming up with new liota pip version which will include MQTT by this week.

@KohliDev
Copy link
Contributor

KohliDev commented Feb 17, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants