Nano-Basket
Nano-Basket copied to clipboard
Doesn't work with actual (2020) python
Hello, I tried to get it work under Ubuntu Linux 20.04. But several python libs are not working. Maybe it's me, but I cannot find/install some older libs .
Here some informations on my tries.
When starting "normal" (Python 2.7.18) the following error shows up:
./nano_basket_main.py
Traceback (most recent call last):
File "./nano_basket_main.py", line 24, in
I couldn't find an old "pyalsa"
When I start using python3 nano_basket_main.py I get:
Traceback (most recent call last):
File "nano_basket_main.py", line 33, in
Now I'm out, I found some informations describing how to fix such an error, but that's outside my abilities.
In the file nano_basket_gui.py i commented line 24 "pygtk.require('2.0')" to get rid of some messages asking for it
but I didn't get an old pygtk.
@Olfried2 you'll definitely need to use python2 not 3. The error mesg that you are getting is that the pyalsa module is missing. On Manjaro I was able to get it installed by following these instructions though on Ubuntu you might be able to install pyalsa via apt too. Its not provided in those instructions, but here is the link to the page with the pyalsa source download if you end up following those instructions.
Basically this is a duplicate of https://github.com/royvegard/Nano-Basket/issues/5#issuecomment-135861889
@Olfried2, I have updated to use python3 only and PyGObject. The README has also been updated. It can be a bit tricky to install pyalsa, since it is not available from pypi, but I believe the popular distributions have a package for it.
...It can be a bit tricky to install pyalsa
I went the Python3 route on the older Ubuntu 18.04; there's no python3-pyalsa
available from the Ubuntu distro repo (unlike with Ubuntu 20.04 and later).
To install pyalsa
on Python3 manually:
- download the source package from Alsa repo (e.g. pyalsa-1.2.7)
- install from the extracted source (there's
setup.py
file)
cd pyalsa-1.2.7
pip3 install .
This appears to work, at least with the old Python 3.6.9.