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

uPyCraft v1.1 Frequent issue after download completed, NameError: name 'os' isn't defined #31

Open
dachshund-digital opened this issue Mar 5, 2019 · 5 comments

Comments

@dachshund-digital
Copy link

Did not get this issue with older version of uPyCraft, but frequently see it on version 1.1 on Windows 10 using Python 3.7.2.

Ready to download this file,please wait!
.....................
download ok

os.listdir('.')
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' isn't defined

reflush tree false

There is definitely something else going on with the IDE, when I compare files in my workspace compared to device directory, using ESP8266 devices (WeMos and LoLin variants), I notice that the IDE is NOT synchronizing the files consistently even when no errors reported. I have to disconnect and reconnect the device, then download files again, then use the device reset button to ACTUALLY see the correct variant of the code run.

Never had this issue with these same devices using Arduino IDE, so seriously doubt the multiple devices I have been using are at issue here.

This one is really driving me nuts. Any help appreciated.

@sjgcornish
Copy link

Did you every find out what this was and how to fix it. I have the same problem, although the programs upload and run OK.

@Arvind595
Copy link

It means the new file was uploaded to your board successfully. You can notice that it printed the “download ok” message. Press the ESP on-board “EN/RST” button to restart your board and re-run the new uploaded script from the beginning.
check out more here https://randomnerdtutorials.com/getting-started-micropython-esp32-esp8266/

@uteyechea
Copy link

uteyechea commented May 13, 2020

I had a similar problem. For some unknown reason, if I place the problematic code inside a function, then I execute the function and go figure it worked like charm.

@a1h2med
Copy link

a1h2med commented Jun 29, 2020

I came through this problem earlier today, And honestly IDK why this happened, but when I uninstalled (UPycraft) and deleted all of its' files then restarted my laptop, opening a serial then close it... After multiple trials suddenly it was solved (I don't know how).
SO It's not a technical solution it's just something like (trial and error), I searched everywhere btw and unfortunately, I couldn't find any solution.

@drberthol
Copy link

I close uPycraft, disconnect the esp32 and it's resolve the problem. Just in case it's useful for someone

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

No branches or pull requests

6 participants