Re: [s3ql] compatibility problem with s3ql-3.6.0 and Python 3.9?

2020-12-06 Thread Xomex
Thanks Nikolaus,
To confirm: changing the function in backends/s3c.py as suggested has fixed 
the cElementTree problem.

Now the tests fail at:
"
platform linux -- Python 3.9.0, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- 
/usr/bin/python3
cachedir: .pytest_cache
rootdir: /usr/local/src/s3ql-3.6.0/tests, configfile: pytest.ini
plugins: trio-0.6.0
collected 354 
items   
   
 

tests/t1_backends.py::test_read_write[local/aes] 
ERROR  [  0%]
tests/t1_backends.py::test_read_write[local/aes] 
ERROR  [  0%]

=== ERRORS 

 ERROR at setup of test_read_write[local/aes] 
_
Traceback (most recent call last):
  File "/usr/local/src/s3ql-3.6.0/tests/pytest_checklogs.py", line 137, in 
pytest_runtest_setup
check_output(item)
  File "/usr/local/src/s3ql-3.6.0/tests/pytest_checklogs.py", line 133, in 
check_output
check_test_log(item.catch_log_handler)
AttributeError: 'Function' object has no attribute 'catch_log_handler'
___ ERROR at teardown of test_read_write[local/aes] 
___
Traceback (most recent call last):
  File "/usr/local/src/s3ql-3.6.0/tests/pytest_checklogs.py", line 143, in 
pytest_runtest_teardown
check_output(item)
  File "/usr/local/src/s3ql-3.6.0/tests/pytest_checklogs.py", line 133, in 
check_output
check_test_log(item.catch_log_handler)
AttributeError: 'Function' object has no attribute 'catch_log_handler'
=== short test summary info 
===
ERROR tests/t1_backends.py::test_read_write[local/aes] - AttributeError: 
'Function' object has no at...
ERROR tests/t1_backends.py::test_read_write[local/aes] - AttributeError: 
'Function' object has no at...
!! stopping after 2 failures 
!!
"


On Sunday, 6 December 2020 at 8:24:02 pm UTC+10 niko...@rath.org wrote:

> On Sun, 6 Dec 2020, at 05:06, Xomex wrote:
>
> I've just d/l and built s3ql-3.6.0 on a system newly updated to Fedora 33 
> which provides Python3.9. It seems to build OK but on running any s3ql 
> command or the tests I get a fatal error from defusedxml about cElementTree:
> "
> import defusedxml.cElementTree as ElementTree
> /usr/lib/python3.9/site-packages/defusedxml/cElementTree.py:13: in 
> raise ImportError("cElementTree has been removed from Python 3.9")
> E   ImportError: cElementTree has been removed from Python 3.9
> "
> Is this a new incompatibility? and what's the simplest work around?
> Thanks.
>
>
> Hi,
>
> You should be able to just change "cElementTree" to "ElementTree" in the 
> source code. cElementTree (used to) be a re-implementation of ElementTree 
> in C (for better performance).
>
> Best,
> -Nikolaus
>
> --
> GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
>
>  »Time flies like an arrow, fruit flies like a Banana.«
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/s3ql/592df66b-fbdc-4adf-8df7-8a031f91ed43n%40googlegroups.com.


Re: [s3ql] compatibility problem with s3ql-3.6.0 and Python 3.9?

2020-12-06 Thread Nikolaus Rath
On Sun, 6 Dec 2020, at 05:06, Xomex wrote:
> I've just d/l and built s3ql-3.6.0 on a system newly updated to Fedora 33 
> which provides Python3.9. It seems to build OK but on running any s3ql 
> command or the tests I get a fatal error from defusedxml about cElementTree:
> "
> import defusedxml.cElementTree as ElementTree
> /usr/lib/python3.9/site-packages/defusedxml/cElementTree.py:13: in 
> raise ImportError("cElementTree has been removed from Python 3.9")
> E   ImportError: cElementTree has been removed from Python 3.9
> "
> Is this a new incompatibility? and what's the simplest work around?
> Thanks.

Hi,

You should be able to just change "cElementTree" to "ElementTree" in the source 
code. cElementTree (used to) be a re-implementation of ElementTree in C (for 
better performance).

Best,
-Nikolaus

--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/s3ql/7667c54a-d259-4153-9e27-81d1998f49f3%40www.fastmail.com.