Environment
- Ubuntu 20.04
- Python 3.7.3
- Poetry 1.0.8
My Problem
I installed poetry to manage packages, and I tried it with following simple project,
.
└── myproject
├── README.rst
├── myproject
│ ├── __init__.py
│ ├── main.py
├── myproject.egg-info
│ ├── PKG-INFO
│ ├── SOURCES.txt
│ ├── dependency_links.txt
│ ├── requires.txt
│ └── top_level.txt
├── poetry.lock
├── pyproject.toml
└── tests
├── __init__.py
└── test_myproject.py
To run main.py I tried
$ poetry run myproject/main.py
But I had an error, which says,
[PermissionError]
[Errno 13] Permission denied
What I tried
To run my code, I tried another way.
$ poetry shell
(myproject-x8XipcUE-py3.7)$ python myproject/main.py
I had no error...
What is the problem for my poetry run command?