Skip to content

Conversation

@PaulJonasJost
Copy link
Collaborator

(At least on Mac) We got the initial error

PEtab_GUI/src/petab_gui/app.py", line 138, in main
    from Foundation import NSBundle  # type: type: ignore[import]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'Foundation'

This resolves after activating and reactivating the venv, thus we pass it on the first use

@fbergmann
Copy link
Collaborator

better to just install pip install pyobjc on macOS, as we will need it ...

@PaulJonasJost
Copy link
Collaborator Author

PaulJonasJost commented Nov 24, 2025

better to just install pip install pyobjc on macOS, as we will need it ...

Is already in the dependencies in pyproject.toml -> that installing millions of packages is another thorn in my eye for now :D

@fbergmann
Copy link
Collaborator

sure, but not having a proper menu would be even more of an annoyance on macOS

@PaulJonasJost
Copy link
Collaborator Author

sure, but not having a proper menu would be even more of an annoyance on macOS

Fair point.

But for this one, the error persist for me if we install pyobjc but removes itself after a restart of the virtual environment. As far as I can see from testing, it does not impact the actual functionality of the app, but rather the name in mac shown in the top left. Thus, this small fix at least allows immediate start. Happy about other suggestions of course.

Copy link
Collaborator

@fbergmann fbergmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good, as long as we are installing the dependency and try for the best. Thanks!

@PaulJonasJost PaulJonasJost merged commit 8cc6bfd into main Nov 25, 2025
7 checks passed
@PaulJonasJost PaulJonasJost deleted the fix_initial_start branch November 25, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants