I am trying to upload the code to NodeMCU remotely with the help of remote agent and its giving following error.
Verbose mode can be enabled via -v, --verbose
option
AttributeError: ‘NoneType’ object has no attribute ‘endswith’:
File “/usr/local/lib/python2.7/dist-packages/platformio/builder/main.py”, line 153:
env.SConscript("$BUILD_SCRIPT")
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 541:
return _SConscript(self.fs, *files, **subst_kw)
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 250:
exec file in call_stack[-1].globals
File “/home/pi/.platformio/platforms/espressif8266_stage/builder/main.py”, line 334:
target_elf = env.BuildProgram()
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Environment.py”, line 224:
return self.method(*nargs, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py”, line 60:
env.BuildFrameworks(env.get(“PIOFRAMEWORK”))
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Environment.py”, line 224:
return self.method(*nargs, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py”, line 261:
SConscript(env.GetFrameworkScript(f))
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 604:
return method(*args, **kw)
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 541:
return _SConscript(self.fs, *files, **subst_kw)
File “/home/pi/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 250:
exec file in call_stack[-1].globals
File “/home/pi/.platformio/platforms/espressif8266_stage/builder/frameworks/arduino.py”, line 31:
“framework-arduinoespressif8266”), “tools”, “platformio-build.py”))
File “/usr/lib/python2.7/posixpath.py”, line 77:
elif path == ‘’ or path.endswith(’/’):
Also, the remote command giving error for reaching the limit of 50 uploads though I just did 3 successful upload and rest of the uploads were error.