Closed taffarel55 closed 1 year ago
This is not an issue for OpenPLC Runtime, but for OpenPLC Editor. In any case, this is probably a corrupted installation, as it is missing the JSON configuration file. Just reinstall the Editor and it should work just fine
It looks like you have a corrupted install. Reinstall the editor and make sure that the first time you upload to Arduino you wait until it finishes downloading all the required files. It takes a while for it to setup the environment. Once everything is put in place, uploads will take only a few seconds.
On Sun, Aug 21, 2022 at 12:18 AM Mauricio Taffarel @.***> wrote:
Hello, I followed the example https://openplcproject.com/docs/3-2-creating-your-first-project-on-openplc-editor/ of the site and everything worked perfectly running locally. To upload to Arduino I had the following problem:
[image: image] https://user-images.githubusercontent.com/18634201/185775283-62f1f763-614c-4d3f-a509-7990f5fea604.png
Below is the error log:
app-title: beremiz
app-version: 2.01 Release: 2022-08-17
cwd: /home/dbserver/Downloads/OpenPLC Editor for Linux/OpenPLC_Editor
date: Sun Aug 21 01:08:32 2022
e-type: <type 'exceptions.ValueError'>
e-value: No JSON object could be decoded
locals: s: '' self: <json.decoder.JSONDecoder object at 0x7f7e94143a90> idx: 0
platform: Linux-5.15.0-46-generic-x86_64-with-Ubuntu-20.04-focal
python-version: 2.7.18
self: parse_object: <function JSONObject at 0x7f7e6590a750> parse_constant: <built-in method getitem of dict object at 0x7f7e6590d170> scan_once: <_json.Scanner object at 0x7f7e659092f0> parse_float: <type 'float'> object_hook: None encoding: None parse_int: <type 'int'> parse_string:
strict: True parse_array: <function JSONArray at 0x7f7e6590a7d0> object_pairs_hook: None traceback: File "/home/dbserver/Downloads/OpenPLC Editor for Linux/OpenPLC_Editor/editor/BeremizIDE.py", line 852, in OnMenu getattr(self.CTR, method)() File "/home/dbserver/Downloads/OpenPLC Editor for Linux/OpenPLC_Editor/editor/ProjectController.py", line 2087, in _generateArduino dialog = ArduinoUploadDialog.ArduinoUploadDialog(self.AppFrame, program) File "/home/dbserver/Downloads/OpenPLC Editor for Linux/OpenPLC_Editor/editor/dialogs/ArduinoUploadDialog.py", line 236, in init self.loadSettings() File "/home/dbserver/Downloads/OpenPLC Editor for Linux/OpenPLC_Editor/editor/dialogs/ArduinoUploadDialog.py", line 467, in loadSettings settings = json.loads(jsonStr) File "/usr/lib/python2.7/json/init.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") <type 'exceptions.ValueError'>: No JSON object could be decoded
wx-platform: WXGTK
wx-version: 3.0.2.0
I searched the open issues and didn't find this error.
— Reply to this email directly, view it on GitHub https://github.com/thiagoralves/OpenPLC_v3/issues/177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB63XPDMXVGPV42MIO2BMC3V2GUZJANCNFSM57EISE5Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Ok, thanks.
Hello, I followed the example of the site and everything worked perfectly running locally. To upload to Arduino I had the following problem:
Below is the error log:
I searched the open issues and didn't find this error.