<div dir="ltr">Hi,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 6:14 PM, Andreas Tille <span dir="ltr"><<a href="mailto:andreas@an3as.eu" target="_blank">andreas@an3as.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Graham,<br>
<span class=""><br>
On Fri, Jul 24, 2015 at 05:53:20PM +0200, Graham Inggs wrote:<br>
><br>
> On 24/07/2015 16:53, Andreas Tille wrote:<br>
> >I noticed that ase also should work with Python 3 and thus added a<br>
> >Python 3 package.<br>
><br>
> OK. I had read that Python3 wasn't supported yet [1]:<br>
<br></span></blockquote><div><br></div><div>python3 should be fully supported by ASE.<br></div><div>The upstream documentation is out-of-date.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>I simply did:<br>
<br>
$ grep 3\.4 * 2>/dev/null<br>
PKG-INFO:Classifier: Programming Language :: Python :: 3.4<br>
setup.py: 'Programming Language :: Python :: 3.4',<br>
<br>
which seems to be a sign for 3.4 support.<br>
<span class=""><br>
> The following packages are required for basic ASE functionality:<br>
><br>
> 1. Python2 version 2.6 or newer. Python3 is not supported yet.<br>
> 2. NumPy.<br>
><br>
> > Unfortunately 1 of 142 fails. Would you mind having a look into this?<br>
><br>
> Weird, I tried building and it passed all the tests (although that was with<br>
> Python 3.4, not 3.5 as is in unstable).<br>
<br>
</span>I was building in an unstable chroot which obviously used Python 3.4<br>
(not 3.5). The log said:<br>
<br>
...<br>
tasks/dcdft.py (ScriptTestCase) ... skipped ok<br>
tasks/gbrv.py (ScriptTestCase) ... ERROR<br>
tasks/htb.py (ScriptTestCase) ... ok<br>
tasks/mmbjmp.py (ScriptTestCase) ... ok<br>
turbomole/turbomole_H2.py (ScriptTestCase) ... skipped ok<br>
turbomole/turbomole_h3o2m.py (ScriptTestCase) ... skipped ok<br>
vasp/vasp_Al_volrelax.py (ScriptTestCase) ... skipped ok<br>
vasp/vasp_co.py (ScriptTestCase) ... skipped ok<br>
COCu111.py (ScriptTestCase) ... Test suite failed<br>
ok<br>
<br>
======================================================================<br>
ERROR: tasks/gbrv.py (ScriptTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
File "/tmp/buildd/python-ase-3.9.1.4567/ase/test/__init__.py", line 50, in testfile<br>
exec(compile(fd.read(), self.filename, 'exec'),<br>
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode<br>
return codecs.ascii_decode(input, self.errors)[0]<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 488: ordinal not in range(128)<br>
<br>
----------------------------------------------------------------------<br>
Ran 142 tests in 46.282s<br>
<br>
FAILED (errors=1)<br>
E: pybuild pybuild:256: test: plugin custom failed with: exit code=1: python3.4 /tmp/buildd/python-ase-3.9.1.4567/setup.py test<br>
dh_auto_test: pybuild --test -i python{version} -p 3.4 --dir . returned exit code 13<br>
<br>
...<br>
<br>
So if you build in an unstable chroot you do not get this error?<br></blockquote><div><br></div><div>this is interesting. I have the same problem with python-ase and python3<br></div><div>on Fedora - can't reproduce this error on the command line in latest Fedora Rawhide.<br></div><div>If anybody finds a way to reproduce the error (and possibly a fix) - please report to upstream ASE.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> I did get hundreds of Lintian warnings though, e.g.<br>
> W: python-ase source: binaries-have-file-conflict python-ase python3-ase<br>
> usr/bin/ase-build<br>
<br>
</span>Well, the build at my side did not finalise so I can not look into the<br>
binary but it seems that the package does install not only binaries but<br>
also has some executables in /usr/bin. Setup.py simply installs these<br>
for each run and so you get the files in /usr/bin in both packages which<br>
will lead to a conflict between both packages.<br></blockquote><div><br></div><div>the scripts under tools are not python2/3 aware, they just start<br></div><div>with a "#!/usr/bin/env python" shebang.<br></div><div>I'm not sure how Debian handles switching between python 2 and 3.<br></div><div>The scripts shipping with python3 package can be just renamed to have 3 appended to the names, e.g. ase-build3. This is what I do on Fedora. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I had a similar situation in DendroPy<br>
git://<a href="http://anonscm.debian.org/debian-med/python-dendropy.git" rel="noreferrer" target="_blank">anonscm.debian.org/debian-med/python-dendropy.git</a><br>
and solved this by a separate package delivering the tools in /usr/bin.<br>
I decided for the Python 3 version of the tool.<br>
<span class=""><br>
> Is this normal for packages that produce Python2 and Python3 binaries?<br>
<br>
</span>This is normal for all packages installing the same file name.<br>
<span class=""><br>
> What about the recommended packages; python-gtk2, python-matplotlib and<br>
> python-scipy?<br>
> Should those become python3-matplotlib and python3-scipy?<br>
<br>
</span>Sure. I missed this piece.<br>
<span class=""><br>
> It seems that<br>
> there is no python3-gtk2.<br>
<br></span></blockquote><div><br></div><div>ASE does not support gui for python3 for that reason.<br>Therefore ase-gui should not be packaged for the python3 package.<br><br></div><div>Marcin<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>I'm not sure. May be you clarify this with<br>
<a href="mailto:debian-python@lists.debian.org">debian-python@lists.debian.org</a>.<br>
<span class=""><br>
> I must admit I am not comfortable with this change you have made.<br>
<br>
</span>If you want to push on a quick update I'm fine with reverting this<br>
change. However, at some point in time you will need to do it anyway.<br>
Its youe choice when you want to do this.<br>
<div class="HOEnZb"><div class="h5"><br>
Kind regards<br>
<br>
Andreas.<br>
<br>
--<br>
<a href="http://fam-tille.de" rel="noreferrer" target="_blank">http://fam-tille.de</a><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
To UNSUBSCRIBE, email to <a href="mailto:debian-science-request@lists.debian.org">debian-science-request@lists.debian.org</a><br>
with a subject of "unsubscribe". Trouble? Contact <a href="mailto:listmaster@lists.debian.org">listmaster@lists.debian.org</a><br>
Archive: <a href="https://lists.debian.org/20150724161403.GK26775@an3as.eu" rel="noreferrer" target="_blank">https://lists.debian.org/20150724161403.GK26775@an3as.eu</a><br>
<br>
</font></span></blockquote></div><br></div></div></div>