LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2022, 08:32 AM   #1
Tuxqi
Member
 
Registered: Apr 2009
Posts: 49

Rep: Reputation: 2
ImportError: No module named gi


I'm on Slackware 15 and I'm trying to run GameConqueror the GUI for scanmem.

It doesn't run because it can't seem to find the gi module for Python.

From my limited understanding it's part of the python-gobject package which is installed and I can see it's files and files for the gi module.

Maybe I broke something whilst installing other stuff.
 
Old 04-12-2022, 08:39 AM   #2
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
I had this issue yesterday trying to install variety from SBo
 
1 members found this post helpful.
Old 04-12-2022, 09:51 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,142
Blog Entries: 6

Rep: Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829Reputation: 1829
Is that a python2 or python3 program. They import gi differently. Or if you are trying to run a python2 script with python3 you will get that error right off the bat. Can you look at the source.

Is it this?
https://github.com/scanmem/scanmem
https://github.com/scanmem/scanmem/b...meConqueror.py

That's about all that I can tell you without knowing more.
 
Old 04-12-2022, 06:54 PM   #4
Tuxqi
Member
 
Registered: Apr 2009
Posts: 49

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by teckk View Post
Is that a python2 or python3 program. They import gi differently. Or if you are trying to run a python2 script with python3 you will get that error right off the bat. Can you look at the source.

Is it this?
https://github.com/scanmem/scanmem
https://github.com/scanmem/scanmem/b...meConqueror.py

That's about all that I can tell you without knowing more.

yes that's the program.

I used the slackbuild to build/install it.
 
Old 04-13-2022, 05:18 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
that happens because /usr/share/gameconqueror/GameConqueror.py points to the wrong python interpreter (python2): just edit the first line of that file so that it reads
Code:
#!/usr/bin/env python3
 
1 members found this post helpful.
Old 04-13-2022, 05:24 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
Quote:
Originally Posted by giomat View Post
I had this issue yesterday trying to install variety from SBo
in this case you should ping the maintainer for an update...
 
1 members found this post helpful.
Old 05-17-2023, 06:14 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
here it is may 2023 and this same issue persists as I just installed variety and it still shows that error.
Code:
$ variety
Traceback (most recent call last):
  File "/usr/bin/variety", line 38, in <module>
    import variety
  File "/usr/lib64/python2.7/site-packages/variety/__init__.py", line 106, in <module>
    import gi
ImportError: No module named gi
looks like this app is out for slackware
 
Old 05-17-2023, 11:41 PM   #8
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 321

Rep: Reputation: 215Reputation: 215Reputation: 215
The maintainer doesn't look to be active anymore and a python3-variety slackbuild should be created to replace it and this one removed, preferably by someone who uses it.

https://github.com/varietywalls/variety (0.8.10 was released in Jan.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 12:48 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration