axcore / tartube

A GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3
GNU Lesser General Public License v2.1
2.12k stars 112 forks source link

ModuleNotFoundError: No module named 'gi' #544

Closed GreatBigWhiteWorld closed 1 year ago

GreatBigWhiteWorld commented 1 year ago

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?

linux opensuse

What version of Tartube are you using?

can't launch to see

Installed it using pip install tartube and it worked fine. A few weeks later when I launch it it gives this error:

tartube
Traceback (most recent call last):
  File "/home/username/.local/bin/tartube", line 42, in <module>
    import mainapp
  File "/home/username/.local/lib/python3.8/site-packages/tartube/mainapp.py", line 24, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'
axcore commented 1 year ago

I suggest uninstalling it (with pip uninstall tartube), then re-installing it.

If problems persists, there are several other installation methods, including just running the source code directly. Instructions for all of them can be found in the README.

axcore commented 1 year ago

Also, the correct installation command uses pip3, not pip.

pip3 install tartube

GreatBigWhiteWorld commented 1 year ago

I get this new error:

note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for pycairo
      Failed to build pycairo
      ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
      WARNING: There was an error checking the latest version of pip.
      [end of output]

Could you build a flatpak version of this app instead?

axcore commented 1 year ago

I get this new error:

Looks like you need to install pycairo's dependencies. This thread provides some suggestions. Try this one for OpenSUSE:

sudo zypper install cairo-devel pkg-config python3-devel

Could you build a flatpak version of this app instead?

I tried that last year but gave up because of the woeful state of flatpak's documentation.

GreatBigWhiteWorld commented 1 year ago

Thanks. Had to install quite some packages to get it to work. To start, needed to install specifically python38-devel.