git-remote-dropbox: Unexpected exception when pushing from windows
Hi, when I try to push to a repo on windows 7 64bits I get this:
unexpected exception (run with -v for details)
Running with -v gives:
Pushing to dropbox:///test
Traceback (most recent call last):
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 124, in _validate_timeout
float(value)
TypeError: float() argument must be a string or a number, not 'Timeout'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "p:\anaconda\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "p:\anaconda\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "P:\Anaconda\Scripts\git-remote-dropbox.exe\__main__.py", line 9, in <module>
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 759, in main
helper.run()
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 370, in run
self._do_list(line)
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 395, in _do_list
refs = self._get_refs(for_push=for_push)
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 652, in _get_refs
res = self._connection().files_list_folder(loc, recursive=True)
File "p:\anaconda\lib\site-packages\dropbox\base.py", line 715, in files_list_folder
None,
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 234, in request
timeout=timeout)
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 325, in request_json_string_with_retry
timeout=timeout)
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 409, in request_json_string
timeout=timeout,
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 565, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 518, in request
resp = self.send(prep, **send_kwargs)
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 639, in send
r = adapter.send(request, **kwargs)
File "p:\anaconda\lib\site-packages\requests\adapters.py", line 438, in send
timeout=timeout
File "p:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 588, in urlopen
timeout_obj = self._get_timeout(timeout)
File "p:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 303, in _get_timeout
return Timeout.from_float(timeout)
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 154, in from_float
return Timeout(read=timeout, connect=timeout)
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 94, in __init__
self._connect = self._validate_timeout(connect, 'connect')
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 127, in _validate_timeout
"int, float or None." % (name, value))
ValueError: Timeout value connect was Timeout(connect=30, read=30, total=None), but it must be an int, float or None.
The only steps that I have taken were installing the program via pip (as in the instructions) and creating a file called .git-remote-dropbox.json
in my home folder (inside my user profile) with the API key, then creating a test repo in my computer (not in dropbox), then running git remote add origin dropbox:///
.
What could I be doing wrong?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (8 by maintainers)
Steps to Reproduce:
I created a new Google Cloud instance running Ubuntu 16.04 LTS.
I then installed the Python 3.6 version of Anaconda:
Then changed my path:
Installed git-remote-dropbox:
Then went to the app console. Selected “Create App” > “Dropbox API” > “Full Dropbox” > Name: “test-new-111” > Choose Dropbox Account: “Personal” (I also have a work Dropbox). Then clicked on “Generate Access Token” and copied and pasted that into
~/.git-remote-dropbox.json
:Then created a test git repo:
And then was unable to push: