[OpenIndiana-discuss] [HEADS UP] Python 2.6 is obsolete

Andreas Wacknitz A.Wacknitz at gmx.de
Sun Oct 9 15:03:45 UTC 2016


Am 09.10.16 um 16:05 schrieb Grüninger, Andreas (LGL Extern):
>> pkg: This is an internal error in pkg(5) version b2f36a5.  Please log a Service Request about this issue including the information above and this message.
> I don't know the proper way to solve the problem but my workaround was to change /usr/lib/python2.7/vendor-packages/pkg/pipeutils.py.
>
> I added to the import section:
> import jsonrpclib.config as rpcconfig
> and changed the offending line 412 (now 413) to:
> rpc.Transport.__init__(self,config=rpcconfig.DEFAULT)
>
> Andreas
Thanks, your patch seems to work.
I still don't know why the original file works on some machines and not 
on others...

Regards
Andreas

> -----Ursprüngliche Nachricht-----
> Von: Predrag Zečević - Technical Support Analyst [mailto:predrag.zecevic at 2e-systems.com]
> Gesendet: Donnerstag, 6. Oktober 2016 10:49
> An: openindiana-discuss at openindiana.org
> Betreff: Re: [OpenIndiana-discuss] [HEADS UP] Python 2.6 is obsolete
>
> On 10/ 5/16 05:54 PM, Alexander Pyhalov wrote:
>> Hi.
>> I'm glad to announce that finally python 2.6 is obsolete. There's no
>> actual packages, depending on python 2.6, left in OpenIndiana /hipster
>> and /hipster-encumbered repositories.
>> When you update your systems, python 2.6 packages will be
>> automatically uninstalled.
> Hi ALP,
>
> I have updated system this morning and still have few of them left:
>
> $ pkg list | grep python | grep 26
> library/python-2/pyyaml-26                        3.11-2016.0.1.0
>       i--
> library/python-2/tkinter-26                       2.6.9-2016.0.0.6
>       i--
> runtime/python-26                                 2.6.9-2016.0.0.6
>       i--
>
>
> Probably because:
>
> $ pfexec pkg uninstall -vn runtime/python-26 library/python-2/pyyaml-26
> library/python-2/tkinter-26
> Linked image publisher check
> Traceback (most recent call last):
>     File "/usr/bin/pkg", line 5444, in handle_errors
>       __ret = func(*args, **kwargs)
>     File "/usr/bin/pkg", line 5430, in main_func
>       pargs=pargs, **opts)
>     File "/usr/bin/pkg", line 2130, in uninstall
>       display_plan_cb=display_plan_cb, logger=logger)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/client_api.py",
> line 1628, in _uninstall
>       display_plan_cb=display_plan_cb, logger=logger)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/client_api.py",
> line 1442, in __api_op
>       logger=logger, **kwargs)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/client_api.py",
> line 1313, in __api_plan
>       display_plan_cb=display_plan_cb)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/client_api.py",
> line 1285, in __api_plan
>       for pd in api_plan_func(**kwargs):
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 1519, in __plan_op
>       self.__plan_common_exception()
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 1427, in __plan_op
>       self.__linked_pubcheck(_op)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 1610, in __linked_pubcheck
>       self._img.linked.api_recurse_pubcheck(self.__progresstracker)
>     File
> "/usr/lib/python2.7/vendor-packages/pkg/client/linkedimage/common.py",
> line 2367, in api_recurse_pubcheck
>       _failfast=False))
>     File
> "/usr/lib/python2.7/vendor-packages/pkg/client/linkedimage/common.py",
> line 2057, in __children_op
>       stage=pkgdefs.API_STAGE_DEFAULT
>     File
> "/usr/lib/python2.7/vendor-packages/pkg/client/linkedimage/common.py",
> line 2159, in __children_op_vec
>       _syncmd_tmp, **kwargs)
>     File
> "/usr/lib/python2.7/vendor-packages/pkg/client/linkedimage/common.py",
> line 3229, in child_op_setup
>       self.__child_setup_pubcheck(_pmd, **kwargs)
>     File
> "/usr/lib/python2.7/vendor-packages/pkg/client/linkedimage/common.py",
> line 3187, in __child_setup_pubcheck
>       pkgdefs.PKG_OP_PUBCHECK)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/pkgremote.py",
> line 408, in setup
>       self.__rpc_server_setup(img_path)
>     File "/usr/lib/python2.7/vendor-packages/pkg/client/pkgremote.py",
> line 163, in __rpc_server_setup
>       rpc_client = pkg.pipeutils.PipedServerProxy(client_cmd_pipe)
>     File "/usr/lib/python2.7/vendor-packages/pkg/pipeutils.py", line 628, in __init__
>       http_enc=http_enc)
>     File "/usr/lib/python2.7/vendor-packages/pkg/pipeutils.py", line 412, in __init__
>       rpc.Transport.__init__(self)
> TypeError: __init__() takes exactly 2 arguments (1 given)
>
>
> pkg: This is an internal error in pkg(5) version b2f36a5.  Please log a Service Request about this issue including the information above and this message.
>
>
> I have tried all possible combination of 3 mentioned packages, and error is always same.
>
> Any idea?
>
> With best regards.
> Predrag Zečević
> --
> Predrag Zečević
> Technical Support Analyst
> 2e Systems GmbH
>
> Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
> Mobile:    +49  174 3109 288,     Skype: predrag.zecevic
> E-mail:    predrag.zecevic at 2e-systems.com
>
> Headquarter:          2e Systems GmbH, Königsteiner Str. 87,
>                         65812 Bad Soden am Taunus, Germany Company registration: Amtsgericht Königstein (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




More information about the openindiana-discuss mailing list