Gautier / bitbucket-sync

bitbucket-sync synchronize locally all the repositories of a bitbucket account
MIT License
12 stars 6 forks source link

parameter --processes fails on TypeError: unsupported operand type(s) #2

Closed vlcinsky closed 10 years ago

vlcinsky commented 10 years ago

With bitbucket-sync==0.2.0

$ bitbucket-sync --directory bb-third --key xxxKEYxxx --secret yyyyySECRETyyy --processes=1
Traceback (most recent call last):
  File "/home/javl/Envs/bitbucket-sync/bin/bitbucket-sync", line 9, in <module>
    load_entry_point('bitbucket-sync==0.2.0', 'console_scripts', 'bitbucket-sync')()
  File "/home/javl/Envs/bitbucket-sync/local/lib/python2.7/site-packages/bitbucket_sync/main.py", line 66, in main
    pool = Pool(processes=processes, initializer=init_worker)
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 232, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 159, in __init__
    self._repopulate_pool()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 213, in _repopulate_pool
    for i in range(self._processes - len(self._pool)):
TypeError: unsupported operand type(s) for -: 'str' and 'int'
Gautier commented 10 years ago

This is fixed in 9275fa9860053b7d15f12d365c5ad605a720ad53

vlcinsky commented 10 years ago

Confirming the issue is resolved (tested in version 0.3.0)