You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Kaligraphy247 created a project to run a Python application with wws. After adding venv to setup the Python intial project, wws couldn't start the project. It hangs without printing anything and the CPU goes high.
When removing the venv context and keeping only the scripts, the project works fine.
After debugging the repository, I found that the issue is related to wws trying to load all the py files in the site-packages folder as workers. Note that wws looks for workers on the current folder and any subfolder. This is causing wws to start processing many files and hanging up forever.
This issue is related to #47, as currently there's no way to ignore folders when running wws. However, I agree the current experience is not the best as you don't notice wws is loading those files.
I will create a separate issue to show a message about the number of files wws is going to process in advance. This message will help to identify this kind of issues.
I just read issue #47 and I have to agree, .wwsignore or —ignore will work just fine. You could start with an —ignore option since it’s much easier to implement.
Describe the bug
@Kaligraphy247 created a project to run a Python application with
wws
. After addingvenv
to setup the Python intial project,wws
couldn't start the project. It hangs without printing anything and the CPU goes high.When removing the
venv
context and keeping only the scripts, the project works fine.He kindly created a repository to reproduce the issue: https://github.com/Kaligraphy247/python-wws-venv
Original report: https://twitter.com/kaligraph_jay/status/1629932602990682115
Reproduction steps
git clone https://github.com/Kaligraphy247/python-wws-venv
)wws runtimes install
)wws
)wws
cannot startminimal
branch (git checkout minimal
)wws
)Expected behavior
The
wws
service can start the project or at least prints the related issue.The text was updated successfully, but these errors were encountered: