Re: [Zope3-Users] Problem: "Could not locate Zope software installation!" - solution

2006-01-16 Thread Jim Washington




My (local) fix was to make a symlink, lib64->lib, in the instance 
directory.  This also works.

Oops, I meant swhome directory.

-Jim Washington
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Problem: "Could not locate Zope software installation!" - solution

2006-01-16 Thread Jim Washington

Martin Kudlvasr wrote:

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.

  

This has been reported to the collector:

http://www.zope.org/Collectors/Zope3-dev/528

My (local) fix was to make a symlink, lib64->lib, in the instance 
directory.  This also works.


-Jim Washington
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Problem: "Could not locate Zope software installation!" - solution

2006-01-16 Thread Martin Kudlvasr
> 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

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users