c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00115
[Bug 622302] Re: unable to run "python setup.py install" with Py 2.5 (ubuntu 8.04). Py 2.6 required
Hi there,
Apparently this issue is now fixed in current revisions of openerp-
server/setup.py , and hopefully python2.6 is not a requirement from now
onwards (to be confirmed):
# backports os.walk with followlinks from python 2.6
def walk_followlinks(top, topdown=True, onerror=None, followlinks=False):
from os.path import join, isdir, islink
from os import listdir, error
try:
names = listdir(top)
except error, err:
if onerror is not None:
onerror(err)
return
dirs, nondirs = [], []
for name in names:
if isdir(join(top, name)):
dirs.append(name)
else:
nondirs.append(name)
if topdown:
yield top, dirs, nondirs
for name in dirs:
path = join(top, name)
if followlinks or not islink(path):
for x in walk_followlinks(path, topdown, onerror, followlinks):
yield x
if not topdown:
yield top, dirs, nondirs
if sys.version_info < (2, 6):
os.walk = walk_followlinks
DIFF FILE BETWEEN OLD FILE AND CURRENT ONE:
diff setup.py /tmp/setup.py
35,36c35,36
< from setuptools import setup, find_packages
< from setuptools.command.install import install
---
> from distutils.core import setup, Command
> from distutils.command.install import install
54,84c54,78
< # backports os.walk with followlinks from python 2.6
< def walk_followlinks(top, topdown=True, onerror=None, followlinks=False):
< from os.path import join, isdir, islink
< from os import listdir, error
<
< try:
< names = listdir(top)
< except error, err:
< if onerror is not None:
< onerror(err)
< return
<
< dirs, nondirs = [], []
< for name in names:
< if isdir(join(top, name)):
< dirs.append(name)
< else:
< nondirs.append(name)
<
< if topdown:
< yield top, dirs, nondirs
< for name in dirs:
< path = join(top, name)
< if followlinks or not islink(path):
< for x in walk_followlinks(path, topdown, onerror, followlinks):
< yield x
< if not topdown:
< yield top, dirs, nondirs
<
< if sys.version_info < (2, 6):
< os.walk = walk_followlinks
---
> required_modules = [
> ('lxml', 'lxml module: pythonic libxml2 and libxslt bindings'),
> ('mako', 'Mako template engine'),
> ('dateutil', "Extensions to the standard datetime module"),
> ('psycopg2', 'PostgreSQL module'),
> ('pychart', 'pychart module'),
> ('pydot', 'pydot module'),
> ('pytz', 'Timezone handling library for Python'),
> ('reportlab', 'reportlab module'),
> ('yaml', 'YAML parser and emitter for Python'),
> ('pywebdav', 'PyWebDAV is a standards compliant WebDAV server and library written in Python'),
> ]
--
unable to run "python setup.py install" with Py 2.5 (ubuntu 8.04). Py 2.6 required
https://bugs.launchpad.net/bugs/622302
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Server: New
Bug description:
I am unable to install openerp-server trunk with today's revisions
+ cd /home/openerp/production/openerp-server
+ python setup.py install
Traceback (most recent call last):
File "setup.py", line 157, in <module>
data_files = data_files(),
File "setup.py", line 93, in data_files
for addonname, add_path in find_addons():
File "setup.py", line 55, in find_addons
for root, _, names in os.walk(join('bin', 'addons'), followlinks=True):
TypeError: walk() got an unexpected keyword argument 'followlinks'