Closed nwood21 closed 3 months ago
Can you try running briefcase run -r
? That will (re-)install all the requirements for the app before running it.
Solved! I was just running the briefcase -u command (I mistakenly thought that this would also update the briefcase requirements. It seems intuitive that when you run -u it also looks at the requirements and updates those too but I was mistaken. Might be worth adding in the manual for clarity that if "Changing your 'requires' in the pyproject.toml file by adding a new module you cannot simply using briefcase -u alone, must run briefcase -r." Anyway, thank you for the suggestion!!! Very kind.
Describe the bug
For my Python project am attempting to use the module ruamel.yaml which runs fine in Python but when I compile the project the app always crashes and says the module is missing.
** Note This is my requires for my project in my pyproject.toml file:
Here are my imports:
The only thing I could get the app not to crash was to manually pip3 install the package into the app_packages. Then, after that, when I ran the app, no crashes:
pip3 install ruamel.yaml --target=/Users/myusernamekeptprivate/MyBin/Briefcase/tms/build/tms/macos/app/TMS.app/Contents/Resources/app_packages
How do I get ruamel.yaml to successfully get included in my requires without having to manually install it in the app_packages folder? Quite buggy.
Steps to reproduce
Expected behavior
App Crashes, can't find module.
Screenshots
No response
Environment
Logs
Additional context
No response