Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module name pi_mqtt_gpio script #35

Closed
JohnnyPicnic opened this issue Jun 1, 2018 · 5 comments
Closed

No module name pi_mqtt_gpio script #35

JohnnyPicnic opened this issue Jun 1, 2018 · 5 comments
Labels

Comments

@JohnnyPicnic
Copy link

I tried making a startup script for this but get:
"/usr/bin/python: No module named pi_mqtt_gpio"

when running:
sudo python -m pi_mqtt_gpio.server config.yml

In a startup.sh file. Works great when not in a .sh file.
Also i'm a noob so sorry if this is a dumb problem.

@flyte
Copy link
Owner

flyte commented Jun 16, 2018

Hi @JohnnyPicnic

If you've installed the software into a virtualenv, you'll need to make sure to use the python executable from that, or activate the virtualenv within your script before attempting to start the service.

If for example your virtualenv is in /home/pi/ve then change your execution line to:

sudo /home/pi/ve/bin/python -m pi_mqtt_gpio.server config.yml

@flyte flyte added the support label Jun 16, 2018
@flyte
Copy link
Owner

flyte commented Jul 5, 2018

@JohnnyPicnic I'm closing this issue for now, but feel free to comment/reopen it if you're still having problems.

@flyte flyte closed this as completed Jul 5, 2018
@aerodolphin
Copy link

I'm getting the same error:
"/home/aerodolphin/ve/bin/python: No module named pi_mqtt_gpio"

What could be wrong?

@BenjiU
Copy link
Collaborator

BenjiU commented Oct 14, 2020 via email

@aerodolphin
Copy link

aerodolphin commented Oct 14, 2020

@BenjiU

I opened a new issue with more information about my configuration and errors.

Installation errors #138

pi-mqtt-gpio was installed in "aerodolphin" user.

I followed this instructions:
https://github.com/flyte/pi-mqtt-gpio#serving-suggestion

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

No branches or pull requests

4 participants