We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

How to repair Python3 [answered]

asked 2019-11-29 19:12:26 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2019-11-29 19:14:18 +0200

SebM gravatar image

Hi,

I have a Python3 package conflict problem, can you please help me :

$ $(which python3) -V
/usr/bin/python3: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
$ rpm -qf $(which python3)
Python-3.3.5rc1-1.armv7hl
$ sudo zypper -v install -f Python                        
Verbosity: 1
Non-option program arguments: 'Python' 
Initializing Target
Loading repository data...
Reading installed packages...
Force resolution: No
Forcing installation of 'Python-3.3.5rc1-1.armv7hl' from repository 'openrepos-NielDK'.
Resolving package dependencies...
Force resolution: No

The following package is going to be reinstalled:
  Python  3.3.5rc1-1

1 package to reinstall.
Overall download size: 0 B. Already cached: 13.8 MiB. No additional space will be used or freed after the operation.
Continue? [y/n/...? shows all options] (y): 
committing
In cache python-3.3.5rc1-1.armv7hl.rpm                                                                          (1/1),  13.8 MiB ( 90.3 MiB unpacked)
Checking for file conflicts: .................................................................................................................[error]
Detected 3 file conflicts:

File /usr/bin/pydoc3
  from install of
     Python-3.3.5rc1-1.armv7hl (openrepos-NielDK)
  conflicts with file from package
     python3-base-3.7.2+git8-1.5.4.jolla.armv7hl (@System)

File /usr/bin/python3
  from install of
     Python-3.3.5rc1-1.armv7hl (openrepos-NielDK)
  conflicts with file from package
     python3-base-3.7.2+git8-1.5.4.jolla.armv7hl (@System)

File /usr/bin/pyvenv
  from install of
     Python-3.3.5rc1-1.armv7hl (openrepos-NielDK)
  conflicts with file from package
     python3-base-3.7.2+git8-1.5.4.jolla.armv7hl (@System)

File conflicts happen when two packages attempt to install files with the same name but different contents. If you continue, conflicting files will be replaced losing the previous content.
Continue? [yes/no] (no):
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by olf
close date 2019-11-29 20:42:53.615690

1 Answer

Sort by » oldest newest most voted
2

answered 2019-11-29 19:51:55 +0200

SebM gravatar image

updated 2019-11-29 19:53:03 +0200

I finally removed thePython package from openrepos-NielDK repository because depends on a previous version of the openssl-libs already installed package :

$ $(which python3) -V
/usr/bin/python3: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
$ rpm -qf /usr/lib/libssl.so* | uniq
openssl-libs-1.0.2o+git2-1.4.14.jolla.armv7hl
$ sudo zypper -v remove Python                                
Verbosity: 1
Non-option program arguments: 'Python' 
Initializing Target
Loading repository data...
Reading installed packages...
Force resolution: Yes
Selecting 'Python-3.3.5rc1-1.armv7hl' for removal.
Resolving package dependencies...
Force resolution: Yes

The following package is going to be REMOVED:
  Python  3.3.5rc1-1

1 package to remove.
After the operation, 90.3 MiB will be freed.
Continue? [y/n/...? shows all options] (y): 
committing
(1/1) Removing Python-3.3.5rc1-1.armv7hl .................................................................................................................................[done]
CommitResult  (total 1, done 1, error 0, skipped 0, updateMessages 0)
Checking for running processes using deleted libraries...
There are some running programs that might use files deleted by recent upgrade. You may wish to check and restart some of them. Run 'zypper ps -s' to list these programs.

Then I've reinstalled the python3-base package :

$ sudo zypper -v install -f python3-base                        
Verbosity: 1
Non-option program arguments: 'python3-base' 
Initializing Target
Loading repository data...
Reading installed packages...
Force resolution: No
Forcing installation of 'python3-base-3.7.2+git8-1.5.4.jolla.armv7hl' from repository 'jolla'.
Resolving package dependencies...
Force resolution: No

The following package is going to be reinstalled:
  python3-base  3.7.2+git8-1.5.4.jolla

1 package to reinstall.
Overall download size: 9.0 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/...? shows all options] (y): 
committing
Retrieving package python3-base-3.7.2+git8-1.5.4.jolla.armv7hl                                                                             (1/1),   9.0 MiB ( 38.5 MiB unpacked)
Retrieving: python3-base-3.7.2+git8-1.5.4.jolla.armv7hl.rpm ..................................................................................................[done (2.7 MiB/s)]
Checking for file conflicts: .............................................................................................................................................[done]
(1/1) Installing: python3-base-3.7.2+git8-1.5.4.jolla.armv7hl ............................................................................................................[done]
Additional rpm output:
warning: /var/cache/zypp/packages/jolla/core/armv7hl/python3-base-3.7.2+git8-1.5.4.jolla.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY


CommitResult  (total 1, done 1, error 0, skipped 0, updateMessages 0)
$ $(which python3) -V                                     
Python 3.7.2

Pb. solved.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2019-11-29 19:12:26 +0200

Seen: 303 times

Last updated: Nov 29 '19