Zzub music software

Crossplatform modular audio software

Skip to content

Trouble running Aldrin on Ubuntu 9.04

The second clone on the moon.

Trouble running Aldrin on Ubuntu 9.04

Postby djauto23 on Sat Apr 18, 2009 1:37 pm

On Ubuntu 9.04 I get this, both when installed from source and when using the deb packages for 8.10:

Traceback (most recent call last):
File "/usr/local/bin/aldrin", line 20, in <module>
import aldrin.main
ImportError: No module named aldrin.main

Have tried running with "python /usr/local/lib/python2.6/site-packages/aldrin/main.py", but then i get "Aborted (core dumped)". I've also tried that command with python2.5 (python2.5-minimal ubuntu package), with the same result.

Any ideas for anything else worth trying will be greatly appreciated.
djauto23
 
Posts: 6
Joined: Thu Oct 02, 2008 11:31 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby bucket_brigade on Mon Apr 20, 2009 8:15 am

to get rid of the import error do this:
add "export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/site-packages" (or w/e is that dir called on you system) to ~/.profile file.

Not sure why are you getting a core dump though.
bucket_brigade
 
Posts: 119
Joined: Sun Jun 22, 2008 8:20 pm

Re: Trouble running Aldrin on Ubuntu 9.04

Postby coff on Tue May 12, 2009 3:43 pm

i have a similar error

Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/aldrin/com.py", line 89, in load_packages
module_ = __import__(modulename)
File "/usr/local/share/aldrin/components/contextmenu.py", line 36, in <module>
from router import SignalAnalysisDialog
File "/usr/local/share/aldrin/components/router.py", line 52, in <module>
from presetbrowser import PresetView
File "/usr/local/share/aldrin/components/presetbrowser.py", line 29, in <module>
from utils import prepstr, filepath, db2linear, linear2db, is_debug, filenameify, \
ImportError: No module named utils

and tried export pythonPATH on .profile, though didnt work

any idea plz?
coff
 
Posts: 1
Joined: Tue May 12, 2009 3:41 pm

Re: Trouble running Aldrin on Ubuntu 9.04

Postby victor on Thu May 14, 2009 8:08 am

I had a similar problem when I upgraded to Ubuntu 9.04. The problem is that in ubuntu python packages are installed in /usr/python2.6/dist-packages or /usr/local/python2.6/dist-packages. I will submit a patch to fix this installation issue as soon as possible.

Meanwhile you can fix aldrin like this:
Look where you have aldrin python packages installed it can be:
/usr/lib/python2.5/site-packages/aldrin
/usr/local/lib/python2.5/site-packages/aldrin
/usr/lib/python2.6/site-packages/aldrin
/usr/local/lib/python2.6/site-packages/aldrin

Then modify the file /usr/bin/aldrin or /usr/local/bin/aldrin (you need to be root for this (run gedit with sudo)) and add this line before the line "import aldrin.main":
sys.path = ["/usr/lib/python2.6/site-packages"]+sys.path
Substitute "/usr/lib/python2.6/site-packages" with the actual directory where the aldrin python package is installed.
Save the file and now aldrin should be running OK.

I hope that helps.
victor
 
Posts: 12
Joined: Thu May 14, 2009 7:57 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby victor on Thu May 14, 2009 9:02 am

I add the patch here as bitbucket messes the text:

Code: Select all
--- SConstruct
+++ SConstruct
@@ -47,7 +47,8 @@
opts.Add("PREFIX", 'Set the install "prefix" ( /path/to/PREFIX )', "/usr/local")
opts.Add("DESTDIR", 'Set the root directory to install into ( /path/to/DESTDIR )', "")
opts.Add("ETCDIR", 'Set the configuration dir "prefix" ( /path/to/ETC )', "/etc")
-
+opts.Add("DISTPACKAGES", "Install to 'dist-packages' instead of 'site-packages'", "False")
+
env = Environment(ENV = os.environ, options=opts)


env.SConsignFile()
@@ -55,9 +56,13 @@
######################################

# build settings

######################################
-
env['ROOTPATH'] = os.getcwd()
-env['SITE_PACKAGE_PATH'] = distutils.sysconfig.get_python_lib(prefix="${DESTDIR}${PREFIX}")
+
+sp = distutils.sysconfig.get_python_lib(prefix=env.subst("${DESTDIR}${PREFIX}"))
+if bool_converter(env.subst('$DISTPACKAGES')):
+    if 'site-packages' in sp and not 'dist-packages' in sp:
+        sp = sp.replace('site-packages', 'dist-packages')
+env['SITE_PACKAGE_PATH'] = sp
env['APPLICATIONS_PATH'] = '${DESTDIR}${PREFIX}/share/applications'
env['BIN_PATH'] = '${DESTDIR}${PREFIX}/bin'
env['SHARE_PATH'] = '${DESTDIR}${PREFIX}/share/aldrin'
victor
 
Posts: 12
Joined: Thu May 14, 2009 7:57 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby djauto23 on Fri May 15, 2009 5:23 pm

Seems like it's not only the path issue which hinders aldrin from running on 9.04. It begins loading, but crashes at some point while loading the plugins. Can this have something to do with armstrong?

Some examples of output:
Code: Select all
======= Memory map: ========
08048000-08225000 r-xp 00000000 08:01 6226310    /usr/bin/python2.6
08225000-08226000 r--p 001dc000 08:01 6226310    /usr/bin/python2.6
08226000-08273000 rw-p 001dd000 08:01 6226310    /usr/bin/python2.6
08273000-0827c000 rw-p 08273000 00:00 0
08578000-08e98000 rw-p 08578000 00:00 0          [heap]
b5717000-b5719000 r-xp 00000000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b5719000-b571a000 r--p 00001000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b571a000-b571b000 rw-p 00002000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b571b000-b571d000 r-xp 00000000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b571d000-b571e000 r--p 00001000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b571e000-b571f000 rw-p 00002000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b571f000-b5721000 r-xp 00000000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b5721000-b5722000 r--p 00001000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b5722000-b5723000 rw-p 00002000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b5723000-b5727000 r-xp 00000000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b5727000-b5728000 r--p 00003000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b5728000-b57f7000 rw-p 00004000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b57f7000-b57f9000 r-xp 00000000 08:01 6521303    /usr/local/lib/lunar/fx/filter/filter.so
b57f9000-b57fa000 r--p 00001000 08:01 6521303    /usr/local/lib/lunar/fx/filter/filter.so
b57fa000-b57fb000 rw-p 00002000 08:01 6521303    /usr/lAborted


Code: Select all
======= Memory map: ========
08048000-08225000 r-xp 00000000 08:01 6226310    /usr/bin/python2.6
08225000-08226000 r--p 001dc000 08:01 6226310    /usr/bin/python2.6
08226000-08273000 rw-p 001dd000 08:01 6226310    /usr/bin/python2.6
08273000-0827c000 rw-p 08273000 00:00 0
09125000-09a45000 rw-p 09125000 00:00 0          [heap]
b55f0000-b55f2000 r-xp 00000000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b55f2000-b55f3000 r--p 00001000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b55f3000-b55f4000 rw-p 00002000 08:01 6400137    /usr/local/lib/lunar/fx/bitcrusher/bitcrusher.so
b55f4000-b55f6000 r-xp 00000000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b55f6000-b55f7000 r--p 00001000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b55f7000-b55f8000 rw-p 00002000 08:01 6406510    /usr/local/lib/lunar/fx/delay/delay.so
b55f8000-b55fa000 r-xp 00000000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b55fa000-b55fb000 r--p 00001000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b55fb000-b55fc000 rw-p 00002000 08:01 6521293    /usr/local/lib/lunar/fx/distortion/distortion.so
b55fc000-b5600000 r-xp 00000000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b5600000-b5601000 r--p 00003000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b5601000-b56d0000 rw-p 00004000 08:01 6521306    /usr/local/lib/lunar/fx/epiano/epiano.so
b56d0000-b56d2000 r-xp 00000000 08:01 6521303    /usr/local/lib/lunar/fx/filter/filter.so
b56d2000-b56d3000 r--p 00001000 08:01 6521303    /usr/local/lib/lunar/fx/filter/filter.so
b56d3000-b56d4000 rw-p 00002000 08:01 6521303    /usr/local/lib/lunar/fx/filter/filter.so
b56d4000-b56d6000 r-xp 00000000 08:01 6570260    /usr/local/lib/lunar/fx/gain/gain.so
b56d6000-b56d7000 r--p 00001000 08:01 6570260    /usr/local/lib/lunar/fx/gain/gain.so
b56d7000-b56d8000 rw-p 00002000 08:01 6570260    /usr/local/lib/lunar/fx/gain/gain.so
b56d8000-b56db000 r-xp 00000000 08:01 6579376    /usr/local/lib/lunar/fx/kick/kick.so
b56db000-b56dc000 r--p 00002000 08:01 6579376    /usr/local/lib/lunar/fx/kick/kick.so
b56dc000-b56dd000 rw-p 00003000 08:01 6579376    /usr/local/lib/lunar/fx/kick/kick.so
b56dd000-b56df000 r-xp 00000000 08:01 6619157    /usr/local/lib/lunar/fx/lfo/lfo.so
b56df000-b56e0000 r--p 00001000 08:01 6619157    /usr/local/lib/lunar/fx/lfo/lfo.so
b56e0000-b56e1000 rw-p 00002000 08:01 6619157    /usr/local/lib/lunar/fx/lfo/lfo.so
b56e1000-b56e4000 r-xp 00000000 08:01 6621092    /usr/local/lib/lunar/fx/mdaBandisto/mdaBandisto.so
b56e4000-b56e5000 r--p 00002000 08:01 6621092    /usr/local/lib/lunar/fx/mdaBandisto/mdaBandisto.so
b56e5000-b56e6000 rw-p 00003000 08:01 6621092    /usr/local/lib/lunar/fx/mdaBandisto/mdaBandisto.so
b56e6000-b56e8000 r-xp 00000000 08:01 6621096    /usr/local/lib/lunar/fx/panning/panning.so
b56e8000-b56e9000 r--p 00001000 08:01 6621096    /usr/local/lib/lunar/fx/panning/panning.so
b56e9000-b56ea000 rw-p 00002000 08:01 6621096    /usr/local/lib/lunar/fx/panning/panning.so
b56ea000-b56ec000 r-xp 00000000 08:01 2048004    /usr/local/lib/lunar/fx/phaser/phaser.so
b56ec000-b56ed000 r--p 00001000 08:01 2048004    /usr/local/lib/lunar/fx/phaser/phaser.so
b56ed000-b56ee000 rw-p 00002000 08:01 2048004    /usr/local/lib/lunar/fx/phaser/phaser.so
b56ee000-b56f5000 r-xp 00000000 08:01 2080773    /usr/local/lib/lunar/fx/philthy/philthy.so
b56f5000-b56f6000 r--p 00006000 08:01 2080773    /usr/local/lib/lunar/fx/philthy/philthy.so
b56f6000-b56f7000 rw-p 00007000 08:01 2080773    /usr/local/lib/lunar/fx/philthy/philthy.so
b56f7000-b5702000 r-xp 00000000 08:01 3424262    /usr/local/lib/lunar/fx/sid/sid.so
b5702000-b5703000 r--p 0000a000 08:01 3424262    /usr/local/lib/lunar/fx/sid/sid.so
b5703000-b5724000 rw-p 0000b000 08:01 3424262    /usr/local/lib/lunar/fx/sid/sid.so
b5724000-b5729000 r-xp 00000000 08:01 6311182    /usr/local/lib/liblunarstd.so
b5729000-b572a000 r--p 00004000 08:01 6311182    /usr/local/lib/liblunarstd.so
b572a000-b572b000 rw-p 00005000 08:01 6311182    /usr/local/lib/liblunarstd.so
b572e000-b5732000 r-xp 00000000 08:01 3342344    /usr/local/lib/lunar/fx/reverb/reverb.so
b5732000-b5733000 r--p 00003000 08:01 3342344    /usr/local/lib/lunar/fx/reverb/reverb.so
b5733000-b5734000 rw-p 00004000 08:01 3342344    /usr/local/lib/lunar/fx/reverb/reverb.so
b5734000-b5738000 r-xp 00000000 08:01 4063239    /usr/local/lib/lunar/fx/synth/synth.so
b5738000-b5739000 r--p 00003000 08:01 4063239    /usr/local/lib/lunar/fx/synth/synth.so
b5739000-b573a000 rw-p 00004000 08:01 4063239    /usr/local/lib/lunar/fx/synth/synth.so
b573a000-b573c000 r-xp 00000000 08:01 4112388    /usr/local/lib/lunar/fx/transpose/transpose.so
b573c000-b573d000 r--p 00001000 08:01 4112388    /usr/local/lib/lunar/fx/transpose/transpose.so
b573d000-b573e000 rw-p 00002000 08:01 4112388    /usr/local/lib/lunar/fx/transpose/transpose.so
b573e000-b577a000 r-xp 00000000 08:01 3915797    /usr/local/lib/zzub/liblunar.so
b577a000-b577b000 r--p 0003b000 08:01 3915797    /usr/local/lib/zzub/liblunar.so
b577b000-b577c000 rw-p 0003c000 08:01 3915797    /usr/local/lib/zzub/liblunar.so
b577c000-b579a000 r-xp 00000000 08:01 3915796    /usr/local/lib/zzub/libm4wii.so
b579a000-b579b000 r--p 0001e000 08:01 3915796    /usr/local/lib/zzub/libm4wii.so
b579b000-b57c6000 rw-p 0001f000 08:01 3915796    /usr/local/lib/zzub/libm4wii.so
b57c6000-b5a52000 rw-p b57c6000 00:00 0
b5a52000-b5a63000 r-xp 00000000 08:01 3915798    /usr/local/lib/zzub/libmadbrain_4fm2f.so
b5a63000-b5a64000 r--p 00010000 08:01 3915798    /usr/local/lib/zzub/libmadbrain_4fm2f.so
b5a64000-b5a85000 rw-p 00011000 08:01 3915798    /usr/local/lib/zzub/libmadbrain_4fm2f.so
b5a85000-b5a92000 r-xp 00000000 08:01 3915784    /usr/local/lib/zzub/libMadBrains_Dynamite6.so
b5a92000-b5a93000 ---p 0000d000 08:01 3915784    /usr/local/lib/zzub/libMadBrains_Dynamite6.so
b5a93000-b5a94000 r--p 0000d000 08:01 3915784    /usr/local/lib/zzub/libMadBrains_Dynamite6.so
b5a94000-b5a95000 rw-p 0000e000 08:01 3915784    /usr/local/lib/zzub/libMadBrains_Dynamite6.so
b5a95000-b5ab8000 r-xp 000Aborted
djauto23
 
Posts: 6
Joined: Thu Oct 02, 2008 11:31 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby victor on Sat May 16, 2009 3:48 pm

I can't help you with the backtraces, I am quite proficient with python but my c/c++ knowledge is very basic.
However, aldrin runs fine in my Ubuntu 9.04 installation, in a 32-bit machine. I rebuilt packages from gimmeapill repository to install in my machine in 9.04 and aldrin loads fine and plays tunes. I can upload the packages if you want.
btw, gimmeapill: I can also upload the patch to make the Ubuntu 9.04 packages
victor
 
Posts: 12
Joined: Thu May 14, 2009 7:57 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby djauto23 on Sat May 16, 2009 6:15 pm

Yes please! :)
djauto23
 
Posts: 6
Joined: Thu Oct 02, 2008 11:31 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby victor on Sat May 16, 2009 8:35 pm

victor
 
Posts: 12
Joined: Thu May 14, 2009 7:57 am

Re: Trouble running Aldrin on Ubuntu 9.04

Postby djauto23 on Sun May 17, 2009 10:27 am

Thanks a bunch! That worked great!

Funny, though, that the previous attempts didn't work. I tried both compiling it from source, and the binary packages for 8.10 by gimmeapill.
djauto23
 
Posts: 6
Joined: Thu Oct 02, 2008 11:31 am

Next



Return to Aldrin

Who is online

Users browsing this forum: No registered users and 1 guest


cron