Doubts in the installation between python2 and python3.
See original GitHub issueWhat is the purpose of your issue?
- Bug report (encountered problems with amazon-dash)
- Feature request (request for a new functionality)
- Question
- Other
Guideline for bug reports
- amazon-dash version: You are running Amazon-dash v1.3.2 using Python 3.6.7.
- Python version: Python 2.7.15rc1
- Pip & Setuptools version: pip 19.0.3 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
- Operating System: lubuntu 18.04
- The
pip install
orsetup install
command has been completed without errors - The
python -m amazon_dash.install
command has been completed without errors - The
amazon-dash discovery
command works without errors - I have created/edited the configuration file
- Amazon-dash service or
amazon-dash --debug run
works
sudo systemctl status amazon-dash
● amazon-dash.service - Amazon Dash service
Loaded: loaded (/usr/lib/systemd/system/amazon-dash.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-02-27 22:26:09 CET; 22h ago
Main PID: 628 (amazon-dash)
Tasks: 1 (limit: 4429)
CGroup: /system.slice/amazon-dash.service
└─628 /usr/bin/python3 /usr/local/bin/amazon-dash run --config /etc/amazon-dash.yml
feb 27 22:26:09 home-server systemd[1]: Started Amazon Dash service.
feb 27 22:26:10 home-server env[628]: Welcome to Amazon-dash v1.3.2 using Python 3.6.7
feb 27 22:26:10 home-server env[628]: Listening for events. Amazon-dash will execute the events associated with the regi
lines 1-11/11 (END)
Description
Everything worked perfectly, although a few days ago I did not use the button. Since the last use I have also updated home assistant to version 0.88.1. I do not know if it will have anything to do with it.
The service is OK. If I press the button, I see it in the console.
home-server@home-server:~$ sudo amazon-dash discovery
Welcome to Amazon-dash v1.3.2 using Python 3.6.7
The discovery command lists the devices that are connected in your network. Each device will only be listed once. After executing this command wait approximately 10 seconds before pressing the Amazon Dash button. After pressing the button, the Mac address of the button will immediately appear on the screen. Remember the address to be able to create the configuration file.
52:c7:be:xx:xx:xx
00:fc:8b:xx:xx:xx (Amazon Device)
If you activate the service from the console, the home assistant event is activated
home-server@home-server:~sudo amazon-dash test-device 00:FC:8B:xx:xx:xx --config /etc/amazon-dash.yml
Welcome to Amazon-dash v1.3.2 using Python 3.6.7
/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
2019-02-28 20:47:32,314 - amazon-dash - INFO - {"message": "Event dash1 fired."}
But if I press the button, nothing happens, nor do I see any record in home assistant.
I am totally and completely lost…
HELP 😄
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to install both Python 2.x and Python 3.x in Windows
I found that the formal way to do this is as follows: Just install two (or more, using their installers) versions of Python...
Read more >Python 2 vs 3: Everything You Need to Know - DataCamp
In this article, we will cover the main differences between Python 2 and 3, which one is the best, ... today, there is...
Read more >Python 2 vs Python 3: The Key Differences - Great Learning
No, there are some functional differences between these two. python is referred to as version 2. x.x and python3 is referred to as...
Read more >Using both Python 2 and 3 in Windows - /var/ - GitHub Pages
Firstly I am installing Python 2.7.14 and selecting: ... the python 2.x interpreter or -3 to explicitly declare the python 3.x interpreter:
Read more >Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Learn the differences between Python 2 & 3. Use Futurize (or Modernize) to update your code (e.g. python -m pip install future )....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, this is a problem in some distributions. Thanks for notifying.
Finally: https://github.com/Nekmo/amazon-dash/issues/105#issuecomment-435635303