bluppfisk / coindicator

A crypto-currency (Bitcoin, Ethereum et al) market price indicator for the Linux desktop. Sits in the tray and lets you set alerts. Supports GNOME, Unity and KDE.
MIT License
160 stars 40 forks source link

Xubuntu 18.04 - Package 'python3-pygame' has no installation candidate #72

Closed re42 closed 2 years ago

re42 commented 4 years ago

Firstly, thank you so much for this amazing simple indicator for Ubuntu. This is what ive been looking for for a long time!

i just want to mention that ive been having difficulty installing this on a fresh installation of Xubuntu 18.04. I kept getting this error: Package 'python3-pygame' has no installation candidate

Then i went to remove python3-pygame from install.sh but then it gave an error:

Building wheels for collected packages: PyYAML
  Running setup.py bdist_wheel for PyYAML ... error
  Complete output from command /home/test/coinprice-indicator/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-shzygl8g/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyu3ynxd5pip-wheel- --python-tag cp36:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for PyYAML
  Running setup.py clean for PyYAML
Failed to build PyYAML

So what i did was: cd coinprice-indicator source ./bin/activate pip3 install pygame

After that, i ran ./install.sh again and it finished without errors, then clicked on the Coinindicator created icon, and it loaded everything fine. The only problem is that i cannot see the actual values on the taskbar next to the Ticker i create. 2020-09-12

Does this have anything to do with the fact that the specific package python3-pygame wasnt installed? Also, did i install the correct package for pygame?

bluppfisk commented 4 years ago

Hi re42, the pygame package is only used to play audio alerts. If you're not seeing the prices next to the icons, this may have something to do with how Xfce handles StatusNotifier items. There may be a setting or a plug-in. On Gnome, KDE and Unity, labels are supported for StatusNotifier items, but I'm not sure about Xfce. I won't have time to find out, but if you do, I'd be happy to include your feedback in the documentation.

re42 commented 4 years ago

@bluppfisk thanks for the clarification. I have tried all the settings i can in all the indicators in xfce4, unfortunately i cannot seem to get the text-side of it to display. I saw this issue here and i thought i could try that, but it seems that xfapplet is deprecated. I can however mention that i am seeing the weather text perfectly fine on xfce4 here: https://gitlab.xfce.org/panel-plugins/xfce4-weather-plugin/-/tree/master

If you could maybe check that repo out and see maybe you need something there that can work for Coinprice-Indicator in terms of display?

bluppfisk commented 4 years ago

Hi @re42 , I looked at that project and it seems to make use of a separate library libxfce4ui to achieve what I do through libappindicator. Maybe I can try to support xfce this way but it would require some investigation. If you're skilled with Python, you're welcome to submit some sample code and I can take it from there.

re42 commented 4 years ago

@bluppfisk thanks for having a look at it. I would have definitely helped but unfortunately im not 100% skilled in python. I hope you can find the time soon to be able to investigate this further, cause i really want to use this app.

bluppfisk commented 2 years ago

closing due to inactivity, also, 2.0.1 is likely to fix most of these issues