get.py AttributeError
Hi, I tried to install it by pulling from git. When I run python get.py I get:
Platform: i686-mingw32
Downloading esptool-0.4.6-win32.zip
Traceback (most recent call last):
File "get.py", line 109, in <module>
get_tool(tool)
File "get.py", line 71, in get_tool
urllib.urlretrieve(url, local_path, report_progress)
AttributeError: module 'urllib' has no attribute 'urlretrieve'
My path is: somepath\Arduino\hardware\esp8266com\esp8266\tools I think this is correct. Is there a problem with mingw? Should I use something else like cygwin? Thanks
Does it work if you run it from Windows command prompt (without MinGW)?
On Thu, Dec 17, 2015, 18:19 breemts [email protected] wrote:
Hi, I tried to install it by pulling from git. When I run python get.py I get:
Platform: i686-mingw32 Downloading esptool-0.4.6-win32.zip Traceback (most recent call last): File "get.py", line 109, in
get_tool(tool) File "get.py", line 71, in get_tool urllib.urlretrieve(url, local_path, report_progress) AttributeError: module 'urllib' has no attribute 'urlretrieve' My path is: somepath\Arduino\hardware\esp8266com\esp8266\tools I think this is correct. Is there a problem with mingw? Should I use something else like cygwin? Thanks
— Reply to this email directly or view it on GitHub https://github.com/esp8266/Arduino/issues/1238.
This is the output I get from the Windows command. Steps I did:
- Clone Git into ..\Arduino\hardware\esp8266\esp8266 folder
- Open cmd as Admin
- cd intp ...\esp8266\tools
- python get.py
No idea why in the error message is
Platform: i686-mingw32
Same problem here python 351 32bit installer maybe a path issue, or missing lib ?
I installed 2.7 and it seemed to work, I noticed fix_urllib.py contains urlretreive so maybe it was deprecated.
still didnt fix my compile error tho...
1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++": file does not exist
:disappointed:
Thanks for the hint. Haven't seen that there is a difference between python 3.5 and 2.7. Works fine with python 2.7. Now I can use this with an older Arduino Studio but with autocomplete. If someone is interested: link
I have Python 2.7.5 under Windows 7 (64) and have the same error as above.
Platform: i686-mingw32
Downloading esptool-0.4.12-win32.zip
Traceback (most recent call last):
File "get.py", line 116, in