sdrelton / cryptocoin-indicator

Ubuntu indicator for cryptocoin price fluctuations.
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

AttributeError: 'module' object has no attribute 'require_version' #4

Closed buxx closed 7 years ago

buxx commented 7 years ago

Hello,

When execute script with python2, i got:

python cryptocoin-indicator.py
<module 'gi' from '/home/bux/Projets/cryptocoin-indicator/venv2.7/local/lib/python2.7/site-packages/gi/__init__.pyc'>
Traceback (most recent call last):
  File "cryptocoin-indicator.py", line 8, in <module>
    gi.require_version('Gtk', '3.0')
AttributeError: 'module' object has no attribute 'require_version'

And with python3:

python cryptocoin-indicator.py 
Traceback (most recent call last):
  File "cryptocoin-indicator.py", line 6, in <module>
    import gi
  File "/home/bux/Projets/cryptocoin-indicator/venv3.5/lib/python3.5/site-packages/gi/__init__.py", line 39
    print url
            ^
SyntaxError: Missing parentheses in call to 'print'

Thank's.

sdrelton commented 7 years ago

Hey,

According to this you need to install python-gobject

https://github.com/enkore/i3pystatus/issues/314

Let me know if you have any other trouble!

Cheers, Sam


From: Bastien Sevajol [notifications@github.com] Sent: 13 June 2017 14:39 To: sdrelton/cryptocoin-indicator Cc: Subscribed Subject: [sdrelton/cryptocoin-indicator] AttributeError: 'module' object has no attribute 'require_version' (#4)

Hello,

When execute script, i got:

python cryptocoin-indicator.py <module 'gi' from '/home/bux/Projets/cryptocoin-indicator/venv2.7/local/lib/python2.7/site-packages/gi/init.pyc'> Traceback (most recent call last): File "cryptocoin-indicator.py", line 8, in gi.require_version('Gtk', '3.0') AttributeError: 'module' object has no attribute 'require_version'

Something missing on my system ? Thank's.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/sdrelton/cryptocoin-indicator/issues/4, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGGqhQ4r_2QR3CvhRWXbhhEiFqf-qsejks5sDpEAgaJpZM4N4gSZ.

buxx commented 7 years ago

Hello,

Actually, i already have ̀python-gobject` installed on my Ubuntu 16.04. Tested without virtual environment: No bugs!

Bux.

sdrelton commented 7 years ago

Great! Glad it's working for you now. Shall I close the issue?


From: Bastien Sevajol [notifications@github.com] Sent: 13 June 2017 15:19 To: sdrelton/cryptocoin-indicator Cc: Samuel Relton; Comment Subject: Re: [sdrelton/cryptocoin-indicator] AttributeError: 'module' object has no attribute 'require_version' (#4)

Hello,

Actually, i already have ̀python-gobject` installed on my Ubuntu 16.04. Tested without virtual environment: No bugs!

Bux.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/sdrelton/cryptocoin-indicator/issues/4#issuecomment-308131418, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGGqhaJQdiMWHWyNyYs5_7MVVITGQm9hks5sDppegaJpZM4N4gSZ.

sdrelton commented 7 years ago

Rereading your comment I believe the issue is now fixed, so I'll close it. Let me know if you have any further problems!