Pip and bug in 0.9.4

#1

Hi,

as instructed at

http://autobahn.ws/python/installation.html

I installed Autobahn Python under Python 3.4 using Pip:

sudo pip3.4 install autobahn[twisted]

When trying to run the following code

from autobahn.twisted.wamp import ApplicationRunner

runner = ApplicationRunner(url = "ws://localhost:8080/ws", realm = "realm1")

from the WAMP programming instructions at

http://autobahn.ws/python/wamp/programming.html

I get


Traceback (most recent call last):
File “./test.py”, line 5, in
runner = ApplicationRunner(url = “ws://localhost:8080/ws”, realm = “realm1”)
File “/usr/local/lib/python3.4/dist-packages/autobahn/twisted/wamp.py”, line 123, in init
self.standalone = standalone
NameError: name ‘standalone’ is not defined


I compared the version installed by Pip (0.9.4) with the latest one (0.9.4-2) from

https://pypi.python.org/pypi/autobahn/

and I get this difference:

/usr/local/lib/python3.4/dist-packages/autobahn/twisted$ diff wamp.py ~/Downloads/autobahn-0.9.4-2/autobahn/twisted/wamp.py 123d122
< self.standalone = standalone
292,293d290
< :param standalone: If True, run an embedded WAMP router instead of connecting
< to an external one. This is useful during development and debugging.
301,303c298
< if standalone:
< print(“Running on {0} …”.format(url))
< runner = ApplicationRunner(url, realm, standalone = standalone,

···

runner = ApplicationRunner(url, realm,


So it looks like something in regard to the standalone variable was changed. Would it be possible to make 0.9.4-2 available to Pip, since 0.9.4 seems to have a bug?

Thanks

Florian

</details>
0 Likes

#2

Hi Florian,

Traceback (most recent call last):
   File "./test.py", line 5, in <module>
     runner = ApplicationRunner(url = "ws://localhost:8080/ws", realm = "realm1")
   File "/usr/local/lib/python3.4/dist-packages/autobahn/twisted/wamp.py", line 123, in __init__
     self.standalone = standalone
NameError: name 'standalone' is not defined

This was a regression that is fixwd in:

https://pypi.python.org/pypi/autobahn/0.9.4-2

To install: pip install -U autobahn

/Tobias

0 Likes