deldotdr / txRedis

A Redis client library for Twisted Python
Other
128 stars 41 forks source link

builtins.ImportError: No module named 'exceptions' #56

Open WebDevelopNemanja opened 8 years ago

WebDevelopNemanja commented 8 years ago

txredis 2.4 installed on python3.4 over easy_install3 after starting crossbar router, this error came up.

Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/autobahn/wamp/protocol.py", line 842, in onMessage on_reply = txaio.as_future(endpoint.fn, _invoke_args, _invoke_kwargs) File "/usr/local/lib/python3.4/dist-packages/txaio/tx.py", line 408, in as_future return maybeDeferred(fun, _args, _kwargs) File "/usr/local/lib/python3.4/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(_args, *_kw) File "/usr/local/lib/python3.4/dist-packages/crossbar/worker/router.py", line 643, in start_router_component create_component = _appsession_loader(config) --- --- File "/usr/local/lib/python3.4/dist-packages/crossbar/worker/init.py", line 58, in _appsession_loader module = importlib.import_module(module_name) File "/usr/lib/python3.4/importlib/init.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 2254, in _gcd_import

File "", line 2237, in _find_and_load

File "", line 2226, in _find_and_load_unlocked

File "", line 1200, in _load_unlocked

File "", line 1129, in _exec

File "", line 1471, in exec_module

File "", line 321, in _call_with_frames_removed

File "/home/www/work/dc/example/crossbar/components/main.py", line 7, in from helpers.util import success File "/home/www/work/dc/example/backend/crossbar/helpers/util.py", line 6, in from txredis.client import RedisClient File "/usr/local/lib/python3.4/dist-packages/txredis-2.4-py3.4.egg/txredis/init.py", line 39, in

builtins.ImportError: No module named 'exceptions'

wiml commented 6 years ago

Looks like txredis generally doesn't support Python 3. The patches in PR #58 might help. From the forks tab, @tdsmith, @tomwardill and @Enforcer all seem to have done some py3 support work.