Open fr0der1c opened 4 years ago
Sorry. I just found that when I'm in the terminal, I didn't go to the actual project directory in Pycharm. Instead, I went to the parent directory. If I go to the actual project directory in terminal, I will see . is not a valid Python package name
again. How to fix this error?
I just found myself in a dilemma:
My repo (scripts
) is a monorepo and there are many subdirectories containing scripts for different usages. Each script has its own dependencies so their Pipfile
s are in their own directory. PyCharm only find Pipfile
in project root so I have to open the subdirectories as different projects in PyCharm. But the plugin will not work in this way.
scripts
- script_A
- Pipfile
- Pipfile.lock
- script_B
- Pipfile
- Pipfile.lock
One possible solution you can try is to modify to the command that plugin runs (right click in plugin window -> Configure plugin...). The plugin configs are stored per-project, so you can have different commands for different projects.
I just installed the plugin and it gives me this error. It's fine if I run the command in terminal:![image](https://user-images.githubusercontent.com/16500161/71180612-84262380-22ad-11ea-8415-dbaccb7729db.png)