Comments (8)
From fast google search:
pypa/pip#5373
pypa/pip#5253
Are you using python 3 ?
from bt-mqtt-gateway.
hello, thank you for your answer!
before writing here I searched on google but the problem it'a a little bit different because Phyton and Pip appear to be good:
pi@raspberrypi:~/bt-mqtt-gateway $ pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
pi@raspberrypi:~/bt-mqtt-gateway $ python3 --version
Python 3.5.3
from bt-mqtt-gateway.
What is the output of pip -V
?
If it's an unknown command, you can either add an alias to your ~/.bashrc
alias pip=pip3
or add to your $PATH symlink named pip pointing to the pip3 binary.
from bt-mqtt-gateway.
this is the sequence of commands:
sudo apt install python-pip
.........
pi@raspberrypi:~/bt-mqtt-gateway $
pi@raspberrypi:~/bt-mqtt-gateway $ ./gateway.py
Traceback (most recent call last):
File "./gateway.py", line 15, in <module>
from workers_manager import WorkersManager
File "/home/pi/bt-mqtt-gateway/workers_manager.py", line 4, in <module>
from pip._internal import main as pip_main
ImportError: No module named 'pip._internal'
pi@raspberrypi:~/bt-mqtt-gateway $ pip -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
pi@raspberrypi:~/bt-mqtt-gateway $
pi@raspberrypi:~/bt-mqtt-gateway $ sudo reboot now
.......
pi@raspberrypi:~ $ sudo easy_install pip
Searching for pip
Best match: pip 9.0.1
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Using /usr/lib/python2.7/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip
pi@raspberrypi:~ $ sudo easy_install3 pip
Searching for pip
Best match: pip 9.0.1
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.5 script to /usr/local/bin
Installing pip3 script to /usr/local/bin
Using /usr/lib/python3/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip
pi@raspberrypi:~ $ ls
bluez-5.49 bt-mqtt-gateway
pi@raspberrypi:~ $ cd bt-mqtt-gateway
pi@raspberrypi:~/bt-mqtt-gateway $ ./gateway.py
Traceback (most recent call last):
File "./gateway.py", line 15, in <module>
from workers_manager import WorkersManager
File "/home/pi/bt-mqtt-gateway/workers_manager.py", line 4, in <module>
from pip._internal import main as pip_main
ImportError: No module named 'pip._internal'
pi@raspberrypi:~/bt-mqtt-gateway $
....
pi@raspberrypi:~/bt-mqtt-gateway $ pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 63kB/s
Installing collected packages: pip
Successfully installed pip-18.0
...
pi@raspberrypi:~/bt-mqtt-gateway $ ./gateway.py
Could not install packages due to an EnvironmentError: [Errno 13] Permesso negato: '/usr/local/lib/python3.5/dist-packages/construct'
Consider using the `--user` option or check the permissions.
Traceback (most recent call last):
File "./gateway.py", line 30, in <module>
manager.register_workers(settings['manager']).start(mqtt)
File "/home/pi/bt-mqtt-gateway/workers_manager.py", line 40, in register_workers
worker_obj = klass(**worker_config['args'])
File "/home/pi/bt-mqtt-gateway/workers/base.py", line 5, in __init__
self._setup()
File "/home/pi/bt-mqtt-gateway/workers/thermostat.py", line 55, in _setup
from eq3bt import Thermostat
ImportError: No module named 'eq3bt'
from bt-mqtt-gateway.
now after "pip install --upgrade pip" I have another type of error
from bt-mqtt-gateway.
pip install python-eq3bt
from bt-mqtt-gateway.
Great!! Now it works:
./gateway.py -d
Starting
Added: miflora with 600 seconds interval
Added: thermostat with 120 seconds interval
Subscribing to: thermostat/+/+/set
Subscribing to: homeassistant/status with command: update_all
Updating all workers
So, do you understand what was the problem?
I see in closed issues that there is not error with python 3.6 , maybe with python 3.5 do I need to upgrade pip (with pip install --upgrade pip) ?
bye
from bt-mqtt-gateway.
I think the error was that you had pip on Python 2.x and pip3 on Python 3.x. Then the second error was just missing python-eq3bt
. Glad you got it working:)
from bt-mqtt-gateway.
Related Issues (20)
- node_id = mac.replace(":", "-") = AttributeError: 'dict' object has no attribute 'replace' HOT 1
- Does it work with ESPHome?
- Problem with negative temperature / signed values HOT 1
- Gateway not starting as systemctl service HOT 2
- solved: Type error HOT 1
- hardware compatibility HOT 13
- Clarify why this needs to be run in a virtual environment HOT 1
- null values from LYWSD03MMC HOT 5
- blescanmulti worker not publishing to MQTT
- Systemd Installation like in README does not work, service.sh might have superfluous sudo
- Error message if bt-mqtt-gateway is started as home assistant addon HOT 8
- Support for MQTT climate hold and away modes has been removed in HA. HOT 2
- Missing MQTT messages HOT 2
- Anyway to setup on qnap?
- Docker configure.yaml HOT 1
- maybe use eq3btsmart to modernize eq3 thermostat handling? HOT 2
- 100% cpu load from bluepy-helper HOT 2
- Linak Desk Set commands
- Please, Delete this issue
- README venv installation instructions are incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bt-mqtt-gateway.