[ase-users] Error in running ASE test

Tom Daff tdd20 at cam.ac.uk
Fri Nov 24 11:43:17 CET 2017


https://gitlab.com/ase/ase/issues/177

 

 

From: ase-users-bounces at listserv.fysik.dtu.dk
[mailto:ase-users-bounces at 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


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


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



 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20171124/68c7fc15/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/68c7fc15/attachment.gif>


More information about the ase-users mailing list