Replies: 3 comments 2 replies
-
Maybe, the problem is I try to load a file with windows path. I'm not sure |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yes, thanks. But I don't know how to use this file in further graph building. In my case, I have few Python files and each of them has input data files and makes some work and produces data file(s). I was going to create a DAG and check how it works. I just wanted to check if I can use this tool for my experiments and compare it with Airflow, but I see too many obstacles. It would be good to have a few videos with examples and more details explanations of what to do. |
Beta Was this translation helpful? Give feedback.
-
I don't see "Discussion" tab so I will ask here. Is it possible to create a DAG consisting of a few python files? I try to upload a python file using a button on the GUI, but it does not work. I see only the read message "FAILED TO UPLOAD FILE. DID YOU CHOOSE THE RIGHT FILE TYPE?" on the left bottom corner of the screen. I did not find a good explanation of how it works in the documentation. Is there either a video explanation or a series of examples?
Here is a prt of log:
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:36] "OPTIONS /plynx/api/v0/upload_file HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:36] "GET /plynx/api/v0/templates/64c7e4bade739cfef47c442e HTTP/1.1" 200 -
api | INFO:plynx.web.common:<Request 'http://localhost:5005/plynx/api/v0/upload_file' [POST]>
api | ERROR:plynx.web.common:Traceback (most recent call last):
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.1-py3.8.egg/plynx/web/common.py", line 155, in decorated
api | return f(*args, **kwargs)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.1-py3.8.egg/plynx/web/common.py", line 121, in decorated
api | return f(*args, **kwargs)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.1-py3.8.egg/plynx/web/resource.py", line 82, in upload_file
api | output.thumbnail = get_thumbnail(output)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.1-py3.8.egg/plynx/utils/thumbnails.py", line 15, in get_thumbnail
api | return cls.thumbnail(output)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.1-py3.8.egg/plynx/plugins/resources/python/common.py", line 42, in thumbnail
api | res = json.load(f)
api | File "/usr/local/lib/python3.8/json/init.py", line 293, in load
api | return loads(fp.read(),
api | File "/usr/local/lib/python3.8/json/init.py", line 357, in loads
api | return _default_decoder.decode(s)
api | File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
api | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
api | File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
api | raise JSONDecodeError("Expecting value", s, err.value) from None
api | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
api |
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:36] "POST /plynx/api/v0/upload_file HTTP/1.1" 500 -
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:37] "GET /plynx/api/v0/templates/64c7e43ede739cfef47c442d HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.6 - - [31/Jul/2023 16:44:37] "POST /plynx/api/v0/push_worker_state HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.6 - - [31/Jul/2023 16:44:37] "POST /plynx/api/v0/pick_run HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.5 - - [31/Jul/2023 16:44:37] "POST /plynx/api/v0/pick_run HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.5 - - [31/Jul/2023 16:44:37] "POST /plynx/api/v0/push_worker_state HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:37] "GET /plynx/api/v0/templates/64c7e4bade739cfef47c442e HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.1 - - [31/Jul/2023 16:44:38] "GET /plynx/api/v0/templates/64c7e43ede739cfef47c442d HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.6 - - [31/Jul/2023 16:44:38] "POST /plynx/api/v0/push_worker_state HTTP/1.1" 200 -
api | INFO:werkzeug:172.19.0.6 - - [31/Jul/2023 16:44:38] "POST /plynx/api/v0/pick_run HTTP/1.1" 200 -
Beta Was this translation helpful? Give feedback.
All reactions