[OpenIndiana-discuss] Upgdared OI today - pkg not working

Predrag Zečević - Technical Support Analyst predrag.zecevic at 2e-systems.com
Wed Sep 12 11:55:32 UTC 2018


On 09/12/18 11:45, Alexander Pyhalov via openindiana-discuss wrote:
> Hi.
> 
> It seems you have local version of cryptography installed (likely via pip). Try uninstalling it. IPS should use library/python/cryptography-27 at 2.1.4 .
> 
> С уважением,
> Александр Пыхалов,
> программист отдела телекоммуникационной инфраструктуры
> управления информационно-коммуникационной инфраструктуры ЮФУ
> 
> 
So, I have tried (in old BE, so I need another new BE):

$ pip uninstall cryptography
Uninstalling cryptography-1.5.2:
   /usr/lib/python2.7/site-packages/cryptography-1.5.2-py2.7.egg-info
...
Proceed (y/n)? y
   Successfully uninstalled cryptography-1.5.2

You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$ pfexec pkg fix library/python/cryptography-27
Traceback (most recent call last):
   File "/usr/bin/pkg", line 67, in <module>
     import pkg.actions as actions
   File "/usr/lib/python2.7/vendor-packages/pkg/actions/__init__.py", 
line 68, in <module>
     globals(), locals(), [modname])
   File "/usr/lib/python2.7/vendor-packages/pkg/actions/signature.py", 
line 32, in <module>
     from cryptography.exceptions import InvalidSignature
ImportError: No module named cryptography.exceptions

I have installed it again, since pkg utility fails:
$ pfexec pip install cryptography
Collecting cryptography
   Downloading 
https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar.gz 
(449kB)
     100% |████████████████████████████████| 450kB 2.0MB/s
Requirement already satisfied: idna>=2.1 in 
/usr/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: asn1crypto>=0.21.0 in 
/usr/lib/python2.7/vendor-packages (from cryptography)
Requirement already satisfied: six>=1.4.1 in 
/usr/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: cffi!=1.11.3,>=1.7 in 
/usr/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: enum34 in 
/usr/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: ipaddress in 
/usr/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: pycparser in 
/usr/lib/python2.7/vendor-packages (from cffi!=1.11.3,>=1.7->cryptography)
Installing collected packages: cryptography
   Running setup.py install for cryptography ... done
Successfully installed cryptography-2.3.1
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


And now, this has worked:
$ pfexec pkg fix library/python/cryptography-27

Was that proper procedure?

With best regards
Predrag Zečević

> ________________________________________
> От: Predrag Zečević - Technical Support Analyst <predrag.zecevic at 2e-systems.com>
> Отправлено: 12 сентября 2018 г. 12:33:06
> Кому: Discussion list for OpenIndiana
> Тема: [OpenIndiana-discuss] Upgdared OI today - pkg not working
> 
> Hi all,
> 
> just wanted to test if kvm works, but (after OI upgrade) to
> 
> 
> $ uname -rosv
> SunOS 5.11 illumos-2eeda98682 illumos
> 
> $ pkg list
> Traceback (most recent call last):
>     File "/usr/bin/pkg", line 69, in <module>
>       import pkg.client.api as api
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 76,
> in <module>
>       import pkg.client.image as image
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/image.py", line
> 47, in <module>
>       from cryptography import x509
>     File
> "/usr/lib/python2.7/site-packages/cryptography/x509/__init__.py", line
> 7, in <module>
>       from cryptography.x509.base import (
>     File "/usr/lib/python2.7/site-packages/cryptography/x509/base.py",
> line 15, in <module>
>       from cryptography.x509.extensions import Extension, ExtensionType
>     File
> "/usr/lib/python2.7/site-packages/cryptography/x509/extensions.py", line
> 19, in <module>
>       from cryptography.hazmat.primitives import constant_time, serialization
>     File
> "/usr/lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py",
> line 9, in <module>
>       from cryptography.hazmat.bindings._constant_time import lib
> ImportError: No module named _constant_time
> 
> So, I have booted back to working BE.
> Did I missed something?
> 
> With best regards.
> Predrag Zečević
> --
> Predrag Zečević
> Technical Support Analyst
> 2e Systems GmbH
> 
> tel: +49 - 6196 - 95058 - 15
> mob: +49 - 174 - 3109288
> fax: +49 - 6196 - 95058 - 94
> e-mail: predrag.zecevic at 2e-systems.com
> 
> headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am
> Taunus, Germany
> registration: Amtsgericht Koenigstein (Germany), HRB 7303
> managing director: Phil Douglas
> 
> http://www.2e-systems.com/ - Making your business fly!
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 

-- 
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
e-mail: predrag.zecevic at 2e-systems.com

headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am 
Taunus, Germany
registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas

http://www.2e-systems.com/ - Making your business fly!



More information about the openindiana-discuss mailing list