[ase-users] Error installation

Abhirup Patra abhirup.patra at hotmail.com
Thu Oct 6 01:53:33 CEST 2016


Hello,


I have upgraded my python version to Python.3.5 and trying to reinstall python-ase

from the source code, but I am getting the following error -


platform        Linux-4.4.0-38-generic-x86_64-with-debian-stretch-sid
python-3.5.2    /home/abhirup/anaconda3/bin/python
ase-3.11.0      /home/abhirup/.local/lib/python3.5/site-packages/ase/
numpy-1.11.1    /home/abhirup/anaconda3/lib/python3.5/site-packages/numpy/
scipy-0.18.1    /home/abhirup/anaconda3/lib/python3.5/site-packages/scipy/
test-dir        /tmp/ase-test-0hsmqmsu



.

.

.

.

.



======================================================================
ERROR: dependency_gtk.py
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/test/__init__.py", line 53, in testfile
    {'display': self.display})
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/test/dependency_gtk.py", line 26, in <module>
    import gtk
ImportError: No module named 'gtk'

======================================================================
ERROR: fio/oi.py
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/io/png.py", line 38, in write_trailer
    _png.write_png(x, self.w, self.h, self.filename, 72)
TypeError: write_png() takes at most 3 arguments (5 given)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/test/__init__.py", line 53, in testfile
    {'display': self.display})
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/test/fio/oi.py", line 90, in <module>
    write(fname1, atoms, format=format)
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/io/formats.py", line 252, in write
    io.write(fd, images, **kwargs)
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/io/png.py", line 46, in write_png
    PNG(atoms, **parameters).write(filename)
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/io/eps.py", line 140, in write
    self.write_trailer()
  File "/home/abhirup/.local/lib/python3.5/site-packages/ase/io/png.py", line 42, in write_trailer
    _png.write_png(x, self.filename, 72)
TypeError: write() argument must be str, not bytes

----------------------------------------------------------------------
Ran 138 tests in 176.116s

FAILED (errors=2)


Where I am doing the mistake?

thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20161005/cebf6193/attachment-0001.html>


More information about the ase-users mailing list