The officially official Devuan Forum!

You are not logged in.

#1 2019-03-25 00:52:01

duck
Member
Registered: 2019-03-20
Posts: 9  

Raspberry Pi 3 > Beowulf > Python issues.

Raspberry Pi 3 install successful and fine.
Upgrade to Beowulf had no issues.

I go to install byobu and run into this issue.

root@devuan:~# apt install byobu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libevent-2.0-5 libperl5.24 rename tcpd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gawk gettext-base libmpdec2 libmpfr6 libpython3-stdlib libpython3.7-minimal libpython3.7-stdlib libsigsegv2 pastebinit python python-newt python2 python3 python3-minimal python3.7 python3.7-minimal
Suggested packages:
  apport ccze gnome-terminal | xterm lsb-release po-debconf ttf-ubuntu-font-family update-notifier-common gawk-doc python-doc python-tk python2-doc python3-doc python3-tk python3-venv python3.7-venv
  python3.7-doc binutils binfmt-support
Recommended packages:
  run-one
The following NEW packages will be installed:
  byobu gawk gettext-base libmpdec2 libmpfr6 libpython3-stdlib libpython3.7-minimal libpython3.7-stdlib libsigsegv2 pastebinit python python-newt python2 python3 python3-minimal python3.7 python3.7-minimal
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/6,008 kB of archives.
After this operation, 28.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]  
Preconfiguring packages ...
Setting up python2.7-minimal (2.7.16~rc1-1) ...
Traceback (most recent call last):
  File "/usr/lib/python2.7/py_compile.py", line 9, in <module>
    import os
  File "/usr/lib/python2.7/os.py", line 49, in <module>
    import posixpath as path
  File "/usr/lib/python2.7/posixpath.py", line 15, in <module>
    import stat
ImportError: No module named stat
dpkg: error processing package python2.7-minimal (--configure):
 installed python2.7-minimal package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python2-minimal:
 python2-minimal depends on python2.7-minimal (>= 2.7.15-1~); however:
  Package python2.7-minimal is not configured yet.

dpkg: error processing package python2-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python2.7-minimal
 python2-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

Last edited by duck (2019-03-25 00:52:40)

Offline

#2 2019-03-25 19:03:14

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Raspberry Pi 3 > Beowulf > Python issues.

Works for me:

empty@thanatos:~ $ sudo apt install byobu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpython-stdlib libpython2-stdlib pastebinit python python-minimal python-newt python2 python2-minimal python2.7 python2.7-minimal screen
Suggested packages:
  apport ccze po-debconf ttf-ubuntu-font-family update-notifier-common python-doc python-tk python2-doc python2.7-doc binfmt-support
Recommended packages:
  run-one
The following NEW packages will be installed:
  byobu libpython-stdlib libpython2-stdlib pastebinit python python-minimal python-newt python2 python2-minimal python2.7 python2.7-minimal screen
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 864 kB/2,706 kB of archives.
After this operation, 6,813 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.devuan.org/merged beowulf/main amd64 python-newt amd64 0.52.20-8 [42.6 kB]
Get:2 http://deb.devuan.org/merged beowulf/main amd64 screen amd64 4.6.2-3 [603 kB]
Get:3 http://deb.devuan.org/merged beowulf/main amd64 byobu all 5.112-1.1 [175 kB]
Get:4 http://deb.devuan.org/merged beowulf/main amd64 pastebinit all 1.5-2 [43.6 kB]
Fetched 864 kB in 1s (1,235 kB/s)
Preconfiguring packages ...
Selecting previously unselected package python2.7-minimal.
(Reading database ... 113631 files and directories currently installed.)
Preparing to unpack .../0-python2.7-minimal_2.7.16~rc1-1_amd64.deb ...
Unpacking python2.7-minimal (2.7.16~rc1-1) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../1-python2-minimal_2.7.15-4_amd64.deb ...
Unpacking python2-minimal (2.7.15-4) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../2-python-minimal_2.7.15-4_amd64.deb ...
Unpacking python-minimal (2.7.15-4) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../3-python2.7_2.7.16~rc1-1_amd64.deb ...
Unpacking python2.7 (2.7.16~rc1-1) ...
Selecting previously unselected package libpython2-stdlib:amd64.
Preparing to unpack .../4-libpython2-stdlib_2.7.15-4_amd64.deb ...
Unpacking libpython2-stdlib:amd64 (2.7.15-4) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../5-libpython-stdlib_2.7.15-4_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.15-4) ...
Setting up python2.7-minimal (2.7.16~rc1-1) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2-minimal (2.7.15-4) ...
Selecting previously unselected package python2.
(Reading database ... 113697 files and directories currently installed.)
Preparing to unpack .../python2_2.7.15-4_amd64.deb ...
Unpacking python2 (2.7.15-4) ...
Setting up python-minimal (2.7.15-4) ...
Selecting previously unselected package python.
(Reading database ... 113726 files and directories currently installed.)
Preparing to unpack .../python_2.7.15-4_amd64.deb ...
Unpacking python (2.7.15-4) ...
Selecting previously unselected package python-newt:amd64.
Preparing to unpack .../python-newt_0.52.20-8_amd64.deb ...
Unpacking python-newt:amd64 (0.52.20-8) ...
Selecting previously unselected package screen.
Preparing to unpack .../screen_4.6.2-3_amd64.deb ...
Unpacking screen (4.6.2-3) ...
Selecting previously unselected package byobu.
Preparing to unpack .../byobu_5.112-1.1_all.deb ...
Unpacking byobu (5.112-1.1) ...
Selecting previously unselected package pastebinit.
Preparing to unpack .../pastebinit_1.5-2_all.deb ...
Unpacking pastebinit (1.5-2) ...
Setting up python2.7 (2.7.16~rc1-1) ...
Setting up libpython2-stdlib:amd64 (2.7.15-4) ...
Setting up pastebinit (1.5-2) ...
Setting up screen (4.6.2-3) ...
Setting up python2 (2.7.15-4) ...
Setting up libpython-stdlib:amd64 (2.7.15-4) ...
Setting up python (2.7.15-4) ...
Setting up python-newt:amd64 (0.52.20-8) ...
Setting up byobu (5.112-1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for mime-support (3.62) ...
empty@thanatos:~ $

Are your python versions linked correctly?

Here are mine for reference:

empty@thanatos:~ $ ls -l /usr/bin/python{,2,3}
lrwxrwxrwx 1 root root 7 Jan 18 10:56 /usr/bin/python -> python2
lrwxrwxrwx 1 root root 9 Jan 18 10:56 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 9 Jan 18 07:54 /usr/bin/python3 -> python3.7
empty@thanatos:~ $

Otherwise perhaps try re-installing the python packages:

# apt reinstall $(dpkg -l|awk '/^i/&&/python/{print $2}')

Brianna Ghey — Rest In Power

Offline

#3 2019-03-26 03:46:04

duck
Member
Registered: 2019-03-20
Posts: 9  

Re: Raspberry Pi 3 > Beowulf > Python issues.

Not sure, it's not on right now. I'll do a fresh base install tomorrow and get back to you.

Offline

#4 2019-03-26 18:10:42

duck
Member
Registered: 2019-03-20
Posts: 9  

Re: Raspberry Pi 3 > Beowulf > Python issues.

Did a fresh install today.

When it came to installing byobu, I installed all python3 related packages pulled in by byobu first, then I installed byobu and had no issues.

Note, this is for the arm64 Beowulf Raspberry Pi version.

My i386 Beowulf version had no issues installing byobu and pulling depends.

Could be user error, or some bug in how the packages are pulled in and configured... but it works now.

Last edited by duck (2019-03-26 18:11:38)

Offline

Board footer