question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

only compatible with python2?

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
saintcrawlercommented, Apr 21, 2017

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.

1reaction
biberessercommented, Jan 29, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found