Page 1 of 1
[Errno 22] Invalid argument problem
Posted: Mon Jul 23, 2018 3:36 pm
by t4tomer
hello I am trying to work with micropyton v1.1. I try to make the led to turn on but i fail . this is my code :
import pyb
pyb.LED(4).on()
but when i try to save it by the name 'main.py' i get this error :
[Errno 22] Invalid argument :'G/main.py'
how to fix this problem ?
Re: [Errno 22] Invalid argument problem
Posted: Tue Jul 24, 2018 5:53 am
by pythoncoder
You haven't really given us much to go on here.
I'm guessing you're using a Pyboard 1.1 as the MicroPython language is at version 1.9.4, and I'm guessing you're using Windows and the Pyboard is mapped to drive G:. Please confirm. If so, have you checked that drive G: contains main.py and boot.py as a new Pyboard should have those already present.
What editor are you using and how are you saving the file? What program is producing this error message? What terminal emulator are you using to access the Pyboard REPL?
Re: [Errno 22] Invalid argument problem
Posted: Tue Jul 24, 2018 7:57 am
by t4tomer
I am using the Pyboard 1.1 .
I am using windows and my python verson is : 'IDLE (Python 3.6 32-bit).
the Pyboard indeed mapped to drive G, and it does contain the main.py and boot.py .
I am using IDLE (Python 3.6 32-bit) to edit the program
by the way i am new to python , I am used to program Matlab and C language.
Re: [Errno 22] Invalid argument problem
Posted: Tue Jul 24, 2018 1:30 pm
by Roberthh
[Errno 22] Invalid argument :'G/main.py'
Should not the files you save to be named "G:/main.py"?