Install PyCrypto in openSUSE 11.4

I had a minimal install of openSUSE 11.4 and wanted to install the python-crypto package in it, related to my “AES Encryption with Python” blog post. But I received a strange error.

Problem: python-crypto-2.3-3.1.x86_64 requires python(abi) = 2.7, but this requirement cannot be provided
  uninstallable providers: python-base-2.7-8.10.2.i586[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.10.2.x86_64[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.4.i586[repo-oss]
                   python-base-2.7-8.4.x86_64[repo-oss]
 Solution 1: deinstallation of patterns-openSUSE-minimal_base-11.4-6.9.1.x86_64
 Solution 2: do not install python-crypto-2.3-3.1.x86_64
 Solution 3: do not install python-crypto-2.3-3.1.x86_64
 Solution 4: break python-crypto by ignoring some of its dependencies

I tried to check what is it with the patterns-openSUSE-minimal_base package that conflicts with python-crypto.

chinstrap:~ # zypper info patterns-openSUSE-minimal_base
Loading repository data...
Reading installed packages...


Information for package patterns-openSUSE-minimal_base:

Repository: @System
Name: patterns-openSUSE-minimal_base
Version: 11.4-6.9.1
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 1.0 KiB
Summary: Meta package for pattern minimal_base
Description:
This package is installed if a pattern is selected to have a working update path

But this was of no help to me. I tried to take a risk and remove this package. Choosing this route made it possible to install python-crypto but I still have no clue what repercussions there are after removing patterns-openSUSE-minimal_base. Following is the process I went through to install python-crypto.


codeghar@chinstrap:~> su -
Password:
chinstrap:~ # zypper install python-crypto
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: python-crypto-2.3-3.1.x86_64 requires python(abi) = 2.7, but this requirement cannot be provided
  uninstallable providers: python-base-2.7-8.10.2.i586[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.10.2.x86_64[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.4.i586[repo-oss]
                   python-base-2.7-8.4.x86_64[repo-oss]
 Solution 1: deinstallation of patterns-openSUSE-minimal_base-11.4-6.9.1.x86_64
 Solution 2: do not install python-crypto-2.3-3.1.x86_64
 Solution 3: do not install python-crypto-2.3-3.1.x86_64
 Solution 4: break python-crypto by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

The following NEW packages are going to be installed:
  python python-base python-crypto

The following package is going to be REMOVED:
  patterns-openSUSE-minimal_base

3 new packages to install, 1 to remove.
Overall download size: 4.3 MiB. After the operation, additional 23.3 MiB will be used.
Continue? [y/n/?] (y): n
chinstrap:~ # zypper info patterns-openSUSE-minimal_base
Loading repository data...
Reading installed packages...


Information for package patterns-openSUSE-minimal_base:

Repository: @System
Name: patterns-openSUSE-minimal_base
Version: 11.4-6.9.1
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 1.0 KiB
Summary: Meta package for pattern minimal_base
Description:
This package is installed if a pattern is selected to have a working update path
chinstrap:~ # zypper install python-crypto
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: python-crypto-2.3-3.1.x86_64 requires python(abi) = 2.7, but this requirement cannot be provided
  uninstallable providers: python-base-2.7-8.10.2.i586[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.10.2.x86_64[Updates-for-openSUSE-11.4-11.4-0]
                   python-base-2.7-8.4.i586[repo-oss]
                   python-base-2.7-8.4.x86_64[repo-oss]
 Solution 1: deinstallation of patterns-openSUSE-minimal_base-11.4-6.9.1.x86_64
 Solution 2: do not install python-crypto-2.3-3.1.x86_64
 Solution 3: do not install python-crypto-2.3-3.1.x86_64
 Solution 4: break python-crypto by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

The following NEW packages are going to be installed:
  python python-base python-crypto

The following package is going to be REMOVED:
  patterns-openSUSE-minimal_base

3 new packages to install, 1 to remove.
Overall download size: 4.3 MiB. After the operation, additional 23.3 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package python-base-2.7-8.10.2.x86_64 (1/3), 3.8 MiB (20.6 MiB unpacked)
Retrieving: python-base-2.7-8.10.2.x86_64.rpm [done (772.4 KiB/s)]
Retrieving package python-2.7-9.10.2.x86_64 (2/3), 270.0 KiB (1.3 MiB unpacked)
Retrieving: python-2.7-9.10.2.x86_64.rpm [done (119.6 KiB/s)]
Retrieving package python-crypto-2.3-3.1.x86_64 (3/3), 279.0 KiB (1.5 MiB unpacked)
Retrieving: python-crypto-2.3-3.1.x86_64.rpm [done (119.3 KiB/s)]
Removing patterns-openSUSE-minimal_base-11.4-6.9.1 [done]
Installing: python-base-2.7-8.10.2 [done]
Installing: python-2.7-9.10.2 [done]
Installing: python-crypto-2.3-3.1 [done]

Other Resources

Some other pages that may help you are: pacemaker or python dependency problem with minimal opensuse 11.4; Bug 691055 – patterns-openSUSE-minimal_base excludes python – unresolvable conflicts; Python Development Pattern in openSUSE 11.4

Advertisements

Comments are closed.

%d bloggers like this: