| Electronics > Beginners |
| Stuck with Python problem |
| << < (3/3) |
| emece67:
. |
| newbrain:
--- Quote from: emece67 on May 19, 2018, 08:52:26 am ---But, in what folder do you have the setup.py script? In C:\Windows\System32\esptool? --- End quote --- The OP cloned the whole thing in the System32 directory. This is a no-no. As my screenshot shows, even if the file is there one cannot access it. ETA: The actual explanation of this is the so called "File System Redirector", that Windows 64 bits versions use to maintain backward compatibility with 32 bits executables. The System32 directory on 64bits systems contains 64bits dlls, so any 32 bits executable would find itself using the wrongly sized dll. With FSR, when a 32 bits exe opens anything located in the System32 dir it's redirected to SysWOW64, where the system 32 bits dll are located. Python is distributed as a 32 bit application. |
| emece67:
. |
| filssavi:
Your working directory in this case is C:\ Running the setup from there is really ill advised (you are likely to incurr in further permissions problems) you usually run python from the directory the setup script is in Also is there any reason why the setup/source folder is in system32 (again you are asking for permission problems to happen there) you usually keep that stuff in download the script will copy stuff where it needs to in order for stuff to work It could also be a permissions problem since in recent windows releases the OS prevents even admin user to touch stuff in system32 What I would do is download the stuff again and run the installer from a sensible place (the downloads folder for example) and let python do the rest To run it you go with the terminal/command prompt (by means of cd) to the exact folder you have the setup script in and then run python ./setup.py install |
| Muffins:
Thanks guys, I installed the ESPtool to a directory outside of system32 and was able to run it. I appreciate your input. |
| Navigation |
| Message Index |
| Previous page |