question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'SocketIO' object has no attribute 'raw'

See original GitHub issue

As raised in https://github.com/docker/compose/issues/5353 but I think it’s actually a docker-py issue: docker-composeup redis Creating procensus_redis_1 … Creating procensus_redis_1

ERROR: for procensus_redis_1 ‘SocketIO’ object has no attribute ‘raw’

ERROR: for redis ‘SocketIO’ object has no attribute ‘raw’

Traceback (most recent call last):
  File "/home/graingert/.virtualenvs/gitlab/bin/docker-compose", line 11, in <module>
    sys.exit(main())
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/cli/main.py", line 68, in main
    command()
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/cli/main.py", line 121, in perform_command
    handler(command, command_options)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/cli/main.py", line 952, in up
    start=not no_start
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/project.py", line 455, in up
    get_deps,
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/parallel.py", line 70, in parallel_execute
    raise error_to_reraise
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/parallel.py", line 168, in producer
    result = func(obj)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/project.py", line 441, in do
    start=start
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/service.py", line 471, in execute_convergence_plan
    scale, detached, start
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/service.py", line 396, in _execute_convergence_create
    "Creating",
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/parallel.py", line 70, in parallel_execute
    raise error_to_reraise
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/parallel.py", line 168, in producer
    result = func(obj)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/service.py", line 394, in <lambda>
    lambda n: create_and_start(self, n),
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/service.py", line 387, in create_and_start
    container.attach_log_stream()
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/container.py", line 177, in attach_log_stream
    self.log_stream = self.attach(stdout=True, stderr=True, stream=True)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/compose/container.py", line 254, in attach
    return self.client.attach(self.id, *args, **kwargs)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/docker/api/container.py", line 56, in attach
    response, stream, self._check_is_tty(container)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/docker/api/client.py", line 368, in _read_from_socket
    socket = self._get_raw_response_socket(response)
  File "/home/graingert/.virtualenvs/gitlab/lib/python3.6/site-packages/docker/api/client.py", line 276, in _get_raw_response_socket
    sock = response.raw._fp.fp.raw
AttributeError: 'SocketIO' object has no attribute 'raw'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
shin-commented, Nov 9, 2017

2.6.1 is now on PyPi. Thank you for the detailed reports and sorry about that!

1reaction
RW83commented, Nov 8, 2017

Same error message but on Python 3.4, Ubuntu 14.04, http+docker://localunixsocket here.

ERROR: for <xxx> ‘SocketIO’ object has no attribute ‘raw’ Traceback (most recent call last): File “/usr/local/bin/docker-compose”, line 11, in <module> sys.exit(main()) File “/usr/local/lib/python3.4/dist-packages/compose/cli/main.py”, line 68, in main

Read more comments on GitHub >

github_iconTop Results From Across the Web

flask-socketio has no attribute 'on' - Stack Overflow
I keep getting this error with my code: AttributeError: module 'socketio' has no attribute 'on'. I have uninstalled and reinstalled ...
Read more >
Bug #1853507 “'SocketIO' object has no attribute 'shutdown'”
I am running OpenStack Train release on Ubuntu 18.04 and building zun based off of the stable/train branch.
Read more >
ssl — TLS/SSL wrapper for socket objects — Python 3.11.1 ...
Source code: Lib/ssl.py This module provides access to Transport Layer Security (often known as “Secure Sockets Layer”) encryption and peer authentication ...
Read more >
'NoneType' object has no attribute 'SSLContext' running flask ...
Coding example for the question AttributeError: 'NoneType' object has no attribute 'SSLContext' running flask script in PyCharm 2018.3.7 on Win10.
Read more >
https://raw.githubusercontent.com/Eugeny/ajenti/54...
... to Python < 2.6 if not hasattr(subprocess, 'check_output'): def c_o(*args, ... tbset, tbdel) # fix AttributeError("'Event' object has no attribute ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found