Hi Joe, Great work! It runs for me on ubuntu 15.04. I noticed that if you want to install everything not in a venv, you need to modify more things. You can cherry-pick the commits 9b14b15d and 0e5c4491 (those are py3-specific and aren't about me messing with the plotter) from my master branch on https://gitlab.com/anton-akhmerov/kwant. Best, Anton On Sat, Aug 8, 2015 at 11:26 PM, Joseph Weston <joseph.weston08@gmail.com> wrote:
Dear all,
Here's an update on the progress. The Python 3 port is complete, all tests pass (on my machine) and the docs build. You can find these changes on my Github:
https://github.com/jbweston/kwant/tree/python3
Although the tests run on my machine, I haven't tested it anywhere else yet so we'll have to hold off making an official release until we can test on all supported platforms.
If anyone wants to help out with testing it would be much appreciated. For anyone on OS X or Linux I have a script which sets up a Python 3 virtual environment and installs all the Kwant dependencies into it. You can get the script here:
https://github.com/jbweston/kwant-dev-tools
just run "create_python3_env.sh" in the root of the Kwant repository you cloned (on the python3 branch of course!). Note that the script might take a while as it has to download a number of python packages to build Kwant against. Once the script has completed, just activate the virtual environment, install kwant into it and run the tests:
source python3-env/bin/activate python setup.py install cd .. python -c 'import kwant; kwant.test()'
Note that we need to come out of the Kwant repository in order to actually run the tests, or Kwant will complain.
If anyone does try to test, if they could reply to this thread with output/problems it would be much appreciated
Happy kwanting,
Joe
On 7 August 2015 at 14:29, Christoph Groth <christoph.groth@cea.fr> wrote:
Hi Joe,
I think it’s OK if we require Python 3.4 for the Python 3 version of Kwant. This decision would only hurt people who are keen to use Python 3 with Kwant now, but who for some reason are bound to older versions of it. And these (very few or none, I suppose) people can just continue to use Python-2-based Kwant a bit longer.
Christoph