[ase-users] Error installation

Jens Jørgen Mortensen jensj at fysik.dtu.dk
Thu Oct 6 10:37:26 CEST 2016


On 10/06/2016 01:53 AM, Abhirup Patra via ase-users wrote:
>
> 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 -
>

Thank you for reporting these errors.

The errors you get mean that you will not be able to use ase-gui and you 
will not be able to write png-files.  The png problem has been fixed in 
the development version and we are working on fixing the ase-gui problem.

So, depending on what you need from ASE, you will need to go back to 
Python 2.7 or forward to the latest development version.

Jens Jørgen

>
> 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
>
>
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users



More information about the ase-users mailing list