Giter Club home page Giter Club logo

dumpmyrepos's People

Contributors

kernelfolla avatar rabbagliettiandrea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dumpmyrepos's Issues

cPickle.PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed

I type dumpmyrepos --config=config.yml --dry-run in my console

It give me such output

Traceback (most recent call last):
  File "/home/melihovv/.local/bin/dumpmyrepos", line 11, in <module>
    load_entry_point('dumpmyrepos==0.1', 'console_scripts', 'dumpmyrepos')()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/cli.py", line 42, in main
    conf.dump_all()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 36, in dump_all
    repositories = self.get_repositories()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 23, in get_repositories
    res = pool.map_async(lambda x: x.get_repositories(), accounts).get(999999)
  File "/home/melihovv/.local/lib/python2.7/site-packages/multiprocess/pool.py", line 567, in get
    raise self._value
cPickle.PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed

After I change config.py how it said in this answer

add function work:

def work(x):
    return x.get_repositories()

and change this line

res = pool.map_async(lambda x: x.get_repositories(), accounts).get(999999)

to this

res = pool.map_async(work, accounts).get(999999)

it outputs me the following errors:

Traceback (most recent call last):
  File "/home/melihovv/.local/bin/dumpmyrepos", line 11, in <module>
    load_entry_point('dumpmyrepos==0.1', 'console_scripts', 'dumpmyrepos')()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/cli.py", line 42, in main
    conf.dump_all()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 39, in dump_all
    repositories = self.get_repositories()
  File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 26, in get_repositories
    res = pool.map_async(work, accounts).get(999999)
  File "/home/melihovv/.local/lib/python2.7/site-packages/multiprocess/pool.py", line 567, in get
    raise self._value
multiprocess.pool.MaybeEncodingError: Error sending result: '[[<dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9be5df38>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9be5dfc8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e70e0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e7200>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e72d8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e7368>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e73f8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e7488>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e7518>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5e75f0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9becfc20>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9be5d248>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8998>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c89e0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8a70>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8b00>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8b90>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8c20>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8cb0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c8d88>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c5cb0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c5c68>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b5c83b0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4de878>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4de908>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4de9e0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4deab8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4deb90>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4dec20>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4decb0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4de7e8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b437050>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4370e0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4371b8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b437290>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4373b0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b437440>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4374d0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b437560>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b4375f0>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b47a560>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b47a638>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b47aa70>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b419a28>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b419ab8>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b419b90>, <dumpmyrepos.services.bitbucket.BitbucketRepository instance at 0x7f6d9b419c20>]]'. Reason: 'PicklingError("Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed",)'

Can you help me, please?
Ubuntu 16.04, python 2.7.12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.