supervisely-ecosystem / export-to-kitti-3d

Converts Supervisely pointcloud to KITTI 3D format
0 stars 0 forks source link

ModuleNotFoundError: No module named 'supervisely' #6

Open mssong0401 opened 2 years ago

mssong0401 commented 2 years ago

I've labeled point cloud data by supervisely web page, and trying to export those. But when I try to download those results via app(this app), this error occurs.

App moduleId == 114 [v=v1.2.9] in ecosystem Info2022.09.16 11:53:37 App config config={"icon":"https://i.imgur.com/lcNhMdI.png","author":{"name":"valeriyavorozhko"},"poster":"https://user-images.githubusercontent.com/106374579/183404163-8fd19f79-6606-452c-9b63-d0a65f54295c.png","isolate":true,"needGPU":false,"headless":true,"categories":["pointclouds","export"],"lastCommit":"ffb12839500b7b9e4b9abff53e6448fa286e875b","contextMenu":{"target":["point_cloud_project"],"contextRoot":"Download as","contextCategory":null},"description":"Converts Supervisely Pointcloud format to KITTI 3D","main_script":"src/main.py","sessionTags":[],"docker_image":"supervisely/import-export-kitty:1.0.2","taskLocation":"workspace_tasks","defaultBranch":"master","isPrivateRepo":false,"restartPolicy":"never","slyModuleInfo":{"baseSlug":"supervisely-ecosystem/export-to-kitti-3d"},"communityAgent":true,"iconBackground":"#FFFFFF","integratedInto":["standalone"],"instanceVersion":"6.4.57","name":"Export to KITTI 3D","type":"app"} Info2022.09.16 11:53:37 Selected docker runtime runtime=runc Info2022.09.16 11:53:37 LAST_COMPLETE_STEP step=null Info2022.09.16 11:53:37 BEFORE_STEP step=DOWNLOAD Info2022.09.16 11:53:37 BEFORE_STEP step=MAIN Info2022.09.16 11:53:37 To access the app in browser, copy and paste this URL: https://app.supervise.ly/net/sOre5T4oMNs2cjyHP4ebZ_azlHVGJbTpMqIbmOHnrITJlAZ58aCsCDJcocGY_O7bKFXO25Tbk3xrOpjt Info2022.09.16 11:53:37 docker_pull_if_needed args policy=ifnotpresent, type(policy)=<enum 'PullPolicy'> Info2022.09.16 11:53:37 Relative path to requirements: requirements.txt Info2022.09.16 11:53:37 requirements.txt: Info2022.09.16 11:53:37 supervisely==6.36.0

open3d==0.13.0

                                   scikit-image==0.18.3

Info2022.09.16 11:53:37 Use existing pip cache Info2022.09.16 11:53:37 Task host data dir dir=/root/supervisely/agent-3128/export-to-kitti-3d/443347, moduleId=114, app name=Export to KITTI 3D Info2022.09.16 11:53:37 Docker container volumes volumes={"/root/.supervisely-agent/jlJlnE4F1DdoscRxfHuOnRHzaORpWS5W/app_sessions/443347":{"bind":"/app","mode":"rw"},"/root/.supervisely-agent/jlJlnE4F1DdoscRxfHuOnRHzaORpWS5W/apps_cache/64407":{"bind":"/apps_cache","mode":"rw"},"/root/.supervisely-agent/jlJlnE4F1DdoscRxfHuOnRHzaORpWS5W/storage/apps_pip_cache/114/v1.2.9/pip":{"bind":"/root/.cache/pip","mode":"rw"},"/root/supervisely/agent-3128/export-to-kitti-3d/443347":{"bind":"/sly-app-data","mode":"rw"}} Info2022.09.16 11:53:37 Infinite command command=while true; do sleep 30; done; Info2022.09.16 11:53:41 Docker container is spawned container_id=3778c4708f477ec170629a5a5ca09f0c8b82dbf6b6c9086ac48c184302362abb, container_name=sly_task_443347_supervisely_37c45acc0fac9b11c544540414127d00c6d10b28d47efdc51fb64469cfc74873 Info2022.09.16 11:53:41 Double check pip cache for old agents Info2022.09.16 11:53:41 Installing app requirements Info2022.09.16 11:53:41 PIP command: pip3 install --root-user-action=ignore --disable-pip-version-check -r /app/repo/requirements.txt Info2022.09.16 11:53:41 Info2022.09.16 11:53:41 Usage:
Info2022.09.16 11:53:41 pip3 install [options] [package-index-options] ... Info2022.09.16 11:53:41 pip3 install [options] -r [package-index-options] ... Info2022.09.16 11:53:41 pip3 install [options] [-e] ... Info2022.09.16 11:53:41 pip3 install [options] [-e] ... Info2022.09.16 11:53:41 pip3 install [options] <archive url/path> ... Info2022.09.16 11:53:41 Info2022.09.16 11:53:41 no such option: --root-user-action Info2022.09.16 11:53:41 Requirements are installed Info2022.09.16 11:53:41 pip second install for old agents is finished Info2022.09.16 11:53:41 command to run command=bash -c "export PYTHONPATH="$PYTHONPATH:/app/repo" && python /app/repo/src/main.py" Info2022.09.16 11:53:41 command is running command=bash -c "export PYTHONPATH="$PYTHONPATH:/app/repo" && python /app/repo/src/main.py" Info2022.09.16 11:53:41 Traceback (most recent call last): Info2022.09.16 11:53:41 File "/app/repo/src/main.py", line 2, in Info2022.09.16 11:53:41 import globals as g Info2022.09.16 11:53:41 File "/app/repo/src/globals.py", line 2, in Info2022.09.16 11:53:41 import supervisely as sly Info2022.09.16 11:53:41 ModuleNotFoundError: No module named 'supervisely' Fatal2022.09.16 11:53:43 TASK_END stack=[ Traceback (most recent call last): File "/workdir/agent/worker/task_logged.py", line 166, in run self.run_and_wait(self.task_main_func) File "/workdir/agent/worker/task_logged.py", line 196, in run_and_wait return future.result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result return self.get_result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in get_result raise self._exception File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/workdir/agent/worker/task_dockerized.py", line 90, in task_main_func curr_method() File "/workdir/agent/worker/task_app.py", line 469, in main_step self.drop_container_and_check_status() File "/workdir/agent/worker/task_app.py", line 585, in drop_container_and_check_status raise RuntimeError( RuntimeError: Task container finished with non-zero status: 1 ] Info2022.09.16 11:53:43 WAIT_FOR_TASK_LOG Info2022.09.16 11:53:44 REMOVE_TASK_TEMP_DATA IF NECESSARY exit_status=, exit_code=1 Info2022.09.16 11:53:44 TASK_REMOVED exit_status=, exit_code=1

I guess I can just simply solve this problem by installing the module 'pip install supervisely', but it seems that the working directory is not in my computer(maybe supervisely's server or the other?) Is there any way to export my product to kitti label(txt) format? Please help me!

(+ I've also tried to download originally[=json format] and then convert them to kitti format[=txt format], but I can't find any reference about converting json to txt...)