[ase-users] Error in running ASE test

Adam Paul Karcz adkr at kt.dtu.dk
Fri Nov 24 11:32:26 CET 2017


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

adkr at kt.dtu.dk<mailto:adkr at kt.dtu.dk>

www.dtu.dk/english<http://www.dtu.dk/english>


[http://www.dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif]




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20171124/7ffb5a88/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1055 bytes
Desc: image001.gif
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20171124/7ffb5a88/attachment-0001.gif>
-------------- next part --------------
The content  of type executable/javascript has been blocked by DTU spamfilter


More information about the ase-users mailing list