Orange Forum • View topic - new deb files ubuntu 10.04

new deb files ubuntu 10.04

A place to ask questions about methods in Orange and how they are used and other general support.

new deb files ubuntu 10.04

Postby duff » Wed Sep 14, 2011 16:22

Installation hangs with:

/bin/sh: python2.5: not found

orange can subsequently be imported though.

From the blog post I understood that these were now python 2.x agnostic. I have both 2.6 and 2.7 installed.

Anyway this now happens whenever I try to install anything using apt (not just orange). Killing the process is the only way to stop this (and even then I usually need a reboot which only stops that instance of the problem).

How do I get back to a working system?

Thanks / Best

duff

Re: new deb files ubuntu 10.04

Postby Mitar » Sat Sep 17, 2011 0:05

Orange does not support Python 2.5 anymore for some time now. Package is made for 2.6 and 2.7 only. And it should work on systems where you have those Python versions available as packages for dependency resolving.

Can you tell us exactly which filename of our package are you trying to install? So which version (SVN revision). Because python2.5 really should not be called anywhere in the install script.

Can you give us some terminal output?

Re: new deb files ubuntu 10.04

Postby duff » Sat Sep 17, 2011 14:21

Added the ppa as suggested in the blog. Then:

sudo apt-get install orange orange-canvas

The installation stuck / hung (2 hours before I killed the process) with the error reported above (/bin/sh: python2.5: not found).

So that was a couple of days ago. Is there any terminal output you'd like to see that I could gather now?

After trying various clean up strategies (remove, purge etc etc) I have tried re-installing (so I can cleanly remove):

sudo apt-get install python-orange
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
orange-canvas
The following packages will be upgraded:
python-orange
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/18.2MB of archives.
After this operation, 16.4kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
python-orange
Install these packages without verification [y/N]? y
Selecting previously deselected package python-orange.
(Reading database ... 172968 files and directories currently installed.)
Preparing to replace python-orange 0.0.12053~svn-1 (using .../python-orange_0.0.12078~svn-1_amd64.deb) ...
INFO:pyclean:cleaning package python-orange

This hangs at the last point (about an hour so far).

Best

duff

Re: new deb files ubuntu 10.04

Postby Mitar » Sat Sep 17, 2011 18:11

I am really sorry but I am unsure what is happening, why would pyclean hang. Or maybe something after it. Can you check ps aux at that time and see what exactly is running in that session? Maybe try to kill only one of the subprocesses and not the main process. And maybe it will continue or at least we will get some feedback where it hangs.

Re: new deb files ubuntu 10.04

Postby duff » Sat Sep 17, 2011 20:58

Ok. ps aux suggested process 2382 was pyclean. I killed that process. Output now is:

INFO:pyclean:cleaning package python-orange
Terminated
dpkg: error processing /var/cache/apt/archives/python-orange_0.0.12078~svn-1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 143


Any use?

Best

Iain

Output from ps aux below:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 23700 1964 ? Ss 13:53 0:00 /sbin/init
root 2 0.0 0.0 0 0 ? S 13:53 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 13:53 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S 13:53 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S 13:53 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S 13:53 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? S 13:53 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S 13:53 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S 13:53 0:00 [events/0]
root 10 0.0 0.0 0 0 ? S 13:53 0:00 [events/1]
root 11 0.0 0.0 0 0 ? S 13:53 0:00 [cpuset]
root 12 0.0 0.0 0 0 ? S 13:53 0:00 [khelper]
root 13 0.0 0.0 0 0 ? S 13:53 0:00 [async/mgr]
root 14 0.0 0.0 0 0 ? S 13:53 0:00 [pm]
root 16 0.0 0.0 0 0 ? S 13:53 0:00 [sync_supers]
root 17 0.0 0.0 0 0 ? S 13:53 0:00 [bdi-default]
root 18 0.0 0.0 0 0 ? S 13:53 0:00 [kintegrityd/0]
root 19 0.0 0.0 0 0 ? S 13:53 0:00 [kintegrityd/1]
root 20 0.0 0.0 0 0 ? S 13:53 0:00 [kblockd/0]
root 21 0.0 0.0 0 0 ? S 13:53 0:00 [kblockd/1]
root 22 0.0 0.0 0 0 ? S 13:53 0:00 [kacpid]
root 23 0.0 0.0 0 0 ? S 13:53 0:00 [kacpi_notify]
root 24 0.0 0.0 0 0 ? S 13:53 0:00 [kacpi_hotplug]
root 25 0.0 0.0 0 0 ? S 13:53 0:00 [ata/0]
root 26 0.0 0.0 0 0 ? S 13:53 0:00 [ata/1]
root 27 0.0 0.0 0 0 ? S 13:53 0:00 [ata_aux]
root 28 0.0 0.0 0 0 ? S 13:53 0:00 [ksuspend_usbd]
root 29 0.0 0.0 0 0 ? S 13:53 0:00 [khubd]
root 30 0.0 0.0 0 0 ? S 13:53 0:00 [kseriod]
root 31 0.0 0.0 0 0 ? S 13:53 0:00 [kmmcd]
root 34 0.0 0.0 0 0 ? S 13:53 0:00 [khungtaskd]
root 35 0.0 0.0 0 0 ? S 13:53 0:00 [kswapd0]
root 36 0.0 0.0 0 0 ? SN 13:53 0:00 [ksmd]
root 37 0.0 0.0 0 0 ? S 13:53 0:00 [aio/0]
root 38 0.0 0.0 0 0 ? S 13:53 0:00 [aio/1]
root 39 0.0 0.0 0 0 ? S 13:53 0:00 [ecryptfs-kthrea]
root 40 0.0 0.0 0 0 ? S 13:53 0:00 [crypto/0]
root 41 0.0 0.0 0 0 ? S 13:53 0:00 [crypto/1]
root 53 0.0 0.0 0 0 ? S 13:53 0:00 [kstriped]
root 54 0.0 0.0 0 0 ? S 13:53 0:00 [kmpathd/0]
root 55 0.0 0.0 0 0 ? S 13:53 0:00 [kmpathd/1]
root 56 0.0 0.0 0 0 ? S 13:53 0:00 [kmpath_handlerd]
root 57 0.0 0.0 0 0 ? S 13:53 0:00 [ksnapd]
root 58 0.0 0.0 0 0 ? S 13:53 0:05 [kondemand/0]
root 59 0.0 0.0 0 0 ? S 13:53 0:04 [kondemand/1]
root 60 0.0 0.0 0 0 ? S 13:53 0:00 [kconservative/0]
root 61 0.0 0.0 0 0 ? S 13:53 0:00 [kconservative/1]
root 275 0.0 0.0 0 0 ? S 13:53 0:00 [scsi_eh_0]
root 276 0.0 0.0 0 0 ? S 13:53 0:00 [khpsbpkt]
root 281 0.0 0.0 0 0 ? S 13:53 0:03 [scsi_eh_1]
root 282 0.0 0.0 0 0 ? S 13:53 0:00 [scsi_eh_2]
root 283 0.0 0.0 0 0 ? S 13:53 0:00 [scsi_eh_3]
root 298 0.0 0.0 0 0 ? S 13:53 0:00 [usbhid_resumer]
root 301 0.0 0.0 0 0 ? S 13:53 0:00 [knodemgrd_0]
root 313 0.0 0.0 0 0 ? S 13:53 0:00 [jbd2/sda1-8]
root 314 0.0 0.0 0 0 ? S 13:53 0:00 [ext4-dio-unwrit]
root 315 0.0 0.0 0 0 ? S 13:53 0:00 [ext4-dio-unwrit]
root 348 0.0 0.0 0 0 ? S 13:53 0:00 [flush-8:0]
root 375 0.0 0.0 17032 980 ? S 13:54 0:00 upstart-udev-bridge --daemon
root 378 0.0 0.0 17476 1348 ? S<s 13:54 0:00 udevd --daemon
root 655 0.0 0.0 0 0 ? S 13:54 0:00 [kpsmoused]
root 659 0.0 0.0 0 0 ? S 13:54 0:00 [sony-laptop]
root 669 0.0 0.0 0 0 ? S 13:54 0:00 [bluetooth]
root 724 0.0 0.0 0 0 ? S 13:54 0:00 [radeon/0]
root 729 0.0 0.0 0 0 ? S 13:54 0:00 [radeon/1]
root 730 0.0 0.0 0 0 ? S 13:54 0:00 [ttm_swap]
root 770 0.0 0.0 0 0 ? S 13:54 0:03 [iwlagn]
root 777 0.0 0.0 0 0 ? S 13:54 0:02 [phy0]
root 808 0.0 0.0 0 0 ? S 13:54 0:00 [hd-audio0]
root 849 0.0 0.0 0 0 ? S 13:54 0:00 [hd-audio1]
syslog 892 0.0 0.0 126712 2276 ? Sl 13:54 0:00 rsyslogd -c4
102 899 0.0 0.0 24376 1868 ? Ss 13:54 0:03 dbus-daemon --system --fork
root 917 0.0 0.0 76616 3488 ? Ssl 13:54 0:00 gdm-binary
root 918 0.0 0.1 95116 5356 ? Ssl 13:54 0:03 NetworkManager
avahi 923 0.0 0.0 34052 1680 ? S 13:54 0:00 avahi-daemon: running [iain-laptop.local]
avahi 931 0.0 0.0 33928 576 ? Ss 13:54 0:00 avahi-daemon: chroot helper
root 932 0.0 0.0 57868 2532 ? S 13:54 0:00 /usr/sbin/modem-manager
root 936 0.0 0.0 122608 3772 ? Sl 13:54 0:00 /usr/sbin/console-kit-daemon --no-daemon
root 941 0.0 0.0 17480 1324 ? S< 13:54 0:00 udevd --daemon
root 946 0.0 0.0 17480 1232 ? S< 13:54 0:00 udevd --daemon
root 1017 0.0 0.1 93524 4260 ? Sl 13:54 0:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
root 1048 0.0 0.0 6080 644 tty4 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty4
root 1055 0.0 0.0 6080 644 tty5 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty5
root 1059 0.0 0.0 28360 2796 ? S 13:54 0:00 /sbin/wpa_supplicant -u -s
root 1063 0.0 0.0 6080 648 tty2 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty2
root 1064 0.0 0.0 6080 648 tty3 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty3
root 1069 0.0 0.0 6080 648 tty6 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty6
root 1076 0.0 0.0 4428 1120 ? Ss 13:54 0:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
root 1094 0.0 0.0 27356 1976 ? S<s 13:54 0:00 /usr/sbin/bluetoothd --udev
root 1105 0.0 0.0 21076 1020 ? Ss 13:54 0:00 cron
daemon 1106 0.0 0.0 18884 464 ? Ss 13:54 0:00 atd
root 1114 1.5 0.8 130068 35764 tty7 Rs+ 13:54 6:19 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-Az9aQ7/database -nolisten tcp vt7
root 1142 0.0 0.0 75308 2876 ? Ss 13:54 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
root 1145 0.0 0.0 0 0 ? S< 13:54 0:00 [krfcommd]
root 1251 0.0 0.0 6080 644 tty1 Ss+ 13:54 0:00 /sbin/getty -8 38400 tty1
gdm 1269 0.0 0.0 26260 820 ? S 13:54 0:00 /usr/bin/dbus-launch --exit-with-session
root 1284 0.0 0.0 97344 3448 ? Sl 13:54 0:00 /usr/lib/gdm/gdm-session-worker
root 1290 0.0 0.0 53808 3388 ? S 13:54 0:00 /usr/lib/upower/upowerd
rtkit 1292 0.0 0.0 43640 1284 ? SNl 13:54 0:00 /usr/lib/rtkit/rtkit-daemon
root 1296 0.0 0.1 54108 4192 ? S 13:54 0:00 /usr/lib/policykit-1/polkitd
108 1337 0.0 0.1 46892 5172 ? Ssl 13:54 0:01 /usr/sbin/hald
root 1339 0.0 0.0 22320 1352 ? S 13:54 0:00 hald-runner
root 1368 0.0 0.0 24440 1304 ? S 13:54 0:00 hald-addon-input: Listening on /dev/input/event7 /dev/input/event3 /dev/input/event8 /dev/input/event1 /dev/input/event5 /dev/input/event6 /dev/input/event0
root 1369 0.0 0.0 24432 1280 ? S 13:54 0:00 /usr/lib/hal/hald-addon-rfkill-killswitch
root 1372 0.0 0.0 24436 1288 ? S 13:54 0:00 /usr/lib/hal/hald-addon-leds
root 1379 0.0 0.0 24432 1312 ? S 13:54 0:00 /usr/lib/hal/hald-addon-generic-backlight
root 1386 0.0 0.0 24436 1312 ? S 13:54 0:02 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 1389 0.0 0.0 24448 1284 ? S 13:54 0:00 /usr/lib/hal/hald-addon-cpufreq
108 1390 0.0 0.0 26272 1256 ? S 13:54 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
iain 1395 0.0 0.0 69780 2920 ? Sl 13:54 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
iain 1413 0.0 0.1 167356 7828 ? Ssl 13:54 0:00 gnome-session
iain 1447 0.0 0.0 11936 412 ? Ss 13:54 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session
iain 1450 0.0 0.0 26260 812 ? S 13:54 0:00 /usr/bin/dbus-launch --exit-with-session gnome-session
iain 1451 0.0 0.0 24224 1672 ? Ss 13:54 0:00 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
iain 1454 0.0 0.1 46048 5592 ? S 13:54 0:02 /usr/lib/libgconf2-4/gconfd-2
iain 1461 0.0 0.2 310900 10764 ? Ss 13:54 0:03 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
iain 1463 0.0 0.0 48008 2556 ? S 13:54 0:00 /usr/lib/gvfs/gvfsd
iain 1468 0.0 0.0 78032 2784 ? Ssl 13:54 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/iain/.gvfs
iain 1474 0.0 0.2 201360 11260 ? S 13:54 0:00 bluetooth-applet
iain 1476 0.0 0.1 222284 5224 ? S<sl 13:54 0:13 /usr/bin/pulseaudio --start --log-target=syslog
iain 1478 0.0 0.4 265232 19704 ? S 13:54 0:03 gnome-panel
iain 1479 0.0 0.3 244964 14844 ? SL 13:54 0:02 nm-applet --sm-disable
iain 1481 0.3 0.8 299792 35756 ? S 13:54 1:24 /usr/bin/compiz
iain 1484 0.1 1.4 593732 57192 ? S 13:54 0:44 nautilus
iain 1485 0.0 0.2 176108 8932 ? S 13:54 0:00 gnome-power-manager
iain 1486 0.0 0.1 161920 7060 ? S 13:54 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
iain 1503 0.0 0.0 52480 3300 ? S 13:54 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
iain 1506 0.0 0.0 97624 3508 ? S 13:54 0:00 /usr/lib/pulseaudio/pulse/gconf-helper
iain 1507 0.0 0.1 152844 4160 ? Ssl 13:54 0:00 /usr/lib/bonobo-activation/bonobo-activation-server --ac-activate --ior-output-fd=19
iain 1519 0.0 0.3 259216 15708 ? S 13:54 0:04 /usr/lib/gnome-panel/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=18
iain 1520 0.0 0.3 241036 13128 ? S 13:54 0:00 /usr/lib/gnome-applets/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=24
iain 1522 0.0 0.0 29104 1236 ? S 13:54 0:05 syndaemon -i 0.5 -k
iain 1524 0.0 0.0 63808 3548 ? S 13:54 0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
root 1526 0.0 0.0 57268 3356 ? Sl 13:54 0:00 /usr/lib/udisks/udisks-daemon
root 1527 0.0 0.0 46700 952 ? S 13:54 0:01 udisks-daemon: polling /dev/sr0
iain 1529 0.0 0.0 55300 2676 ? S 13:54 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
iain 1530 0.0 0.0 4096 584 ? Ss 13:54 0:00 /bin/sh -c /usr/bin/compiz-decorator
iain 1532 0.0 0.0 69216 2708 ? Sl 13:54 0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
iain 1533 0.0 0.2 176612 11244 ? S 13:54 0:02 /usr/bin/gtk-window-decorator
iain 1540 0.0 0.3 306712 16020 ? S 13:54 0:01 /usr/lib/gnome-panel/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=28
iain 1542 0.0 0.3 334660 15332 ? S 13:54 0:00 /usr/lib/indicator-applet/indicator-applet-session --oaf-activate-iid=OAFIID:GNOME_FastUserSwitchApplet_Factory --oaf-ior-fd=19
iain 1543 0.0 0.3 336488 14924 ? S 13:54 0:00 /usr/lib/indicator-applet/indicator-applet --oaf-activate-iid=OAFIID:GNOME_IndicatorApplet_Factory --oaf-ior-fd=34
iain 1544 0.0 0.2 208276 10540 ? S 13:54 0:00 /usr/lib/gnome-panel/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=40
iain 1548 0.0 0.0 42120 2628 ? S 13:54 0:00 /usr/lib/gvfs/gvfsd-metadata
iain 1549 0.0 0.1 143860 5676 ? S 13:54 0:00 /usr/lib/indicator-me/indicator-me-service
iain 1553 0.0 0.1 138172 5000 ? S 13:54 0:00 /usr/lib/indicator-messages/indicator-messages-service
iain 1554 0.0 0.1 146916 4892 ? S 13:54 0:00 /usr/lib/indicator-application/indicator-application-service
iain 1557 0.0 0.1 140928 5540 ? S 13:54 0:00 /usr/lib/indicator-session/indicator-session-service
iain 1559 0.0 0.1 220008 5372 ? S 13:54 0:00 /usr/lib/indicator-sound/indicator-sound-service
iain 1563 0.0 0.0 47880 2620 ? S 13:54 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
iain 1573 0.0 0.1 171676 6292 ? Ss 13:54 0:01 gnome-screensaver
iain 1575 0.0 0.5 220324 21532 ? Sl 13:54 0:17 gnome-terminal
iain 1576 0.0 0.0 14488 812 ? S 13:54 0:00 gnome-pty-helper
iain 1577 0.0 0.0 21196 3996 pts/0 Ss 13:54 0:00 bash
iain 1598 0.0 0.2 176576 8092 ? S 13:54 0:00 /usr/lib/gnome-disk-utility/gdu-notification-daemon
root 1600 0.0 0.0 6556 1124 ? S 13:54 0:00 /sbin/dhclient -d -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-wlan0.pid -lf /var/lib/dhcp3/dhclient-fe3c53de-b714-4906-a386-b73af53b40fe-wlan0.lease -cf /var/run/nm-dhclient-wlan0.conf wlan0
iain 1607 0.0 0.3 205492 13252 ? S 13:54 0:00 /usr/lib/notify-osd/notify-osd
iain 1653 0.0 0.3 421872 13900 ? Sl 13:54 0:00 /usr/lib/evolution/2.28/evolution-alarm-notify
iain 1654 0.0 0.5 228924 20704 ? S 13:54 0:00 python /usr/share/system-config-printer/applet.py
iain 1659 0.0 0.3 353432 13796 ? Sl 13:54 0:00 /usr/lib/evolution/2.28/evolution-exchange-storage --oaf-activate-iid=OAFIID:GNOME_Evolution_Exchange_Connector_CalFactory:1.2 --oaf-ior-fd=32
iain 1663 0.0 0.2 374360 10540 ? Sl 13:54 0:00 /usr/lib/evolution/evolution-data-server-2.28 --oaf-activate-iid=OAFIID:GNOME_Evolution_DataServer_CalFactory:1.2 --oaf-ior-fd=33
iain 1691 0.0 0.3 205844 13700 ? S 13:55 0:01 update-notifier
root 1697 0.0 0.2 78772 10728 ? S 13:55 0:00 /usr/bin/python /usr/lib/system-service/system-service-d
root 1931 0.0 0.5 50196 22628 pts/0 S+ 14:14 0:01 apt-get install python-orange
root 1942 0.0 1.3 67404 54252 pts/1 Ss+ 14:14 0:00 /usr/bin/dpkg --status-fd 31 --unpack --auto-deconfigure /var/cache/apt/archives/python-orange_0.0.12078~svn-1_amd64.deb
iain 2009 0.0 0.0 62672 3196 ? S 14:29 0:00 /usr/lib/gvfs/gvfsd-computer --spawner :1.6 /org/gtk/gvfs/exec_spaw/2
iain 2174 0.8 5.5 914176 221660 ? Sl 16:16 2:24 /usr/lib/firefox-6.0.2/firefox-bin
iain 2210 2.1 1.0 402276 40832 ? Sl 16:18 5:52 /usr/lib/firefox-6.0.2/plugin-container /usr/lib/mozilla/plugins/libflashplayer.so -greomni /usr/lib/firefox-6.0.2/omni.jar 2174 true plugin
iain 2300 0.0 0.0 21196 3996 pts/2 Ss 20:46 0:00 bash
iain 2316 0.4 0.0 19224 1460 pts/2 S+ 20:46 0:02 top
iain 2317 0.0 0.0 21200 4004 pts/3 Ss 20:46 0:00 bash
iain 2348 0.7 0.5 339376 22996 ? S 20:47 0:02 gedit /home/iain/aux.txt
root 2380 0.0 0.0 4096 592 pts/1 S+ 20:53 0:00 /bin/sh /var/lib/dpkg/tmp.ci/prerm failed-upgrade 0.0.12053~svn-1
root 2382 0.2 0.1 27032 6156 pts/1 S+ 20:53 0:00 /usr/bin/python /usr/bin/pyclean -p python-orange
root 2383 0.0 0.0 4096 580 pts/1 S+ 20:53 0:00 /bin/sh -c /usr/bin/dpkg -L python-orange
root 2384 0.3 0.1 12232 7600 pts/1 S+ 20:53 0:00 dpkg-query --listfiles -- python-orange
iain 2385 0.0 0.0 15256 1216 pts/3 R+ 20:53 0:00 ps aux

Re: new deb files ubuntu 10.04

Postby Mitar » Sat Sep 17, 2011 21:16

I think everything hangs at "dpkg-query --listfiles -- python-orange". You see that this is the last process. Try running this directly and see what happens.

Re: new deb files ubuntu 10.04

Postby duff » Sat Sep 17, 2011 21:56

dpkg-query --listfiles -- python-orange

Lists the files as expected. I would list them but too many words I think - won't let me post.

Best

duff

Re: new deb files ubuntu 10.04

Postby Mitar » Sat Sep 17, 2011 22:02

Hm. What if you would manually delete all files belonging to python-orange? Probably things cannot be more broken that they are already. ;-)

Re: new deb files ubuntu 10.04

Postby duff » Sat Sep 17, 2011 22:40

Yes. I have tried that. The problem is it leaves the dpkg database in a broken state.

sudo dpkg --configure -a

dpkg: error processing python-orange (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
python-orange

Basically it continually tries to re-install orange. Bummer.

Thanks for the help but I'll do a re-install of the system to repair dpkg. Looking around the net once the system's stuffed it's stuffed.

Hey ho.

best

d

Re: new deb files ubuntu 10.04

Postby Mitar » Sat Sep 17, 2011 23:02

No, but from message few posts above it knows how to upgrade package - it first tries to remove previous one. So I would try to remove everything by hand and then try to upgrade it.

I am sorry that our package got you in such mess.

Re: new deb files ubuntu 10.04

Postby duff » Sun Sep 18, 2011 9:01

Hi Mitar

A new day!

So I manually deleted all the python-orange files I could find (by e.g. dpkg -L python-orange) and then tried a reinstall.

Process hangs at

INFO:pyclean:cleaning package python-orange

So killing the relevant processes gives me:

ERROR:pyclean:cannot get content of python-orange
dpkg: warning: old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
INFO:pyclean:cleaning package python-orange
ERROR:pyclean:cannot get content of python-orange

So there seems to be some screw up between where pyclean thinks python-orange is and where is actually is!

I've done a bit of reading about deb files as well. So basically I'm going to try the full, manual deletion and reinstallation again later today.

If you've any other suggestions that would be good (e.g. do I need the pyclean process or could I comment that out of the prerm file). I'll let you know how it goes.

Best

duff

Re: new deb files ubuntu 10.04

Postby Mitar » Sun Sep 18, 2011 9:43

Yes, maybe comment pyclean out (it just deletes .pyc files, as I understand, so that directories are empty, so that they can be deleted). Or maybe just put some dummy pyclean in your path before the original one (like symlink to "true" program).

Re: new deb files ubuntu 10.04

Postby duff » Mon Sep 19, 2011 11:12

Hi again Mitar etc

So i have manually deleted all the python-orange files and run:

Code: Select all
sudo apt-get install python-orange


The processes running from this point on are shown below:

root 3303 0.1 0.2 17568 11920 pts/2 Ss+ 10:23 0:00 /usr/bin/dpkg --status-fd 31 --configure python-orange
root 3304 0.0 0.0 4096 592 pts/2 S+ 10:23 0:00 /bin/sh /var/lib/dpkg/info/python-orange.postinst configure
root 3306 0.0 0.1 27072 6208 pts/2 S+ 10:23 0:00 /usr/bin/python /usr/bin/pycompile -p python-orange
root 3307 0.0 0.0 4096 584 pts/2 S+ 10:23 0:00 /bin/sh -c python2.5 /usr/lib/python2.5/compileall.py -i -
root 3308 0.0 0.0 4096 580 pts/2 S+ 10:23 0:00 /bin/sh -c /usr/bin/dpkg -L python-orange
root 3309 0.0 0.0 16036 3216 pts/2 S+ 10:23 0:00 python2.5 /usr/lib/python2.5/compileall.py -i -
root 3310 0.0 0.1 12236 7616 pts/2 S+ 10:23 0:00 dpkg-query --listfiles -- python-orange

In the first reply to this post you said:

Orange does not support Python 2.5 anymore for some time now. Package is made for 2.6 and 2.7 only. And it should work on systems where you have those Python versions available as packages for dependency resolving.

Can you tell us exactly which filename of our package are you trying to install? So which version (SVN revision). Because python2.5 really should not be called anywhere in the install script.

Can you give us some terminal output?


But as you can see python 2.5 is clearly called somewhere. I only installed python 2.5 to get around the original problem I had (see first post).

Secondly the process hanging is

root 3310 0.0 0.1 12236 7616 pts/2 S+ 10:23 0:00 dpkg-query --listfiles -- python-orange

Now I don't see this in the var/lib/dpkg/info/python-orange.postinst file (which is called above) but it is in the var/lib/dpkg/info/python-orange.prerm file:

Code: Select all
#!/bin/sh
set -e

# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
   pyclean -p python-orange
else
   dpkg -L python-orange | grep \.py$ | while read file
   do
      rm -f "${file}"[co] >/dev/null
     done
fi


So my next question - is this file doing what it's meant to (I'm not good on shell scripting!)? I have pyclean installed:

Code: Select all
whereis pyclean
pyclean: /usr/bin/pyclean


So why is the dpkg -L line being called (if indeed this is where it's happening!)?

I tried commenting this all out, re-zipping the deb and installing but dpkg just complained.

The version currently sitting in /var/cache/apt/archives is python-orange_0.0.12078~svn-1_amd64.deb

best

d

Re: new deb files ubuntu 10.04

Postby duff » Mon Sep 19, 2011 12:20

Ok - some progress.

Looks like this is an Ubuntu 10.04 bug:
https://bugs.launchpad.net/ubuntu/+sour ... bug/648620

So looking at /usr/bin/pycompile I see

Code: Select all
# configuration
SUPPORTED_VERSIONS = [(2, 5), (2, 6), (3, 1)]
DEFAULT_VERSION = (2, 5)


I changed the last line to
Code: Select all
DEFAULT_VERSION = (2, 6)

deleted all the python-orange files and re-ran the install.

BUT that still didn't stop the process hanging with
Code: Select all
dpkg-query --listfiles -- python-orange


So, perhaps it's pyclean and indeed there's another Ubuntu 10.04 bug:

https://bugs.launchpad.net/ubuntu/+sour ... bug/712741

I'm not sure this has a bearing on my problem though.

In any case manual removal of the python-orange files enables me to purge the dpkg system and thus get my install system back to a working state. Which is what I wanted. If I make any further progress with the debs I'll update this post.

Best

d

Re: new deb files ubuntu 10.04

Postby Mitar » Tue Sep 20, 2011 23:25

OK, great that you get your system back! ;-)

My proposal was to not repack the package, but to make a dummy "pyclean" program which will don't do anything and "inject" it in the PATH before the original.

So now you successfully removed Orange packages? What happens on install now? It hangs, if I understand correctly?

But it is strange that it needs Python 2.5 because package requires only 2.6 and above. What happens if you do not have 2.5 installed and try to install the package? Can you find out who is calling "python2.5"?

Next

Return to Questions & Support



cron