Traceback (most recent call last):


 "reproducer.py", line 18, in <module>

t = Test()


 "reproducer.py", line 16, in __init__

at=self.attach(self.containerid, logs=True)


 "/home/jonny/Src/foo/foo/npmvirt/lib/python2.7/site-packages/docker/utils/decorators.py", line 19, in wrapped

return f(self, resource_id, *args, **kwargs)


 "/home/jonny/Src/foo/foo/npmvirt/lib/python2.7/site-packages/docker/api/container.py", line 56, in attach

response, stream, self._check_is_tty(container)


 "/home/jonny/Src/foo/foo/npmvirt/lib/python2.7/site-packages/docker/api/client.py", line 366, in _read_from_socket

socket = self._get_raw_response_socket(response)


 "/home/jonny/Src/foo/foo/npmvirt/lib/python2.7/site-packages/docker/api/client.py", line 278, in _get_raw_response_socket

sock = response.raw._fp.fp._sock
AttributeError: 'NoneType' object has no attribute '_sock'

Traceback (most recent call last):


 "<string>", line 41, in <module>


 "<string>", line 13, in walk_packages


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\pkgutil.py", line 130, in iter_modules

for name, ispkg in iter_importer_modules(i, prefix):


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\pkgutil.py", line 149, in _iter_file_finder_modules

import inspect


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\inspect.py", line 40, in <module>

import linecache


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\linecache.py", line 11, in <module>

import tokenize


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\tokenize.py", line 33, in <module>

import re


 "c:\users\hex\appdata\local\programs\python\python37-32\lib\re.py", line 143, in <module>

class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
