[ase-users] Error in running ASE test

Ask Hjorth Larsen asklarsen at gmail.com
Fri Nov 24 12:02:13 CET 2017


Right - this has to do with Python version and will be fixed in the next
release.  If we see it a lot we might make a bugfix release, 3.15.2, else
3.16.0.  I think we want to do more frequent releases anyway.

Best regards
Ask

2017-11-24 11:43 GMT+01:00 Tom Daff via ase-users <
ase-users at listserv.fysik.dtu.dk>:

> https://gitlab.com/ase/ase/issues/177
>
>
>
>
>
> *From:* ase-users-bounces at listserv.fysik.dtu.dk [mailto:ase-users-bounces@
> listserv.fysik.dtu.dk] *On Behalf Of *Adam Paul Karcz via ase-users
> *Sent:* 24 November 2017 10:32
> *To:* ase-users at listserv.fysik.dtu.dk
> *Subject:* [ase-users] Error in running ASE test
>
>
>
> Dear all,
>
>
>
> I tried the test run for ASE but got an error that looks like the one
> below. I was wondering if anyone knows where the error comes from so I can
> address it. I attached the output folder in case it’s needed.
>
>
>
> ############################################################
> ###############
>
> ~ $ ase test
> platform        Linux-4.10.0-32-generic-x86_64-with-LinuxMint-18.2-sonya
> python-2.7.12   /usr/bin/python
> ase-3.15.0      /home/adam/.local/lib/python2.7/site-packages/ase/
> numpy-1.13.3    /home/adam/.local/lib/python2.7/site-packages/numpy/
> scipy-1.0.0     /home/adam/.local/lib/python2.7/site-packages/scipy/
> test-dir        /tmp/ase-test-32lVIl
>
> ............................s.......................ss......
> ......s......s..............s..................s.sss.....s..
> ...ssssssssss......s....ssssss..ss..E......ss.........
> ...s............ssssssss.ssss.ssssssssssssssss
> ======================================================================
> ERROR: fio/compression.py
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/test/__init__.py",
> line 50, in testfile
>     exec(compile(fd.read(), self.filename, 'exec'), {})
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/test/fio/compression.py",
> line 111, in <module>
>     test_compression_write_single('xz')
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/test/fio/compression.py",
> line 33, in test_compression_write_single
>     io.write(filename, single)
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/io/formats.py",
> line 352, in write
>     _write(filename, fd, format, io, images, parallel=parallel, **kwargs)
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/io/formats.py",
> line 380, in _write
>     fd = open_with_compression(filename, 'w')
>   File "/home/adam/.local/lib/python2.7/site-packages/ase/io/formats.py",
> line 303, in open_with_compression
>     fd = lzma.open(filename, mode)
> AttributeError: 'module' object has no attribute 'open'
>
> ----------------------------------------------------------------------
> Ran 220 tests in 195.030s
>
> FAILED (errors=1, skipped=61)
>
> ############################################################
> ###############
>
>
>
> Thanks for the help!
>
>
>
> *Adam Paul Karcz*
>
> PhD student
>
> CHEC
>
> DTU Chemical Engineering
>
>
>
> *Technical University of Denmark*
>
> Department of Chemical and Biochemical Engineering
>
> Søltofts Plads
>
> Building 229, Room 115
>
> 2800 Kgs. Lyngby
>
> Direct +45 45242830 <+45%2045%2024%2028%2030>
>
> adkr at kt.dtu.dk
>
> www.dtu.dk/english
>
> [image: http://www.dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif]
>
>
>
>
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20171124/7c59997b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1055 bytes
Desc: not available
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20171124/7c59997b/attachment.gif>


More information about the ase-users mailing list