Closed ghost closed 5 years ago
Hello!
Very strange, all OK on Ubuntu.
Please, try to install this module from repository if you are using Ubuntu:
sudo apt install python3-gi
If you not using Ubuntu, please, provide your distr.
I'm running this bot on an RPi3 based on Debian 8.0. And yes, this is indeed a strange occurrence as I did not modify anything python-related on that machine.
I purged all required modules and reinstalled them manually via apt
.
python3 3.4.2-2
python3-requests 2.4.3-6
python3-bs4 4.3.2-2
python3-notify2 0.3-3
python3-gi 3.14.0-1
datetime
is not on the list since it's an integrated module and 4.2 is already installed in /usr/local/lib/python3.4/dist-packages
so I didn't bother with that any further.
Nonetheless same old story as in my first post.
import gi... __init__.py... line 39... syntax error... missing parentheses blablabla...
Ok then, manually adding these is not exactly rocket science.
Next try aaaand- nope.
blah@bleh:~/sgbot $ ./sg.py
Traceback (most recent call last):
File "./sg.py", line 16, in <module>
gi.require_version('GdkPixbuf', '2.0')
AttributeError: 'module' object has no attribute 'require_version'
Well, at least it's not line 15 anymore. /s
hello,.
Please, read: https://github.com/enkore/i3pystatus/issues/314
If previous solution did not work, please, try to delete these lines from script and try again:
if platform.system()=="Linux": import notify2 import gi gi.require_version('GdkPixbuf', '2.0') from gi.repository.GdkPixbuf import Pixbuf pb=Pixbuf.new_from_file("icon.png")
Thanks.
I commented that area out and it seems to work well so far. The bot runs on a headless machine so excluding notify2 is not a big loss in that case. Thanks for the help!
A question regarding search list. Do the names have to be an exact copy of how they are displayed on SG? Some of them have an unusual char length and get cropped with a ...
at the end like
Title: Something Something Game of the...
which supposedly is Title: Something Something Game of the Year Edition
.
Support of the Debian 8.0 will be end in May. So, close the topic.