3 ms·
portray requires your project to be packaged for it's auto discovery - if you get this error and your project has a setup.py or pyproject.yaml in the root (and
by timothycrosley 7y ago
portray requires your project to be packaged for it's auto discovery - if you get this error and your project has a setup.py or pyproject.yaml in the root (and this is where you ran portray from) let me know and I'll create a ticket! Otherwise - I highly encourage looking at using poetry to setup your pyproject.yaml file: https://poetry.eustace.io/ https://poetry.eustace.io/
- MadWombat 7y agomy project doesn't have a setup.py because it is not intended for packaging and it doesn't have a pyproject.yaml because to be honest, this is the first time I heard about such a file. But then again, the title says "zero-config".
- timothycrosley 7y agoportray no longer requires a config to be present, instead you can just specify modules directly from the command line with `-m`: https://timothycrosley.github.io/portray/TROUBLESHOOTING/#noprojectfound https://timothycrosley.github.io/portray/TROUBLESHOOTING/#no...
- brorfred 7y agoI have this problem when using the src folder tree conventions (poetry new --src new_package).