我在与 file 相同的工作目录中执行以下命令worker.py
:
poetry run worker.py
终端:
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/composite_key/compositekey$ poetry run worker.py
FileNotFoundError
[Errno 2] No such file or directory: b'/snap/bin/worker.py'
at /usr/lib/python3.8/os.py:601 in _execvpe
597│ path_list = map(fsencode, path_list)
598│ for dir in path_list:
599│ fullname = path.join(dir, file)
600│ try:
→ 601│ exec_func(fullname, *argrest)
602│ except (FileNotFoundError, NotADirectoryError) as e:
603│ last_exc = e
604│ except OSError as e:
605│ last_exc = e
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/composite_key/compositekey$ ls
Citizenship.csv __pycache__ dagster.yaml pytest.ini simulate_alien_dict.py tasks.py
"Gordian Algorithms' Times.xlsx" config.yaml data run_pipeline.yaml simulate_data.ipynb tests
__init__.py currency_symbols_map.json modules simulate_alien_dict.ipynb simulate_data.py worker.py
显然,我们看到文件在那里(右下)。
问题
- 为什么会出现这个问题?
- 将来你会如何解决这个问题?
请让我知道是否还有其他我应该添加的内容