Docker tutorial problem

#1

Hi,

First of all, thanks for crossbar it is really a great piece of software.

It seems that building the docker image as outllined at http://crossbar.io/docs/Installation-on-Docker/ fails:

Downloading/unpacking pynacl>=1.0.1 (from crossbar[all])
Running setup.py (path:/tmp/pip-build-YsRL20/pynacl/setup.py) egg_info for package pynacl

Installed /tmp/pip-build-YsRL20/pynacl/cffi-1.5.2-py2.7-linux-x86_64.egg
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/tmp/pip-build-YsRL20/pynacl/setup.py", line 259, in <module>
    "Programming Language :: Python :: 3.5",
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
ImportError: No module named setuptools_ext
Complete output from command python setup.py egg_info:

Installed /tmp/pip-build-YsRL20/pynacl/cffi-1.5.2-py2.7-linux-x86_64.egg
Traceback (most recent call last):
File “”, line 17, in
File “/tmp/pip-build-YsRL20/pynacl/setup.py”, line 259, in
“Programming Language :: Python :: 3.5”,
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 266, in init
_Distribution.init(self,attrs)
File “/usr/lib/python2.7/distutils/dist.py”, line 287, in init
self.finalize_options()
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 301, in finalize_options
ep.load()(self, ep.name, value)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2190, in load
[‘name’])

ImportError: No module named setuptools_ext

···

Cleaning up…
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-YsRL20/pynacl
Storing debug log for failure in /root/.pip/pip.log
The command ‘/bin/sh -c pip install crossbar[all]’ returned a non-zero code: 1

``

I solved the problem inserting:

RUN pip install --upgrade cffi

``

into the dockerfile before line

RUN pip install crossbar[all]

``

Also, I use windows and the tutorial is for Linux, it would be nice to have windows specific instructions for beginners about getting ip and port to access crossbar demo:

docker-machine ip
docker port $CONTAINERID

``

Best,

Gabor

0 Likes