esp8266 / arduino-esp8266fs-plugin

Arduino plugin for uploading files to ESP8266 file system
GNU General Public License v2.0
706 stars 214 forks source link

Fix uploader for python3 compat and core 2.6.x #65

Closed earlephilhower closed 4 years ago

earlephilhower commented 4 years ago

The core moved to python3 because python (2) is EOL on January 1, 2020. Move the search paths and platform variables to use python3 instead.

Remove the no longer needed --end parameter to upload.py

devyte commented 4 years ago

@me-no-dev ping I know you're very busy these days, but this is needed for core 2.6.2 release, which is imminent.

devyte commented 4 years ago

Thanks!

me-no-dev commented 4 years ago

Yeah :D now onto fixing CI, upgrading version and release :P

me-no-dev commented 4 years ago

like that nickelback song was saying... it' been a while

earlephilhower commented 4 years ago

Argh, @me-no-dev , looks like the released ZIP doesn't work with Arduino IDE:

This is with Arduino 1.8.8:

java.lang.UnsupportedClassVersionError: com/esp8266/mkspiffs/ESP8266FS has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at processing.app.Editor.addTools(Editor.java:870)
    at processing.app.Editor.buildToolsMenu(Editor.java:728)
    at processing.app.Editor.buildMenuBar(Editor.java:540)
    at processing.app.Editor.<init>(Editor.java:290)
    at processing.app.Base.handleOpen(Base.java:858)
    at processing.app.Base.restoreSketches(Base.java:546)
    at processing.app.Base.<init>(Base.java:481)
    at processing.app.Base.main(Base.java:151)
earlephilhower commented 4 years ago

I think the problem stems from the -target 11. When I build w/1.8 it seems to work OK ESP8266FS-0.5.0.zip

< javac -target 11 -cp "$pde_path:$core_path:$lib_path" \
---
> javac -target 1.8 -source 1.8 -cp "$pde_path:$core_path:$lib_path" \

Attached a build with 1.8.

me-no-dev commented 4 years ago

yes that is it, but this is what is on my machine :( and travis seems to break

Bubble007 commented 4 years ago

Hello alltogether,

I have a problem to install the Arduino plugin for uploading files to ESP8266 file system.

I get the error message: “Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640SPIFFS Upload failed!”

I have Win 10 and der Arduino Ide 1.8.12.

I installed also Python 3.

I have installed the ESP8266FS-0.5.0.zip from earlephilhower in the comment on 25 Nov 2019.

All doesn’t help. Can you help?