• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

oi151a pkg command results in python errors.

spankit

Limp Gawd
Joined
Oct 18, 2010
Messages
262
Alright so I went to update some packages today and realized that the pkg manager seems to be failing to do anything. Here is the output. I have tried all kinds of different things (pkg install appname) and they all result in the same output.

Code:
admin@simpav2:~# pkg update transmission
Traceback (most recent call last):
  File "/usr/bin/pkg", line 4225, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 4204, in main_func
    return func(img, pargs)
  File "/usr/bin/pkg", line 1549, in update
    verbose)
  File "/usr/bin/pkg", line 1537, in update
    new_be=new_be, update_index=update_index)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 533, in plan_update
    Exception])
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 508, in plan_update
    self.__refresh_publishers()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 265, in __refresh_publishers
    progtrack=self.__progresstracker)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 2018, in refresh_publishers
    immediate=immediate):
  File "/usr/lib/python2.6/vendor-packages/pkg/client/publisher.py", line 1553, in refresh
    return self.__refresh(True, True)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/publisher.py", line 1495, in __refresh
    immediate, mismatched)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/publisher.py", line 1404, in __refresh_v1
    revalidate=revalidate)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/transport/transport.py", line 399, in wrapper
    return f(instance, *fargs, **f_kwargs)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/transport/transport.py", line 775, in get_catalog1
    revalidate=revalidate)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/transport/repo.py", line 469, in get_catalog1
    self._engine.run()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/transport/engine.py", line 593, in run
    self.__setup_handle(eh, t)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/transport/engine.py", line 794, in __setup_handle
    hdl.setopt(pycurl.URL, treq.url)
TypeError: invalid arguments to setopt


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is '1d7f906c77c1'.

Any ideas?
 
Have you recently updated or changed python versions? Yum on Centos gives these types of errors if the wrong python package is used with it.
 
I haven't used this command in a long time and have tinkered quite a bit with the server. I must have f'ed it up with my messing around.
 
Back
Top