trio icon indicating copy to clipboard operation
trio copied to clipboard

Not Working with s3ql and ubuntu 21.04

Open estuaco opened this issue 4 years ago • 6 comments

I have issue with trio

/usr/lib/python3/dist-packages/trio/_core/_multierror.py:468: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks. warnings.warn( Using 2 upload threads. Autodetected xxx file descriptors available for cache entries Detected Swift features for xxx: copy via COPY, Bulk delete 1000 keys at a time, maximum meta value length is 255 bytes Using cached metadata. Setting cache size to 13195 MB Loaded 0 entries from cache ERROR: Uncaught top-level exception: Traceback (most recent call last): File "/usr/bin/mount.s3ql", line 33, in sys.exit(load_entry_point('s3ql==3.7.0', 'console_scripts', 'mount.s3ql')()) File "/usr/lib/s3ql/s3ql/mount.py", line 131, in main trio.run(main_async, options, stdout_log_handler) File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1804, in run raise runner.main_task_outcome.error File "/usr/lib/s3ql/s3ql/mount.py", line 207, in main_async block_cache.init(options.threads) File "/usr/lib/s3ql/s3ql/block_cache.py", line 222, in init self.trio_token = trio.lowlevel.current_trio_token() File "/usr/lib/python3/dist-packages/trio/_deprecate.py", line 125, in getattr raise AttributeError(name) AttributeError: lowlevel

estuaco avatar May 04 '21 21:05 estuaco

It looks like s3ql might need a newer version of trio than what you have installed... what version of s3ql do you have, and what version of trio do you have? Did you get them both through your system package manager?

On Tue, May 4, 2021, 14:04 estuaco @.***> wrote:

I have issue with trio

/usr/lib/python3/dist-packages/trio/_core/_multierror.py:468: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks. warnings.warn( Using 2 upload threads. Autodetected xxx file descriptors available for cache entries Detected Swift features for xxx: copy via COPY, Bulk delete 1000 keys at a time, maximum meta value length is 255 bytes Using cached metadata. Setting cache size to 13195 MB Loaded 0 entries from cache ERROR: Uncaught top-level exception: Traceback (most recent call last): File "/usr/bin/mount.s3ql", line 33, in sys.exit(load_entry_point('s3ql==3.7.0', 'console_scripts', 'mount.s3ql')()) File "/usr/lib/s3ql/s3ql/mount.py", line 131, in main trio.run(main_async, options, stdout_log_handler) File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1804, in run raise runner.main_task_outcome.error File "/usr/lib/s3ql/s3ql/mount.py", line 207, in main_async block_cache.init(options.threads) File "/usr/lib/s3ql/s3ql/block_cache.py", line 222, in init self.trio_token = trio.lowlevel.current_trio_token() File "/usr/lib/python3/dist-packages/trio/_deprecate.py", line 125, in getattr raise AttributeError(name) AttributeError: lowlevel

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/python-trio/trio/issues/1994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEU42CORCKPSM2XEJFQBPDTMBOPHANCNFSM44DOG7YQ .

njsmith avatar May 04 '21 21:05 njsmith

My version of trio is 0.13.0-2, and s3ql is 3.7.0+dfsg-2build1, both from ubuntu 21.04 repository.

estuaco avatar May 04 '21 23:05 estuaco

@njsmith You are right "pip install -U trio" and trio version 0.18, and work great!!! Thank you!

estuaco avatar May 04 '21 23:05 estuaco

Sounds like an Ubuntu bug. If you look at s3ql 3.7.0's setup.py, it correctly declares that it needs trio 0.15 or later:

https://github.com/s3ql/s3ql/blob/933fc0a137a573815dd54ed58a82c0a4c7be00ff/setup.py#L146-L147

So Ubuntu shouldn't be shipping s3ql 3.7.0 + trio 0.13 together! I'd file an issue in launchpad.

njsmith avatar May 04 '21 23:05 njsmith

@njsmith You are right!

estuaco avatar May 05 '21 02:05 estuaco

same error in Ubuntu 21.10. Seems upgrading it manually with the pip command solved it, though.

CafeLungo avatar Feb 24 '22 02:02 CafeLungo