AttributeError: 'module' object has no attribute 'pack'

Discussion in 'Python' started by Sampsa Riikonen, Sep 10, 2009.

  1. Dear List,

    I have a freshly installed opensuse 11.2 and I am experiencing the following
    problem with the module "subprocess":

    sampsa@linux-912g:~> python
    Python 2.6 (r26:66714, Feb 3 2009, 20:52:03)
    [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
    Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.6/", line 404, in <module>
    import pickle
    File "/usr/lib/python2.6/", line 171, in <module>
    class Pickler:
    File "/usr/lib/python2.6/", line 250, in Pickler
    def put(self, i, pack=struct.pack):
    AttributeError: 'module' object has no attribute 'pack'

    Any ideas how to fix this?

    Kind Regards,

    Sampsa Riikonen, Sep 10, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.