NameError: name 'longpoll' is not defined

#1

Hi,

I just updated a test server (been running a demo for a few weeks) with pip, now crossbar isn’t starting …

Anyone any ideas?

2015-12-10T14:10:39-0500 [Controller 956 stderr] Traceback (most recent call last):

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/bin/crossbar”, line 11, in

2015-12-10T14:10:39-0500 [Controller 956 stderr] sys.exit(run())

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/lib/python2.7/dist-packages/crossbar/controller/cli.py”, line 834, in run

2015-12-10T14:10:39-0500 [Controller 956 stderr] options.func(options, reactor=reactor)

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/lib/python2.7/dist-packages/crossbar/controller/cli.py”, line 523, in run_command_start

2015-12-10T14:10:39-0500 [Controller 956 stderr] from crossbar.controller.node import Node

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/lib/python2.7/dist-packages/crossbar/controller/node.py”, line 49, in

2015-12-10T14:10:39-0500 [Controller 956 stderr] from crossbar.worker.router import RouterRealm

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/lib/python2.7/dist-packages/crossbar/worker/router.py”, line 50, in

2015-12-10T14:10:39-0500 [Controller 956 stderr] from crossbar.twisted.resource import StaticResource, StaticResourceNoListing

2015-12-10T14:10:39-0500 [Controller 956 stderr] File “/usr/local/lib/python2.7/dist-packages/crossbar/twisted/resource.py”, line 593, in

2015-12-10T14:10:39-0500 [Controller 956 stderr] class WampLongPollResourceSession(longpoll.WampLongPollResourceSession):

2015-12-10T14:10:39-0500 [Controller 956 stderr] NameError: name ‘longpoll’ is not defined

0 Likes

#2

Ok, fixed the problem here, downgraded Autobahn to 0.10.9 from 0.11 … looks like there may be a problem using the latest version (?)

0 Likes

#3

Hi Gareth,

I've pushed https://pypi.python.org/pypi/crossbar/0.11.2 which fixes this issue.

So if you now do a pip upgrade, it should work.

Background: we need to find a way to do coordinated releases over txaio, autobahn-python and crossbar ..

https://github.com/crossbario/crossbar/issues/543

Cheers,
/Tobias

···

Am 10.12.2015 um 20:13 schrieb Gareth Bult:

Hi,

I just updated a test server (been running a demo for a few weeks) with
pip, now crossbar isn't starting ..

Anyone any ideas?

2015-12-10T14:10:39-0500 [Controller 956 stderr] Traceback (most
recent call last):
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/bin/crossbar", line 11, in <module>
2015-12-10T14:10:39-0500 [Controller 956 stderr] sys.exit(run())
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/lib/python2.7/dist-packages/crossbar/controller/cli.py",
line 834, in run
2015-12-10T14:10:39-0500 [Controller 956 stderr]
options.func(options, reactor=reactor)
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/lib/python2.7/dist-packages/crossbar/controller/cli.py",
line 523, in run_command_start
2015-12-10T14:10:39-0500 [Controller 956 stderr] from
crossbar.controller.node import Node
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/lib/python2.7/dist-packages/crossbar/controller/node.py",
line 49, in <module>
2015-12-10T14:10:39-0500 [Controller 956 stderr] from
crossbar.worker.router import RouterRealm
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/lib/python2.7/dist-packages/crossbar/worker/router.py", line
50, in <module>
2015-12-10T14:10:39-0500 [Controller 956 stderr] from
crossbar.twisted.resource import StaticResource, StaticResourceNoListing
2015-12-10T14:10:39-0500 [Controller 956 stderr] File
"/usr/local/lib/python2.7/dist-packages/crossbar/twisted/resource.py",
line 593, in <module>
2015-12-10T14:10:39-0500 [Controller 956 stderr] class
WampLongPollResourceSession(longpoll.WampLongPollResourceSession):
2015-12-10T14:10:39-0500 [Controller 956 stderr] NameError: name
'longpoll' is not defined

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/9e0dd4c7-820d-4aba-9b08-05367e2200c6%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/9e0dd4c7-820d-4aba-9b08-05367e2200c6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Hi, tried that, and yes it fixed the issue in question, but it broke my WAMPCRA authentication.

Have reverted to previous versions of Autobahn and Crossbar, working again.

  • Will have to check this out when I have a little time …

I think I’ve seen something like this before, possibly a unicode based change in the authentication somewhere … (?)

0 Likes