pyqtdeploy: Correct entry point naming?

Phil Thompson phil at riverbankcomputing.com
Sun Oct 4 15:18:15 BST 2020


On 30/09/2020 21:03, Patrick Stinson wrote:
> What is the correct way to structure an entry point in pyqtdeploy 3?
> This is not documented.
> 
> In v2 my entry point for the source tree in the screenshot was
> familydiagram.pkdiagram.app:main. In pyqtdeploy 3 that entry point
> string gives the following error:
> 
> Traceback (most recent call last):
>   File "bootstrap-3.7.0.py", line 983, in _find_and_load
>   File "bootstrap-3.7.0.py", line 953, in _find_and_load_unlocked
>   File "bootstrap-3.7.0.py", line 219, in _call_with_frames_removed
>   File "bootstrap-3.7.0.py", line 983, in _find_and_load
>   File "bootstrap-3.7.0.py", line 953, in _find_and_load_unlocked
>   File "bootstrap-3.7.0.py", line 219, in _call_with_frames_removed
>   File "bootstrap-3.7.0.py", line 983, in _find_and_load
>   File "bootstrap-3.7.0.py", line 965, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'familydiagram'
> 
> Or the following error if I change it to pkdiagram.app:main:
> 
> Traceback (most recent call last):
>   File "main_app.py", line 1, in <module>
>   File "bootstrap-3.7.0.py", line 983, in _find_and_load
>   File "bootstrap-3.7.0.py", line 965, in _find_and_load_unlocked
> ModuleNotFoundError: No module named ‘pkdiagram'
> 
> If use a main script file containing “import pkdiagram.app;
> pkdiagram.app.main()” instead of an entry point I get the following
> error:
> 
> Traceback (most recent call last):
>   File "main_app.py", line 1, in <module>
>   File "bootstrap-3.7.0.py", line 983, in _find_and_load
>   File "bootstrap-3.7.0.py", line 965, in _find_and_load_unlocked
> ModuleNotFoundError: No module named ‘pkdiagram'
> 
> What is the right way to do this?

The handling of entry points in v3 hasn't (knowingly) changed.

Phil


More information about the PyQt mailing list