2.9.7 build fails: 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist
Hi, I am trying to build Zope 2.9.7 on Ubuntu Feisty Fawn 7.04. I am probably enjoying some sort of configuration error. Though I have installed python-tz package, the installer barks about missing 'Antarctica'. I haven't seen this error with previous Zope builds. moo@hacker:~/Zope-2.9.7-final$ make "/usr/bin/python2.4" "/home/moo/Zope-2.9.7-final/setup.py" \ build --build-base="/home/moo/Zope-2.9.7-final/build-base/python-2.4" --build-lib="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-lib" --build-scripts="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-scripts" --build-temp="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-temp" running build running build_py error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1 Any ideas? Cheers, Mikko -- Mikko Ohtamaa Associate, Red Innovation Ltd. +358 40 743 9707 www.redinnovation.com
Mikko Ohtamaa, on 2007-06-13:
I am trying to build Zope 2.9.7 on Ubuntu Feisty Fawn 7.04. I am probably enjoying some sort of configuration error. Though I have installed python-tz package, the installer barks about missing 'Antarctica'. I haven't seen this error with previous Zope builds.
moo@hacker:~/Zope-2.9.7-final$ make "/usr/bin/python2.4" "/home/moo/Zope-2.9.7-final/setup.py" \ build --build-base="/home/moo/Zope-2.9.7-final/build-base/python-2.4" --build-lib="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-lib" --build-scripts="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-scripts" --build-temp="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-temp" running build running build_py error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1
Any ideas?
Antarctica has melted due to global warming. I could not resist. :) It worked fine last time I tried it on my Ubuntu Feisty. You ran "./configure --with-python=python2.4", right? Yes, it looks like you did. Do you have the python2.4-dev package installed? -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ "Do not worry about your difficulties in computers, I can assure you mine are still greater."
error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1
Solved it. You must run python setup.py install as root and *do not* run make, configure, etc. before as a normal user. I think installer incorrectly creates something or doesn't fail properly in pre-build steps. I had to manually delete extracted distribution folder and then run it properly to get everything right. rm -rf Zope-2.9.7 tar -xzf Zope-2.9.7.tar sudo python setup.py install --prefix=/opt/Zope-2.9.7 Still getting this: error: mkpath: 'name' must be a string (got None) Cheers, Mikko -- Mikko Ohtamaa Associate, Red Innovation Ltd. +358 40 743 9707 www.redinnovation.com
Mikko Ohtamaa, on 2007-06-13:
error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1
Solved it.
You must run python setup.py install as root and *do not* run make, configure, etc. before as a normal user.
Ehm... you should not run "python setup.py install" at all! The usual way to install zope from a tar ball is: ./configure # or ./configure --with-python=python2.4 --prefix=directory-of-your-choice make sudo make install -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ "Do not worry about your difficulties in computers, I can assure you mine are still greater."
Maurits van Rees wrote:
Mikko Ohtamaa, on 2007-06-13:
error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1
Looks like there was python2.5-dev installed (7.04 Feisty Fawn default) though python2.4-dev was required. apt-get install python2.4-dev solved the problem once for all. -- Mikko Ohtamaa Associate, Red Innovation Ltd. +358 40 743 9707 www.redinnovation.com
Mikko Ohtamaa wrote:
Hi,
I am trying to build Zope 2.9.7 on Ubuntu Feisty Fawn 7.04. I am probably enjoying some sort of configuration error. Though I have installed python-tz package, the installer barks about missing 'Antarctica'. I haven't seen this error with previous Zope builds.
moo@hacker:~/Zope-2.9.7-final$ make "/usr/bin/python2.4" "/home/moo/Zope-2.9.7-final/setup.py" \ build --build-base="/home/moo/Zope-2.9.7-final/build-base/python-2.4" --build-lib="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-lib" --build-scripts="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-scripts" --build-temp="/home/moo/Zope-2.9.7-final/build-base/python-2.4/build-temp" running build running build_py error: package directory 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist make: *** [build] Error 1
Any ideas?
You don't have your system time zone set to "Antarctica" do you? --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com
participants (3)
-
J Cameron Cooper -
Maurits van Rees -
Mikko Ohtamaa