Coder Social home page Coder Social logo

Comments (3)

gonzaarcr avatar gonzaarcr commented on August 30, 2024 1

sudo apt install python3-gi, or if that doesn’t work, also install sudo apt install python3-gi-cairo gir1.2-gtk-3.0

from fildem.

bcalvim avatar bcalvim commented on August 30, 2024

Thanks for the help, but it didn't work for me.

Fildem on  master via 🐍 v3.9.2 
❯ sudo apt install python3-gi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-gi is already the newest version (3.38.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Fildem on master via 🐍 v3.9.2 took 4s 
❯ sudo apt install python3-gi-cairo gir1.2-gtk-3.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gir1.2-gtk-3.0 is already the newest version (3.24.23-1ubuntu1).
python3-gi-cairo is already the newest version (3.38.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Fildem on master via 🐍 v3.9.2 
❯ ./run.sh                   
Traceback (most recent call last):
  File "/home/bruno/globalmenu-gnome/Fildem/./command.py", line 6, in <module>
    from handlers.default import HudMenu
  File "/home/bruno/globalmenu-gnome/Fildem/handlers/default.py", line 1, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

Fildem on master via 🐍 v3.9.2 
❯ sudo apt install python3-gi-cairo gir1.2-gtk-3.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gir1.2-gtk-3.0 is already the newest version (3.24.23-1ubuntu1).
python3-gi-cairo is already the newest version (3.38.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Fildem on master via 🐍 v3.9.2 
❯ ./run.sh                                        
Traceback (most recent call last):
  File "/home/bruno/globalmenu-gnome/Fildem/./command.py", line 6, in <module>
    from handlers.default import HudMenu
  File "/home/bruno/globalmenu-gnome/Fildem/handlers/default.py", line 1, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

I think its because i'm using asdf.

Fildem on master via 🐍 v3.9.2 
❯ which python
/home/bruno/.asdf/shims/python

Fildem on master via 🐍 v3.9.2 
❯ which -a python
/home/bruno/.asdf/shims/python

Fildem on master via 🐍 v3.9.2 
❯ which -a python3.8
/usr/bin/python3.8
/bin/python3.8

python3-gi its only callable by system python (at /usr/bin/python3.8 in my case). I already try to reshim, but had no luck.

❯ python3.8
Python 3.8.6 (default, Jan 27 2021, 15:42:20) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import gi
>>> sys.executable
'/usr/bin/python3.8'
>>> 

I think we can close this issue, the problem is in the configuration of my system.

Thanks for the help.

from fildem.

gonzaarcr avatar gonzaarcr commented on August 30, 2024

Maybe try with python3.8 run.py

from fildem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.