python3 setup.py install fails with git maint/1.6.x

I just checkout out the 1.6 branch, attempted to install with python3: RefactoringTool: Line 695: You should use a for loop here Running from numpy source directory.Traceback (most recent call last): File "setup.py", line 196, in <module> setup_package() File "setup.py", line 170, in setup_package write_version_py() File "setup.py", line 117, in write_version_py from numpy.version import git_revision as GIT_REVISION ImportError: cannot import name git_revision Next, I built and installed with python2, with no problems. Then I attempted to install with python3 again, at which point git_revision was importable, presumably because it was provided during the python2 build. Darren

On Mon, Apr 4, 2011 at 9:15 PM, Darren Dale <dsdale24@gmail.com> wrote:
I just checkout out the 1.6 branch, attempted to install with python3:
I hope you mean the 1.6.0b1 tarball, not the current branch head? This problem is (or should have been) fixed. Just tried again with python3.2 and 1.6.0b2, installs fine. The line it fails on is only reached when a numpy/version.py exists, which is the case for source releases or if you did not clean your local git repo before building. If it is still a problem, can you check what's in version.py and give us details of OS etc.? Cheers, Ralf
RefactoringTool: Line 695: You should use a for loop here Running from numpy source directory.Traceback (most recent call last): File "setup.py", line 196, in <module> setup_package() File "setup.py", line 170, in setup_package write_version_py() File "setup.py", line 117, in write_version_py from numpy.version import git_revision as GIT_REVISION ImportError: cannot import name git_revision
Next, I built and installed with python2, with no problems. Then I attempted to install with python3 again, at which point git_revision was importable, presumably because it was provided during the python2 build.
Darren _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Mon, Apr 4, 2011 at 3:31 PM, Ralf Gommers <ralf.gommers@googlemail.com> wrote:
On Mon, Apr 4, 2011 at 9:15 PM, Darren Dale <dsdale24@gmail.com> wrote:
I just checkout out the 1.6 branch, attempted to install with python3:
I hope you mean the 1.6.0b1 tarball, not the current branch head? This problem is (or should have been) fixed.
It was the branch HEAD...
Just tried again with python3.2 and 1.6.0b2, installs fine. The line it fails on is only reached when a numpy/version.py exists, which is the case for source releases or if you did not clean your local git repo before building.
... but I think this was the case. I just deleted numpy/version.py, and build/, and now everything is ok. Darren

On 4 Apr 2011, at 21:41, Darren Dale wrote:
Just tried again with python3.2 and 1.6.0b2, installs fine. The line it fails on is only reached when a numpy/version.py exists, which is the case for source releases or if you did not clean your local git repo before building.
... but I think this was the case. I just deleted numpy/version.py, and build/, and now everything is ok.
I just tried the 1.6.0b2 tarball (which was literally just appearing on sourceforge while your mails were coming in ;-) and setup.py is doing ok there, too. Cheers, Derek

On Mon, Apr 4, 2011 at 1:31 PM, Ralf Gommers <ralf.gommers@googlemail.com>wrote:
On Mon, Apr 4, 2011 at 9:15 PM, Darren Dale <dsdale24@gmail.com> wrote:
I just checkout out the 1.6 branch, attempted to install with python3:
I hope you mean the 1.6.0b1 tarball, not the current branch head? This problem is (or should have been) fixed.
Just tried again with python3.2 and 1.6.0b2, installs fine. The line it fails on is only reached when a numpy/version.py exists, which is the case for source releases or if you did not clean your local git repo before building.
I had to remove the build directory to get past that problem. <snip> Chuck
participants (4)
-
Charles R Harris
-
Darren Dale
-
Derek Homeier
-
Ralf Gommers