only compatible with python2?
See original GitHub issueI am on a linux distro that sets python3 rather than it’s old version as default. Was confused why it wasn’t running properly -
Traceback (most recent call last):
File "./nodemcu-uploader.py", line 6, in <module>
from nodemcu_uploader import main
File "/home/agauniyal/projects/nodemcu-uploader/nodemcu_uploader/main.py", line 76
print 'sources', sources
^
SyntaxError: Missing parentheses in call to 'print'
should probably add some info saying only compatible with python2
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Oh no! This package is Python 2 only - Medium
The “best” way to test Python 2 and 3 compatibility is through complete testing and a CI service like Circle, Snap or Travis....
Read more >Cheat Sheet: Writing Python 2-3 compatible code
Easy, clean, reliable Python 2/3 compatibility. Table of Contents ... Python 2 only bigint = 1L # Python 2 and 3 from builtins...
Read more >Porting Python 2 Code to Python 3 — Python 3.11.1 ...
To make your project be single-source Python 2/3 compatible, the basic steps are: Only worry about supporting Python 2.7. Make sure you have...
Read more >How to write Python 2.x as much compatible with Python 3.x ...
[67] and up, there's perhaps a better way, but when I started the Pypy project was only compatible with 2.5, and Jython still...
Read more >Best Practices For Compatible Python 2 And 3 Code - PyBites
... and at a lot of places 2.x is the only version you get to work in. I think writing Python 2 and...
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 FreeTop 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
Top GitHub Comments
Got it working in Python 3.6. At least it can upload and do raw verification. But it fails in about 8 times of 10 with different garbage in response from ESP, but I think it’s hardware problems 😃. If someone is interested in it, I can make a PR.
I had the exact same problem. This requirement should clearly be documented, and the script should verify its requirements and provide with a meaningful error message if that fails. A Python 3 version of the script would ne nice, too.