crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 274 forks source link

pip issue with installation from pinned requirements #988

Closed FirefighterBlu3 closed 7 years ago

FirefighterBlu3 commented 7 years ago

after doing an install of crossbar 17.2.1 (see issue #987), i'm unable to start crossbar due to the following:

2017-03-14T22:42:12-0400 [Controller   7105] Starting Router with ID 'worker-001'...
2017-03-14T22:42:13-0400 [Router       7111] Traceback (most recent call last):
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
2017-03-14T22:42:13-0400 [Router       7111] mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
2017-03-14T22:42:13-0400 [Router       7111] __import__(pkg_name)
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/site-packages/crossbar-17.2.1-py3.6.egg/crossbar/__init__.py", line 34, in <module>
2017-03-14T22:42:13-0400 [Router       7111] txaio.use_twisted()
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/site-packages/txaio/__init__.py", line 109, in use_twisted
2017-03-14T22:42:13-0400 [Router       7111] from txaio import tx
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/site-packages/txaio/tx.py", line 32, in <module>
2017-03-14T22:42:13-0400 [Router       7111] import inspect
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/inspect.py", line 40, in <module>
2017-03-14T22:42:13-0400 [Router       7111] import linecache
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/linecache.py", line 11, in <module>
2017-03-14T22:42:13-0400 [Router       7111] import tokenize
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/tokenize.py", line 33, in <module>
2017-03-14T22:42:13-0400 [Router       7111] import re
2017-03-14T22:42:13-0400 [Router       7111] File "/usr/lib/python3.6/re.py", line 142, in <module>
2017-03-14T22:42:13-0400 [Router       7111] class RegexFlag(enum.IntFlag):
2017-03-14T22:42:13-0400 [Router       7111] AttributeError: module 'enum' has no attribute 'IntFlag'
2017-03-14T22:42:13-0400 [Controller   7105] Native worker connection closed uncleanly: A process has ended with a probable error condition: process ended with exit code 1.
2017-03-14T22:42:13-0400 [Controller   7105] Failed to start native worker: A process has ended with a probable error condition: process ended with exit code 1.
2017-03-14T22:42:13-0400 [Controller   7105] crossbar.error.cannot_start: Failed to start native worker: A process has ended with a probable error condition: process ended with exit code 1. ['import inspect', 'File "/usr/lib/python3.6/inspect.py", line 40, in <module>', 'import linecache', 'File "/usr/lib/python3.6/linecache.py", line 11, in <module>', 'import tokenize', 'File "/usr/lib/python3.6/tokenize.py", line 33, in <module>', 'import re', 'File "/usr/lib/python3.6/re.py", line 142, in <module>', 'class RegexFlag(enum.IntFlag):', "AttributeError: module 'enum' has no attribute 'IntFlag'"]

which is unusual because the python 3.6 enum class certainly does have an IntFlag attribute.

FirefighterBlu3 commented 7 years ago

continuing trial and elimination yields that the crossbar easy install requirement has the enum34 package listed which conflicts with the native python3.6 enum. after commenting out enum34>=1.16 from the crossbar 17.2.1 requires.txt, crossbar will start up normally.

the enum34 package should only be used in python3.3 and earlier, and python 2.x. it should not be used with python 3.4 or newer as enum is built in.

oberstet commented 7 years ago

Installation from PyPI works as expected on CPython 3.6.0 in a fresh virtualenv:

oberstet@thinkpad-t430s:~$ ./cpy360/bin/virtualenv ~/cpy360_1
Using base prefix '/home/oberstet/cpy360'
New python executable in /home/oberstet/cpy360_1/bin/python3.6
Also creating executable in /home/oberstet/cpy360_1/bin/python
Installing setuptools, pip, wheel...done.
oberstet@thinkpad-t430s:~$ source ~/cpy360_1/bin/activate
(cpy360_1) oberstet@thinkpad-t430s:~$ which pip
/home/oberstet/cpy360_1/bin/pip
(cpy360_1) oberstet@thinkpad-t430s:~$ pip install crossbar
Collecting crossbar
  Downloading crossbar-17.2.1-py2.py3-none-any.whl (455kB)
    100% |████████████████████████████████| 460kB 903kB/s 
Collecting shutilwhich>=1.1.0 (from crossbar)
  Using cached shutilwhich-1.1.0.tar.gz
Collecting setproctitle>=1.1.10 (from crossbar)
  Using cached setproctitle-1.1.10.tar.gz
Collecting Pygments>=2.1.3 (from crossbar)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting watchdog>=0.8.3 (from crossbar)
  Using cached watchdog-0.8.3.tar.gz
Collecting Twisted>=17.1.0 (from crossbar)
  Using cached Twisted-17.1.0.tar.bz2
Collecting zope.interface>=4.3.2 (from crossbar)
  Using cached zope.interface-4.3.3.tar.gz
Collecting constantly>=15.1.0 (from crossbar)
  Using cached constantly-15.1.0-py2.py3-none-any.whl
Collecting click>=6.6 (from crossbar)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting lmdb>=0.89 (from crossbar)
  Using cached lmdb-0.92.tar.gz
Collecting netaddr>=0.7.18 (from crossbar)
  Using cached netaddr-0.7.19-py2.py3-none-any.whl
Collecting sdnotify>=0.3.1 (from crossbar)
  Using cached sdnotify-0.3.1.tar.gz
Collecting ipaddress>=1.0.18 (from crossbar)
  Using cached ipaddress-1.0.18.tar.gz
Collecting PyNaCl>=1.0.1 (from crossbar)
  Downloading PyNaCl-1.1.1.tar.gz (3.1MB)
    100% |████████████████████████████████| 3.1MB 329kB/s 
Collecting pyasn1>=0.1.9 (from crossbar)
  Using cached pyasn1-0.2.3-py2.py3-none-any.whl
Collecting u-msgpack-python>=2.2 (from crossbar)
  Using cached u_msgpack_python-2.3.0-py2.py3-none-any.whl
Collecting cryptography>=1.5.2 (from crossbar)
  Downloading cryptography-1.8.1.tar.gz (423kB)
    100% |████████████████████████████████| 430kB 1.1MB/s 
Collecting bitstring>=3.1.5 (from crossbar)
  Using cached bitstring-3.1.5.zip
Collecting pyasn1-modules>=0.0.8 (from crossbar)
  Using cached pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting treq>=15.1.0 (from crossbar)
  Using cached treq-16.12.0-py2.py3-none-any.whl
Collecting attrs>=16.2.0 (from crossbar)
  Using cached attrs-16.3.0-py2.py3-none-any.whl
Collecting autobahn>=0.17.2 (from crossbar)
  Using cached autobahn-0.17.2-py2.py3-none-any.whl
Collecting enum34>=1.1.6 (from crossbar)
  Using cached enum34-1.1.6-py3-none-any.whl
Collecting service-identity>=16.0.0 (from crossbar)
  Using cached service_identity-16.0.0-py2.py3-none-any.whl
Collecting cbor>=1.0.0 (from crossbar)
  Using cached cbor-1.0.0.tar.gz
Requirement already satisfied: setuptools>=28.3.0 in ./cpy360_1/lib/python3.6/site-packages (from crossbar)
Collecting mistune>=0.7.3 (from crossbar)
  Downloading mistune-0.7.4-py2.py3-none-any.whl
Collecting pyqrcode>=1.2.1 (from crossbar)
  Using cached PyQRCode-1.2.1.zip
Collecting incremental>=16.10.1 (from crossbar)
  Using cached incremental-16.10.1-py2.py3-none-any.whl
Collecting psutil>=4.3.1 (from crossbar)
  Downloading psutil-5.2.0.tar.gz (345kB)
    100% |████████████████████████████████| 348kB 1.1MB/s 
Collecting Jinja2>=2.8 (from crossbar)
  Using cached Jinja2-2.9.5-py2.py3-none-any.whl
Collecting py-ubjson>=0.8.5 (from crossbar)
  Using cached py-ubjson-0.8.5.tar.gz
Collecting PyYAML>=3.12 (from crossbar)
  Using cached PyYAML-3.12.tar.gz
Collecting pyOpenSSL>=16.1.0 (from crossbar)
  Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl
Collecting PyTrie>=0.2 (from crossbar)
  Using cached PyTrie-0.3.tar.gz
Collecting argh>=0.24.1 (from watchdog>=0.8.3->crossbar)
  Using cached argh-0.26.2-py2.py3-none-any.whl
Collecting pathtools>=0.1.1 (from watchdog>=0.8.3->crossbar)
  Using cached pathtools-0.1.2.tar.gz
Collecting Automat>=0.3.0 (from Twisted>=17.1.0->crossbar)
  Using cached Automat-0.5.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./cpy360_1/lib/python3.6/site-packages (from PyNaCl>=1.0.1->crossbar)
Collecting cffi>=1.4.1 (from PyNaCl>=1.0.1->crossbar)
  Downloading cffi-1.9.1-cp36-cp36m-manylinux1_x86_64.whl (398kB)
    100% |████████████████████████████████| 399kB 900kB/s 
Collecting idna>=2.1 (from cryptography>=1.5.2->crossbar)
  Downloading idna-2.5-py2.py3-none-any.whl (55kB)
    100% |████████████████████████████████| 61kB 221kB/s 
Collecting asn1crypto>=0.21.0 (from cryptography>=1.5.2->crossbar)
  Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
    100% |████████████████████████████████| 102kB 1.7MB/s 
Requirement already satisfied: packaging in ./cpy360_1/lib/python3.6/site-packages (from cryptography>=1.5.2->crossbar)
Collecting requests>=2.1.0 (from treq>=15.1.0->crossbar)
  Using cached requests-2.13.0-py2.py3-none-any.whl
Collecting txaio>=2.6.1 (from autobahn>=0.17.2->crossbar)
  Using cached txaio-2.6.1-py2.py3-none-any.whl
Requirement already satisfied: appdirs>=1.4.0 in ./cpy360_1/lib/python3.6/site-packages (from setuptools>=28.3.0->crossbar)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.8->crossbar)
  Using cached MarkupSafe-1.0.tar.gz
Collecting sortedcontainers (from PyTrie>=0.2->crossbar)
  Using cached sortedcontainers-1.5.7-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.4.1->PyNaCl>=1.0.1->crossbar)
Requirement already satisfied: pyparsing in ./cpy360_1/lib/python3.6/site-packages (from packaging->cryptography>=1.5.2->crossbar)
Building wheels for collected packages: shutilwhich, setproctitle, watchdog, Twisted, zope.interface, lmdb, sdnotify, ipaddress, PyNaCl, cryptography, bitstring, cbor, pyqrcode, psutil, py-ubjson, PyYAML, PyTrie, pathtools, MarkupSafe
  Running setup.py bdist_wheel for shutilwhich ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/0e/28/70/d5cc6586f26d614b26901485f6f6072d35cbbb5bbeffb6ea43
  Running setup.py bdist_wheel for setproctitle ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/5b/e6/ac/0a9f3ba8962551d270aa651226c7ccb561b3c3f94063cb2f27
  Running setup.py bdist_wheel for watchdog ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/3c/9c/be/e82ae5a37c19baf8abe88623d1f47d2d502bed7b54d4f34740
  Running setup.py bdist_wheel for Twisted ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/65/e3/44/cd3da92c03926aabc80e658e11d6e64619abce3ef44c1c34df
  Running setup.py bdist_wheel for zope.interface ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/00/aa/8b/f1d1eb398423e59894b45ee151344e243808156c2d182c9f4e
  Running setup.py bdist_wheel for lmdb ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/62/51/59/e16215fc2708cf2f0a1cf85ca1d4a53d84a3a25801961b8260
  Running setup.py bdist_wheel for sdnotify ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/1c/29/f5/7cab110930f41af2f53d1c20fad96e13de25ec373e5ee6dc9e
  Running setup.py bdist_wheel for ipaddress ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/d7/f9/02/033feb2ff3e12e6d0682a5cd38c07a17e78d361c29ee52d61e
  Running setup.py bdist_wheel for PyNaCl ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/9f/b3/16/3bea9cd6afcfb2be4f3d831e691f3bba1ccfc520fb6e487cab
  Running setup.py bdist_wheel for cryptography ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/c2/12/b8/54077d2a681ad55e244675c3bad78ed27e01916b96f63a32cc
  Running setup.py bdist_wheel for bitstring ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/e9/16/2c/89c3bc78c99908c74f8de29eaf8e75915dfd91b2323cef862a
  Running setup.py bdist_wheel for cbor ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/3d/d1/90/40d06b21e6faf28f3c60abfcc913e87570e5edbab01e2a4522
  Running setup.py bdist_wheel for pyqrcode ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/79/84/80/5909ca01732597bfd7d04d368689dc1c84736f9314fed2003a
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/59/77/ef/0dbb8661e5f628e02d87372048777d1e4fc38844ca919170ed
  Running setup.py bdist_wheel for py-ubjson ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/11/fc/65/b6213bdbd3c59fb766f2cc0c303a67b769054d4a5256efe40a
  Running setup.py bdist_wheel for PyYAML ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc
  Running setup.py bdist_wheel for PyTrie ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/85/64/76/9e0fd10d9e9e52e6d0b19886a7d42ec9841ce0c3f312871774
  Running setup.py bdist_wheel for pathtools ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/60/0d/2a/ffe065d190b580be6af9a862c68ed6a8a89c1778bd5c7ba7b8
  Running setup.py bdist_wheel for MarkupSafe ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57
Successfully built shutilwhich setproctitle watchdog Twisted zope.interface lmdb sdnotify ipaddress PyNaCl cryptography bitstring cbor pyqrcode psutil py-ubjson PyYAML PyTrie pathtools MarkupSafe
Installing collected packages: shutilwhich, setproctitle, Pygments, PyYAML, argh, pathtools, watchdog, zope.interface, constantly, incremental, attrs, Automat, Twisted, click, lmdb, netaddr, sdnotify, ipaddress, pycparser, cffi, PyNaCl, pyasn1, u-msgpack-python, idna, asn1crypto, cryptography, bitstring, pyasn1-modules, pyOpenSSL, service-identity, requests, treq, txaio, autobahn, enum34, cbor, mistune, pyqrcode, psutil, MarkupSafe, Jinja2, py-ubjson, sortedcontainers, PyTrie, crossbar
Successfully installed Automat-0.5.0 Jinja2-2.9.5 MarkupSafe-1.0 PyNaCl-1.1.1 PyTrie-0.3 PyYAML-3.12 Pygments-2.2.0 Twisted-17.1.0 argh-0.26.2 asn1crypto-0.22.0 attrs-16.3.0 autobahn-0.17.2 bitstring-3.1.5 cbor-1.0.0 cffi-1.9.1 click-6.7 constantly-15.1.0 crossbar-17.2.1 cryptography-1.8.1 enum34-1.1.6 idna-2.5 incremental-16.10.1 ipaddress-1.0.18 lmdb-0.92 mistune-0.7.4 netaddr-0.7.19 pathtools-0.1.2 psutil-5.2.0 py-ubjson-0.8.5 pyOpenSSL-16.2.0 pyasn1-0.2.3 pyasn1-modules-0.0.8 pycparser-2.17 pyqrcode-1.2.1 requests-2.13.0 sdnotify-0.3.1 service-identity-16.0.0 setproctitle-1.1.10 shutilwhich-1.1.0 sortedcontainers-1.5.7 treq-16.12.0 txaio-2.6.1 u-msgpack-python-2.3.0 watchdog-0.8.3 zope.interface-4.3.3
(cpy360_1) oberstet@thinkpad-t430s:~$ mkdir test23
(cpy360_1) oberstet@thinkpad-t430s:~$ cd test23
(cpy360_1) oberstet@thinkpad-t430s:~/test23$ which crossbar
/home/oberstet/cpy360_1/bin/crossbar
(cpy360_1) oberstet@thinkpad-t430s:~/test23$ crossbar init
Initializing application template 'default' in directory '/home/oberstet/test23'
Using template from '/home/oberstet/cpy360_1/lib/python3.6/site-packages/crossbar/templates/default'
Creating directory /home/oberstet/test23/.crossbar
Creating file /home/oberstet/test23/index.html
Creating file /home/oberstet/test23/.crossbar/config.json
Application template initialized

To start your node, run 'crossbar start --cbdir /home/oberstet/test23/.crossbar'

(cpy360_1) oberstet@thinkpad-t430s:~/test23$ crossbar version
     __  __  __  __  __  __      __     __
    /  `|__)/  \/__`/__`|__) /\ |__)  |/  \
    \__,|  \\__/.__/.__/|__)/~~\|  \. |\__/

 Crossbar.io        : 17.2.1 (Crossbar.io COMMUNITY)
   Autobahn         : 0.17.2 (with JSON, MessagePack, CBOR, UBJSON)
   Twisted          : 17.1.0-EPollReactor
   LMDB             : 0.92/lmdb-0.9.18
   Python           : 3.6.0/CPython
 OS                 : Linux-4.4.0-66-generic-x86_64-with-debian-stretch-sid
 Machine            : x86_64
 Release key        : RWTmo7YQ1mmpesRyo4DYay3REDoJ7HsafXYcfhK3O+lM9JbeAAGSXUTh

(cpy360_1) oberstet@thinkpad-t430s:~/test23$ crossbar start
2017-03-15T16:24:02+0100 [Controller  10783] New node key pair generated!
2017-03-15T16:24:02+0100 [Controller  10783] File permissions on node public key fixed!
2017-03-15T16:24:02+0100 [Controller  10783] File permissions on node private key fixed!
2017-03-15T16:24:02+0100 [Controller  10783]      __  __  __  __  __  __      __     __
2017-03-15T16:24:02+0100 [Controller  10783]     /  `|__)/  \/__`/__`|__) /\ |__)  |/  \
2017-03-15T16:24:02+0100 [Controller  10783]     \__,|  \\__/.__/.__/|__)/~~\|  \. |\__/
2017-03-15T16:24:02+0100 [Controller  10783]                                         
2017-03-15T16:24:02+0100 [Controller  10783] Version:     Crossbar.io COMMUNITY 17.2.1
2017-03-15T16:24:02+0100 [Controller  10783] Public Key:  c157542907f6a6d5aa1a9c44bc662658b6c317474a9b3367a52ba1681e33e5af
2017-03-15T16:24:02+0100 [Controller  10783] 
2017-03-15T16:24:02+0100 [Controller  10783] Node created with personality "community" [crossbar.controller.node.Node]
2017-03-15T16:24:02+0100 [Controller  10783] Running from node directory "/home/oberstet/test23/.crossbar"
2017-03-15T16:24:02+0100 [Controller  10783] Node configuration loaded from "/home/oberstet/test23/.crossbar/config.json"
2017-03-15T16:24:02+0100 [Controller  10783] Controller process starting (CPython-EPollReactor) ..
2017-03-15T16:24:02+0100 [Controller  10783] No extra node router roles
2017-03-15T16:24:02+0100 [Controller  10783] Router service session attached [crossbar.router.service.RouterServiceSession]
2017-03-15T16:24:02+0100 [Controller  10783] Joined realm 'crossbar' on node management router
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.get_info"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.shutdown"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.get_workers"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.get_worker"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.get_worker_log"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.start_router"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.stop_router"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.start_container"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.stop_container"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.start_guest"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.stop_guest"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.start_websocket_testee"
2017-03-15T16:24:02+0100 [Controller  10783] Registering management API procedure "crossbar.stop_websocket_testee"
2017-03-15T16:24:02+0100 [Controller  10783] Node controller attached [crossbar.controller.process.NodeControllerSession]
2017-03-15T16:24:02+0100 [Controller  10783] Using default node shutdown triggers ['shutdown_on_worker_exit']
2017-03-15T16:24:02+0100 [Controller  10783] Configuring node from local configuration ...
2017-03-15T16:24:02+0100 [Controller  10783] Starting 1 workers ...
2017-03-15T16:24:02+0100 [Controller  10783] Starting Router with ID 'worker-001'...
2017-03-15T16:24:02+0100 [Router      10788] Worker process starting (CPython-EPollReactor) ..
2017-03-15T16:24:03+0100 [Router      10788] RouterWorkerSession: SessionDetails(realm=<crossbar>, session=7110960789974576, authid=<crossbar.process.10788>, authrole=<crossbar.worker.worker-001>, authmethod=trusted, authprovider=programcode, authextra=None, resumed=None, resumable=None, resume_token=None)
2017-03-15T16:24:03+0100 [Controller  10783] Router with ID 'worker-001' and PID 10788 started
2017-03-15T16:24:03+0100 [Router      10788] Realm 'realm1' started
2017-03-15T16:24:03+0100 [Controller  10783] Router 'worker-001': realm 'realm-001' (named 'realm1') started
2017-03-15T16:24:03+0100 [Router      10788] role role-001 on realm realm-001 started
2017-03-15T16:24:03+0100 [Controller  10783] Router 'worker-001': role 'role-001' (named 'anonymous') started on realm 'realm-001'
2017-03-15T16:24:03+0100 [Router      10788] UniSocketServerFactory starting on 8080
2017-03-15T16:24:03+0100 [Controller  10783] Router 'worker-001': transport 'transport-001' started
2017-03-15T16:24:03+0100 [Controller  10783] Node configuration applied successfully!
^C2017-03-15T16:24:05+0100 [Controller  10783] Received SIGINT, shutting down.
2017-03-15T16:24:05+0100 [Controller  10783] sending TERM to subprocess 10788
2017-03-15T16:24:05+0100 [Controller  10783] waiting for 10788 to exit...
2017-03-15T16:24:05+0100 [Router      10788] Native worker received SIGTERM - shutting down ..
2017-03-15T16:24:05+0100 [Router      10788] Shutdown of worker requested!
2017-03-15T16:24:05+0100 [Router      10788] Connection to node controller closed cleanly
2017-03-15T16:24:05+0100 [Router      10788] (TCP Port 8080 Closed)
2017-03-15T16:24:05+0100 [Controller  10783] Native worker connection closed cleanly.
2017-03-15T16:24:05+0100 [Controller  10783] Node worker worker-001 ended successfully
2017-03-15T16:24:05+0100 [Controller  10783] Node worker ended, and trigger 'shutdown_on_worker_exit' active
2017-03-15T16:24:05+0100 [Controller  10783] Node shutting down ..
2017-03-15T16:24:05+0100 [Controller  10783] Shutting down node...
(cpy360_1) oberstet@thinkpad-t430s:~/test23$ 
oberstet commented 7 years ago

Installation using pip install -r requirements.txt (which is using pinned dependencies) fails as down below. The root of this issue lies with "appdirs" / pip itself:

(cpy360_2) oberstet@thinkpad-t430s:~/scm/crossbario/crossbar$ pip install -r requirements.txt 
Collecting appdirs==1.4.2 (from -r requirements.txt (line 1))
  Using cached appdirs-1.4.2-py2.py3-none-any.whl
Collecting argh==0.26.2 (from -r requirements.txt (line 4))
  Using cached argh-0.26.2-py2.py3-none-any.whl
Collecting attrs==16.3.0 (from -r requirements.txt (line 7))
  Using cached attrs-16.3.0-py2.py3-none-any.whl
Collecting autobahn==0.17.2 (from -r requirements.txt (line 10))
  Using cached autobahn-0.17.2-py2.py3-none-any.whl
Collecting Automat==0.5.0 (from -r requirements.txt (line 13))
  Using cached Automat-0.5.0-py2.py3-none-any.whl
Collecting bitstring==3.1.5 (from -r requirements.txt (line 16))
  Using cached bitstring-3.1.5.zip
Collecting cbor==1.0.0 (from -r requirements.txt (line 18))
  Using cached cbor-1.0.0.tar.gz
Collecting cffi==1.9.1 (from -r requirements.txt (line 20))
  Using cached cffi-1.9.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting click==6.7 (from -r requirements.txt (line 62))
  Using cached click-6.7-py2.py3-none-any.whl
Collecting constantly==15.1.0 (from -r requirements.txt (line 65))
  Using cached constantly-15.1.0-py2.py3-none-any.whl
Collecting cryptography==1.7.2 (from -r requirements.txt (line 68))
  Using cached cryptography-1.7.2.tar.gz
Collecting enum34==1.1.6 (from -r requirements.txt (line 88))
  Using cached enum34-1.1.6-py3-none-any.whl
Collecting idna==2.2 (from -r requirements.txt (line 93))
  Using cached idna-2.2-py2.py3-none-any.whl
Collecting incremental==16.10.1 (from -r requirements.txt (line 96))
  Using cached incremental-16.10.1-py2.py3-none-any.whl
Collecting ipaddress==1.0.18 (from -r requirements.txt (line 99))
  Using cached ipaddress-1.0.18.tar.gz
Collecting Jinja2==2.9.5 (from -r requirements.txt (line 102))
  Using cached Jinja2-2.9.5-py2.py3-none-any.whl
Collecting lmdb==0.92 (from -r requirements.txt (line 105))
  Using cached lmdb-0.92.tar.gz
Collecting MarkupSafe==0.23 (from -r requirements.txt (line 128))
  Using cached MarkupSafe-0.23.tar.gz
Collecting mistune==0.7.3 (from -r requirements.txt (line 130))
  Using cached mistune-0.7.3-py2.py3-none-any.whl
Collecting netaddr==0.7.19 (from -r requirements.txt (line 133))
  Using cached netaddr-0.7.19-py2.py3-none-any.whl
Requirement already satisfied: packaging==16.8 in /home/oberstet/cpy360_2/lib/python3.6/site-packages (from -r requirements.txt (line 136))
Collecting pathtools==0.1.2 (from -r requirements.txt (line 139))
  Using cached pathtools-0.1.2.tar.gz
Collecting psutil==5.1.3 (from -r requirements.txt (line 141))
  Using cached psutil-5.1.3.tar.gz
Collecting py-ubjson==0.8.5 (from -r requirements.txt (line 163))
  Using cached py-ubjson-0.8.5.tar.gz
Collecting pyasn1==0.2.2 (from -r requirements.txt (line 165))
  Using cached pyasn1-0.2.2-py2.py3-none-any.whl
Collecting pyasn1-modules==0.0.8 (from -r requirements.txt (line 177))
  Using cached pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting pycparser==2.17 (from -r requirements.txt (line 189))
  Using cached pycparser-2.17.tar.gz
Collecting Pygments==2.2.0 (from -r requirements.txt (line 191))
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting PyNaCl==1.0.1 (from -r requirements.txt (line 194))
  Using cached PyNaCl-1.0.1.tar.gz
Collecting pyOpenSSL==16.2.0 (from -r requirements.txt (line 211))
  Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl
Collecting pyparsing==2.1.10 (from -r requirements.txt (line 214))
  Using cached pyparsing-2.1.10-py2.py3-none-any.whl
Collecting PyQRCode==1.2.1 (from -r requirements.txt (line 223))
  Using cached PyQRCode-1.2.1.zip
Collecting PyTrie==0.3 (from -r requirements.txt (line 226))
  Using cached PyTrie-0.3.tar.gz
Collecting PyYAML==3.12 (from -r requirements.txt (line 228))
  Using cached PyYAML-3.12.tar.gz
Collecting requests==2.13.0 (from -r requirements.txt (line 243))
  Using cached requests-2.13.0-py2.py3-none-any.whl
Collecting sdnotify==0.3.1 (from -r requirements.txt (line 246))
  Using cached sdnotify-0.3.1.tar.gz
Collecting service_identity==16.0.0 (from -r requirements.txt (line 248))
  Using cached service_identity-16.0.0-py2.py3-none-any.whl
Collecting setproctitle==1.1.10 (from -r requirements.txt (line 251))
  Using cached setproctitle-1.1.10.tar.gz
Collecting setuptools==34.3.0 (from -r requirements.txt (line 254))
  Using cached setuptools-34.3.0-py2.py3-none-any.whl
Collecting shutilwhich==1.1.0 (from -r requirements.txt (line 257))
  Using cached shutilwhich-1.1.0.tar.gz
Requirement already satisfied: six==1.10.0 in /home/oberstet/cpy360_2/lib/python3.6/site-packages (from -r requirements.txt (line 259))
Collecting sortedcontainers==1.5.7 (from -r requirements.txt (line 262))
  Using cached sortedcontainers-1.5.7-py2.py3-none-any.whl
Collecting treq==16.12.0 (from -r requirements.txt (line 265))
  Using cached treq-16.12.0-py2.py3-none-any.whl
Collecting Twisted==17.1.0 (from -r requirements.txt (line 268))
  Using cached Twisted-17.1.0.tar.bz2
Collecting txaio==2.6.1 (from -r requirements.txt (line 271))
  Using cached txaio-2.6.1-py2.py3-none-any.whl
Collecting u-msgpack-python==2.3.0 (from -r requirements.txt (line 274))
  Using cached u_msgpack_python-2.3.0-py2.py3-none-any.whl
Collecting watchdog==0.8.3 (from -r requirements.txt (line 277))
  Using cached watchdog-0.8.3.tar.gz
Collecting zope.interface==4.3.3 (from -r requirements.txt (line 279))
  Using cached zope.interface-4.3.3.tar.gz
Building wheels for collected packages: bitstring, cbor, cryptography, ipaddress, lmdb, MarkupSafe, pathtools, psutil, py-ubjson, pycparser, PyNaCl, PyQRCode, PyTrie, PyYAML, sdnotify, setproctitle, shutilwhich, Twisted, watchdog, zope.interface
  Running setup.py bdist_wheel for bitstring ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/e9/16/2c/89c3bc78c99908c74f8de29eaf8e75915dfd91b2323cef862a
  Running setup.py bdist_wheel for cbor ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/3d/d1/90/40d06b21e6faf28f3c60abfcc913e87570e5edbab01e2a4522
  Running setup.py bdist_wheel for cryptography ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/3e/09/be/ca344cd1e68fd4d4d8872a25287e884a6f73557710efa51019
  Running setup.py bdist_wheel for ipaddress ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/d7/f9/02/033feb2ff3e12e6d0682a5cd38c07a17e78d361c29ee52d61e
  Running setup.py bdist_wheel for lmdb ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/62/51/59/e16215fc2708cf2f0a1cf85ca1d4a53d84a3a25801961b8260
  Running setup.py bdist_wheel for MarkupSafe ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/a3/fa/dc/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748
  Running setup.py bdist_wheel for pathtools ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/60/0d/2a/ffe065d190b580be6af9a862c68ed6a8a89c1778bd5c7ba7b8
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/fd/a5/c2/b79e0e0bcdc606ab6f1ae902cde17458564f48dc01afe7e4bf
  Running setup.py bdist_wheel for py-ubjson ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/11/fc/65/b6213bdbd3c59fb766f2cc0c303a67b769054d4a5256efe40a
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/a8/0b/41/dc95621f9d3a0da7bc191b8a71f0e8182ffd3cc5f33ac55005
  Running setup.py bdist_wheel for PyNaCl ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/5c/e3/22/01d05a856963e55f2377627dfb192503c4383fb4b1e3419535
  Running setup.py bdist_wheel for PyQRCode ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/79/84/80/5909ca01732597bfd7d04d368689dc1c84736f9314fed2003a
  Running setup.py bdist_wheel for PyTrie ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/85/64/76/9e0fd10d9e9e52e6d0b19886a7d42ec9841ce0c3f312871774
  Running setup.py bdist_wheel for PyYAML ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc
  Running setup.py bdist_wheel for sdnotify ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/1c/29/f5/7cab110930f41af2f53d1c20fad96e13de25ec373e5ee6dc9e
  Running setup.py bdist_wheel for setproctitle ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/5b/e6/ac/0a9f3ba8962551d270aa651226c7ccb561b3c3f94063cb2f27
  Running setup.py bdist_wheel for shutilwhich ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/0e/28/70/d5cc6586f26d614b26901485f6f6072d35cbbb5bbeffb6ea43
  Running setup.py bdist_wheel for Twisted ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/65/e3/44/cd3da92c03926aabc80e658e11d6e64619abce3ef44c1c34df
  Running setup.py bdist_wheel for watchdog ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/3c/9c/be/e82ae5a37c19baf8abe88623d1f47d2d502bed7b54d4f34740
  Running setup.py bdist_wheel for zope.interface ... done
  Stored in directory: /home/oberstet/.cache/pip/wheels/00/aa/8b/f1d1eb398423e59894b45ee151344e243808156c2d182c9f4e
Successfully built bitstring cbor cryptography ipaddress lmdb MarkupSafe pathtools psutil py-ubjson pycparser PyNaCl PyQRCode PyTrie PyYAML sdnotify setproctitle shutilwhich Twisted watchdog zope.interface
Installing collected packages: appdirs, argh, attrs, txaio, autobahn, Automat, bitstring, cbor, pycparser, cffi, click, constantly, idna, pyasn1, setuptools, cryptography, enum34, incremental, ipaddress, MarkupSafe, Jinja2, lmdb, mistune, netaddr, pathtools, psutil, py-ubjson, pyasn1-modules, Pygments, PyNaCl, pyOpenSSL, pyparsing, PyQRCode, sortedcontainers, PyTrie, PyYAML, requests, sdnotify, service-identity, setproctitle, shutilwhich, zope.interface, Twisted, treq, u-msgpack-python, watchdog
  Found existing installation: appdirs 1.4.3
    Uninstalling appdirs-1.4.3:
      Successfully uninstalled appdirs-1.4.3
  Rolling back uninstall of appdirs
Exception:
Traceback (most recent call last):
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2813, in _dep_map
    return self.__dep_map
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2624, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2804, in _parsed_pkg_info
    return self._pkg_info
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2624, in __getattr__
    raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/wheel.py", line 247, in move_wheel_files
    prefix=prefix,
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pip/locations.py", line 140, in distutils_scheme
    d = Distribution(dist_args)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/home/oberstet/cpy360/lib/python3.6/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/setuptools/dist.py", line 386, in finalize_options
    ep.require(installer=self.fetch_build_egg)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 862, in resolve
    new_requirements = dist.requires(req.extras)[::-1]
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2568, in requires
    dm = self._dep_map
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2815, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2824, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2806, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1468, in get_metadata
    value = self._get(self._fn(self.egg_info, name))
  File "/home/oberstet/cpy360_2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1577, in _get
    with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/oberstet/cpy360_2/lib/python3.6/site-packages/appdirs-1.4.3.dist-info/METADATA'
(cpy360_2) oberstet@thinkpad-t430s:~/scm/crossbario/crossbar$ 
oberstet commented 7 years ago

we don't support old pips