Python - not fully installed or removed.

Python and python framework

Moderator: leecollings

Post Reply
alacran
Posts: 12
Joined: Tuesday 04 June 2019 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Python - not fully installed or removed.

Post by alacran »

Hello,

I am totaly lost.
I try to update Python with this tutorial: https://www.cachem.fr/domoticz-informat ... -synology/

Code: Select all

sudo apt–get install python3.4 libpython3.4 python3.4–dev 
sudo update-alternatives –install /usr/bin/python python3 /usr/bin/python3.4 2
python -V.
But now, there is a lot of issues...
I wanted to install some package, like "speedtest-cli" and I got in return these type of errors:
pi@Domoticz:~/domoticz/scripts/Perso $ sudo apt-get install speedtest-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-pkg-resources
Suggested packages:
python-setuptools
The following NEW packages will be installed:
python-pkg-resources speedtest-cli
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/185 kB of archives.
After this operation, 638 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package python-pkg-resources.
(Reading database ... 37528 files and directories currently installed.)
Preparing to unpack .../python-pkg-resources_33.1.1-1_all.deb ...
Unpacking python-pkg-resources (33.1.1-1) ...
Selecting previously unselected package speedtest-cli.
Preparing to unpack .../speedtest-cli_1.0.0-1_all.deb ...
Unpacking speedtest-cli (1.0.0-1) ...
Setting up python-pkg-resources (33.1.1-1) ...
/var/lib/dpkg/info/python-pkg-resources.postinst: 6: /var/lib/dpkg/info/python-pkg-resources.postinst: pycompile: not found
dpkg: error processing package python-pkg-resources (--configure):
subprocess installed post-installation script returned error exit status 127
Processing triggers for man-db (2.7.6.1-2) ...
dpkg: dependency problems prevent configuration of speedtest-cli:
speedtest-cli depends on python-pkg-resources; however:
Package python-pkg-resources is not configured yet.

dpkg: error processing package speedtest-cli (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pkg-resources
speedtest-cli
E: Sub-process /usr/bin/dpkg returned an error code (1)
Whatever I try to install wich depends on python, I have the same error.
I tried to install python-pkg-resources, the same...
I tried to remove python3.4 and its dependencies...

Now, I am not able to execute Python script anymore...
But when I try

Code: Select all

sudo apt-get install python
Python is already install (2.7.13-2)
but I can not execute python -V command...

Please !!!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest