[Zope3-Users] Problem: "Could not locate Zope software
installation!" - solution
Martin Kudlvasr
mkudlvasr at suse.cz
Mon Jan 16 13:31:49 EST 2006
> Ronald L Chichester wrote:
> > This, of course, begs the question of some 64-bit compatibility issue.
>
> That is a possibility, but we do have a 64-bit Athalon running here used
> in daily development with no problems (running Ubuntu).
the problem is really 64 compatibility issue.
When I look into mkzopeinstance script:
***
for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
d = os.path.join(swhome, *(parts + ("zope", "app", "appsetup")))
if os.path.isdir(d):
d = os.path.join(swhome, *parts)
sys.path.insert(0, d)
break
else:
try:
import zope.app.server
except ImportError:
print >>sys.stderr, "Could not locate Zope software
installation!"
sys.exit(1)
***
this means that first of directories $PREFIX/src, $PREFIX/lib/python,
$PREFIX/Lib/site-packages (suffixed by zope/app/appsetup) is added to
sys.path
BUT !!! when compiled on 64 architecture, zope compiles its files into
$PREFIX/lib64 directory, so the mkzopeinstance cannot import
zope.app.server and fails.
I succesfully used:
***
for parts in [("src",), ("lib", "python"), ("lib64", "python"), ("Lib",
"site-packages")]:
***
3.2.0-final has the same problem
I please anybody competent to fix this.
Thank you
Martin Kudlvasr
--
------------------------------
Martin Kudlvasr
pINgVINO VERITAS
More information about the Zope3-users
mailing list