Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with actual (2020) python #7

Closed
Olfried2 opened this issue Dec 22, 2020 · 3 comments
Closed

Doesn't work with actual (2020) python #7

Olfried2 opened this issue Dec 22, 2020 · 3 comments

Comments

@Olfried2
Copy link

Olfried2 commented Dec 22, 2020

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
from nano_basket_backend import *
File "/home/ernst/Music/NanoBasket/nano_basket_backend.py", line 24, in
from pyalsa import alsaseq
ImportError: No module named pyalsa

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
Midi_Device = Nano_Kontrol_Alsa_Midi_Comm()
File "/home/ernst/Music/NanoBasket/nano_basket_backend.py", line 267, in init
self.Event = alsaseq.SeqEvent(alsaseq.SEQ_EVENT_SYSEX)
OverflowError: Python int too large to convert to C long

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.

@maks
Copy link

maks commented Feb 22, 2021

@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 #5 (comment)

@royvegard
Copy link
Owner

@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.

@nomadbyte
Copy link

nomadbyte commented Apr 5, 2024

...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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants