Bug 1162723 - [abrt] fig: util.py:151:_validate_timeout:ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.
Summary: [abrt] fig: util.py:151:_validate_timeout:ValueError: Timeout value connect w...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fig
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matej Stuchlik
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:4a3c312b56fd604ec75b14ea834...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-11 14:49 UTC by Rahul Sundaram
Modified: 2016-02-01 02:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-02 04:54:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (3.31 KB, text/plain)
2014-11-11 14:49 UTC, Rahul Sundaram
no flags Details
File: dso_list (72 bytes, text/plain)
2014-11-11 14:49 UTC, Rahul Sundaram
no flags Details
File: environ (2.93 KB, text/plain)
2014-11-11 14:49 UTC, Rahul Sundaram
no flags Details

Description Rahul Sundaram 2014-11-11 14:49:09 UTC
Description of problem:
Tried using the example from http://www.fig.sh/

Version-Release number of selected component:
fig-1.0.0-3.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python2 /usr/bin/fig up
executable:     /usr/bin/fig
kernel:         3.17.2-300.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
util.py:151:_validate_timeout:ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.

Traceback (most recent call last):
  File "/usr/bin/fig", line 9, in <module>
    load_entry_point('fig==1.0.0', 'console_scripts', 'fig')()
  File "/usr/lib/python2.7/site-packages/fig/cli/main.py", line 31, in main
    command.sys_dispatch()
  File "/usr/lib/python2.7/site-packages/fig/cli/docopt_command.py", line 21, in sys_dispatch
    self.dispatch(sys.argv[1:], None)
  File "/usr/lib/python2.7/site-packages/fig/cli/command.py", line 28, in dispatch
    super(Command, self).dispatch(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fig/cli/docopt_command.py", line 24, in dispatch
    self.perform_command(*self.parse(argv, global_options))
  File "/usr/lib/python2.7/site-packages/fig/cli/command.py", line 51, in perform_command
    handler(project, command_options)
  File "/usr/lib/python2.7/site-packages/fig/cli/main.py", line 416, in up
    recreate=recreate
  File "/usr/lib/python2.7/site-packages/fig/project.py", line 175, in up
    for (_, container) in service.recreate_containers():
  File "/usr/lib/python2.7/site-packages/fig/service.py", line 192, in recreate_containers
    containers = self.containers(stopped=True)
  File "/usr/lib/python2.7/site-packages/fig/service.py", line 79, in containers
    for container in self.client.containers(all=stopped)
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 493, in containers
    res = self._result(self._get(u, params=params), True)
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 76, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 468, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 327, in send
    timeout=timeout
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 478, in urlopen
    body=body, headers=headers)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 278, in _make_request
    timeout_obj = self._get_timeout(timeout)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 258, in _get_timeout
    return Timeout.from_float(timeout)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util.py", line 178, in from_float
    return Timeout(read=timeout, connect=timeout)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util.py", line 120, in __init__
    self._connect = self._validate_timeout(connect, 'connect')
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util.py", line 151, in _validate_timeout
    "int or float." % (name, value))
ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.

Local variables in innermost frame:
name: 'connect'
value: <urllib3.util.timeout.Timeout object at 0x7ffdb7f34190>
cls: <class 'requests.packages.urllib3.util.Timeout'>

Comment 1 Rahul Sundaram 2014-11-11 14:49:11 UTC
Created attachment 956300 [details]
File: backtrace

Comment 2 Rahul Sundaram 2014-11-11 14:49:13 UTC
Created attachment 956301 [details]
File: dso_list

Comment 3 Rahul Sundaram 2014-11-11 14:49:13 UTC
Created attachment 956302 [details]
File: environ

Comment 4 Fedora End Of Life 2015-11-04 14:54:28 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2015-12-02 04:54:54 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.