Skip to content

Unable to load all GUI requirements on ubuntu 22.04.5 LTS #305

@robertnurnberg

Description

@robertnurnberg

After cloning the repo and (trying to) install the requirements, I get this error:

2024-11-18 11:26:57: Unable to load all GUI requirements: [ValueError('Namespace AyatanaAppIndicator3 not available'), ImportError("cannot import name 'Unpack' from 'typing_extensions' (/usr/lib/python3/dist-packages/typing_extensions.py)")] - did you mean to run in `--no-gui` mode? If not, please run `python -m pip install -r requirements-gui.txt` or install from PyPI with GUI requirements included: `python -m pip install emailproxy[gui]`
2024-11-18 11:26:57: Stopping Email OAuth 2.0 Proxy

Running python -m pip install -r requirements-gui.txt gives

Defaulting to user installation because normal site-packages is not writeable
Ignoring importlib_metadata: markers 'python_version < "3.8"' don't match your environment
Ignoring pyobjc-framework-Cocoa: markers 'sys_platform == "darwin"' don't match your environment
Ignoring pyobjc-framework-SystemConfiguration: markers 'sys_platform == "darwin"' don't match your environment
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from -r requirements-gui.txt (line 5)) (21.3)
Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from -r requirements-gui.txt (line 6)) (9.0.1)
Requirement already satisfied: timeago in /home/rn/.local/lib/python3.10/site-packages (from -r requirements-gui.txt (line 7)) (1.0.16)
Requirement already satisfied: pystray>=0.19.4 in /home/rn/.local/lib/python3.10/site-packages (from -r requirements-gui.txt (line 10)) (0.19.5)
Requirement already satisfied: pywebview>=4.2.1 in /home/rn/.local/lib/python3.10/site-packages (from -r requirements-gui.txt (line 16)) (5.3.2)
Requirement already satisfied: python-xlib>=0.17 in /home/rn/.local/lib/python3.10/site-packages (from pystray>=0.19.4->-r requirements-gui.txt (line 10)) (0.33)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pystray>=0.19.4->-r requirements-gui.txt (line 10)) (1.16.0)
Requirement already satisfied: typing-extensions in /usr/lib/python3/dist-packages (from pywebview>=4.2.1->-r requirements-gui.txt (line 16)) (3.10.0.2)
Requirement already satisfied: proxy-tools in /home/rn/.local/lib/python3.10/site-packages (from pywebview>=4.2.1->-r requirements-gui.txt (line 16)) (0.1.0)
Requirement already satisfied: bottle in /home/rn/.local/lib/python3.10/site-packages (from pywebview>=4.2.1->-r requirements-gui.txt (line 16)) (0.13.2)

Activity

simonrob

simonrob commented on Nov 18, 2024

@simonrob
Owner

This is mentioned in the readme already. From the specific error you've encountered, my guess is that installing gir1.2-ayatanaappindicator will fix things for you.

robertnurnberg

robertnurnberg commented on Nov 18, 2024

@robertnurnberg
Author

Thanks for your quick reply, much appreciated. I did a quick sudo apt install gir1.2-ayatanaappindicator3-0.1, but this changed nothing for the above error. Will take a closer look at the readme section you linked to now.

Edit: Also after

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.1 
sudo apt install python3-pyqt5 python3-pyqt5.qtwebengine python3-pyqt5.qtwebchannel libqt5webkit5-dev
sudo apt install python3-webview    

as suggested here, the original error persists.

robertnurnberg

robertnurnberg commented on Nov 18, 2024

@robertnurnberg
Author

Right, so doing pip install --upgrade typing_extensions fixed this for me. Thanks for your help, and your overall work!

robertnurnberg

robertnurnberg commented on Nov 18, 2024

@robertnurnberg
Author

For completeness, here the output of my upgrading, in case you want to add the particular version of the package to your requirements file:

> pip install --upgrade typing_extensions
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: typing_extensions in /usr/lib/python3/dist-packages (3.10.0.2)
Collecting typing_extensions
  Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: typing_extensions
Successfully installed typing_extensions-4.12.2
simonrob

simonrob commented on Nov 18, 2024

@simonrob
Owner

Thanks for following up – I'm glad this was resolved. I'll link to this issue along with the other ones at that part of the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @simonrob@robertnurnberg

        Issue actions

          Unable to load all GUI requirements on ubuntu 22.04.5 LTS · Issue #305 · simonrob/email-oauth2-proxy