Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install RedNotebook on Mac #607

Open
FedericoCapaldo opened this issue Jan 26, 2022 · 6 comments
Open

Cannot install RedNotebook on Mac #607

FedericoCapaldo opened this issue Jan 26, 2022 · 6 comments

Comments

@FedericoCapaldo
Copy link

FedericoCapaldo commented Jan 26, 2022

Mac OS Mojave. Python 3.7.4. Python versions managed with pyenv.

I tried to follow all installations steps at:

and keep getting the same error

ERROR    pygobject could not be imported: "No module named 'gi'". Please install it (python3-gi)

The relevant library for this missing package seems to be: pygobject3. I did install it successfully with brew install pygobject3. Also tried brew install pygobject3 --with-python@3. brew list shows pygobject3 as installed. Also when using pip3 list the packagePyGObject 3.42.0 is installed.

Tried fresh reinstall multiple times, the same error keeps coming up. Looked up this question on StackOverflow as relevant to the issue (someone in the comment also mentions rednotebook). This did not help. https://stackoverflow.com/questions/18119618/importerror-no-module-named-gi-repository-mac-os-x/33192698?noredirect=1#comment123969775_33192698

Please, seeking instructions on how to install this on mac successfully. It's a great piece of software but don't know how to get around this issue.

@jendrikseipp
Copy link
Owner

I also don't know more about this, sorry. I recommend creating a test.py file that only contains import gi and see if the more detailed error message tells you what's going wrong.

@oussjarrousse
Copy link

oussjarrousse commented Oct 19, 2022

@jendrikseipp I managed to bundle rednotebook for mac os x using pyinstaller. The result is an rednotebook.app that can be copied to the application folder. There is still an issue with keyboard shortcuts, that I am not sure how to resolve.

Installation and bundling got much simpler (and more sustainable) than my previous solution!

Read about it here:

https://blog.jarrousse.org/2022/10/19/packaging-rednotebook-for-mac-os-x-with-pyinstaller

I am thinking about creating a pull request, to add the configuration if you are open to reviewing it.

@oussjarrousse
Copy link

I am still facing an issue with keyboard shortcuts mapping. I don't know how to address that issue. I've created a stackoverflow and a apple stackexchange questions about it:

https://stackoverflow.com/questions/74184371/gtk3-application-running-on-mac-os-x-does-not-have-the-same-keyboard-shortcuts

https://apple.stackexchange.com/questions/449522/gtk3-application-running-on-mac-os-x-does-not-have-the-same-keyboard-shortcuts

@jendrikseipp
Copy link
Owner

You could also have a look at how similar GTK 3 tools do this on MacOS, such as Gaphor or Gramps.

@jendrikseipp
Copy link
Owner

I made some progress on building a DMG for RedNotebook automatically in a feature branch: #647

The .app and .dmg files are uploaded as artifacts here: https://github.com/jendrikseipp/rednotebook/actions/workflows/macos.yml (select the newest workflow run, to see/test them).

There are two main problems currently:

  1. I don't have a Mac for testing the .app and .dmg file.
  2. Distributing the .dmg file would require an Apple developer license (USD 99 per year) for notarizing the file, which I don't have.

Any help/tips appreciated :-)

@oussjarrousse
Copy link

RedNotebook stopped working on my MacOS last week. I will take some time to revisit the issue...

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

No branches or pull requests

3 participants