Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"'FileExistsError' is not defined " issue on V12
09-02-2019, 05:26 PM,
"'FileExistsError' is not defined " issue on V12
I just installed Pinguino IDE V12.0.39  I have  python 2.7.13  I think downloaded from my previous installation of V11.
Right after install the IDE will work. after exiting and reopening I get the error:  'FileExistsError' is not defined . After reinstallation I get the same behavior.
the full error report is :

Traceback (most recent call last):
File "C:\Program Files\Pinguino\v12\pinguino\qtgui\ide\methods\", line 281, in wrapped
return fn(Pinguino, *args, **kwargs)
File "C:\Program Files\Pinguino\v12\pinguino\qtgui\ide\", line 57, in __init__
File "C:\Program Files\Pinguino\v12\pinguino\qtgui\pinguino_core\", line 112, in check_user_files
makedirs(os.getenv("PINGUINO_USER_PATH"), exist_ok=True)
File "C:\Program Files\Pinguino\v12\pinguino\qtgui\pinguino_core\", line 36, in makedirs
except FileExistsError:
NameError: global name 'FileExistsError' is not defined

Thanks for helping out.
12-02-2019, 06:08 PM,
RE: "'FileExistsError' is not defined " issue on V12
Solved!!! Or at least found a way around. I describe the problem and solution here in case someone runs in the same problem.
The error seems (I am not a python specialist) to be due to some incompatibility between Python27 and Python 3. And it seems that V12 is written mainly for python 3. That part of the problem is still there and the Pinguino team may have to look into that.

So in my case the problem came from the fact that I installed pinguino as an administrator but was using it as a user. As an administrator right after install pinguino could find all the config files. But when logging as a user pinguino could not access the config files in the administrator directory. Then the program tries to emit a "fileExist error", then python27 doesn't have the "fileExist error" variable causing a secondary error.

the solution : Copying the User files from the administrator directory to the User directory and changing the config file to reflect this directory change.
Interestingly I just had to make the change in the user config file not the Pinguino directory config file.

Forum Jump:

Users browsing this thread: 1 Guest(s)