kernelfolla / dumpmyrepos Goto Github PK
View Code? Open in Web Editor NEWThis python script will backup all your git repos using github bitbucket and gitlab api to find them and ssh locally
License: MIT License
This python script will backup all your git repos using github bitbucket and gitlab api to find them and ssh locally
License: MIT License
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
Thanks for publishing this! In case you'd like to make your repo more findable, you could add that topic ;-) Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.