Problens with autobahn 0.10.9

#1

Hey guys!

After install Autobahn 0.10.9 from pypi I’m getting this error:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 118, in
from txaio.tx import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/tx.py”, line 34, in
from twisted.python.failure import Failure
ImportError: No module named ‘twisted.python’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 47, in
from asyncio import iscoroutine
ImportError: cannot import name ‘iscoroutine’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “test.py”, line 1, in
from autobahn.asyncio.wamp import ApplicationRunner
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/asyncio/wamp.py”, line 32, in
from autobahn.wamp import protocol
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/wamp/protocol.py”, line 53, in
import txaio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 122, in
from txaio.aio import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 53, in
import trollius as asyncio
ImportError: No module named ‘trollius’

``

The thing is, I’m using python 3.4 and 3.5 so it shouldn’t try to import trollius, right?

Well, anyway I’ve installed it just to see what happens and here is another error.

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 118, in
from txaio.tx import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/tx.py”, line 34, in
from twisted.python.failure import Failure
ImportError: No module named ‘twisted.python’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 47, in
from asyncio import iscoroutine
ImportError: cannot import name ‘iscoroutine’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “test.py”, line 1, in
from autobahn.asyncio.wamp import ApplicationRunner
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/asyncio/wamp.py”, line 32, in
from autobahn.wamp import protocol
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/wamp/protocol.py”, line 53, in
import txaio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 122, in
from txaio.aio import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 53, in
import trollius as asyncio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/init.py”, line 21, in
from .base_events import *
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/base_events.py”, line 39, in
from . import coroutines
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/coroutines.py”, line 14, in
from . import events
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/events.py”, line 223, in
AbstractEventLoop = asyncio.AbstractEventLoop
AttributeError: module ‘asyncio’ has no attribute ‘AbstractEventLoop’

``

Any idea of what’s going on?

Thanks!

Johnny W. Santos

0 Likes

#2

It was no problem on Autobahn at all, just a namespace problem on my application.

···

On Monday, September 28, 2015 at 9:47:21 AM UTC-3, Johnny W. Santos wrote:

Hey guys!

After install Autobahn 0.10.9 from pypi I’m getting this error:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 118, in
from txaio.tx import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/tx.py”, line 34, in
from twisted.python.failure import Failure
ImportError: No module named ‘twisted.python’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 47, in
from asyncio import iscoroutine
ImportError: cannot import name ‘iscoroutine’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “test.py”, line 1, in
from autobahn.asyncio.wamp import ApplicationRunner
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/asyncio/wamp.py”, line 32, in
from autobahn.wamp import protocol
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/wamp/protocol.py”, line 53, in
import txaio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 122, in
from txaio.aio import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 53, in
import trollius as asyncio
ImportError: No module named ‘trollius’

``

The thing is, I’m using python 3.4 and 3.5 so it shouldn’t try to import trollius, right?

Well, anyway I’ve installed it just to see what happens and here is another error.

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 118, in
from txaio.tx import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/tx.py”, line 34, in
from twisted.python.failure import Failure
ImportError: No module named ‘twisted.python’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 47, in
from asyncio import iscoroutine
ImportError: cannot import name ‘iscoroutine’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “test.py”, line 1, in
from autobahn.asyncio.wamp import ApplicationRunner
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/asyncio/wamp.py”, line 32, in
from autobahn.wamp import protocol
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/autobahn/wamp/protocol.py”, line 53, in
import txaio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/init.py”, line 122, in
from txaio.aio import * # noqa
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/txaio/aio.py”, line 53, in
import trollius as asyncio
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/init.py”, line 21, in
from .base_events import *
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/base_events.py”, line 39, in
from . import coroutines
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/coroutines.py”, line 14, in
from . import events
File “/mnt/sda3/johnny/.virtualenvs/jarvissession/lib/python3.5/site-packages/trollius/events.py”, line 223, in
AbstractEventLoop = asyncio.AbstractEventLoop
AttributeError: module ‘asyncio’ has no attribute ‘AbstractEventLoop’

``

Any idea of what’s going on?

Thanks!

Johnny W. Santos

0 Likes