It is currently Sun Feb 12, 2012 8:29 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sun Dec 07, 2008 9:13 pm 
Offline

Joined: Sat Aug 18, 2007 7:14 am
Posts: 746
The problem is that hyphens are an illegal character in version strings for RPM spec files. So to fix this the version string in bin/release.py must be changed from:
version = '5.0.0-rc1'
to:
version = '5.0.0_rc1'
or:
version = '5.0.0.rc1'

Now the rpmbuild process will run.
I opened a bug: https://bugs.launchpad.net/openerp/+bug/306037

I still found another problem though:
Code:
$ python setup.py bdist_rpm
...
running build_scripts
creating build/scripts-2.5
copying openerp-server -> build/scripts-2.5
changing mode of build/scripts-2.5/openerp-server from 644 to 755
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.25605
+ umask 022
+ cd /home/greno/build/python-dist/openerp-server-5.0.0-rc1.1/build/bdist.linux-i686/rpm/BUILD
+ cd openerp-server-5.0.0_rc1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py install --root=/var/tmp/openerp-server-5.0.0_rc1-1-buildroot --record=INSTALLED_FILES
/usr/lib/python2.5/distutils/dist.py:263: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
running install
running build
running build_py
running build_scripts
copying openerp-server -> build/scripts-2.5
changing mode of build/scripts-2.5/openerp-server from 644 to 755
running install_lib
running install_scripts
copying build/scripts-2.5/openerp-server -> /var/tmp/openerp-server-5.0.0_rc1-1-buildroot/usr/bin
changing mode of /var/tmp/openerp-server-5.0.0_rc1-1-buildroot/usr/bin/openerp-server to 755
running install_data
error: can't copy 'bin/import_xml.rng': doesn't exist or not a regular file
error: Bad exit status from /var/tmp/rpm-tmp.25605 (%install)

I checked this file and it's there and readable. I see this in setup.py in data_files():
Code:
files.append(('.', [(opj('bin', 'import_xml.rng'))]))
...
files.append((openerp_site_packages, [('bin/import_xml.rng')]))

So why can't it find it?
I opened a bug: https://bugs.launchpad.net/openerp/+bug/306039

Regards,
Gerry


Last edited by greno on Mon Dec 08, 2008 5:50 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 07, 2008 9:24 pm 
Offline

Joined: Tue Mar 04, 2008 11:41 am
Posts: 319
Location: Athens, Greece
Perhaps it is not in bin/ .
You see, the whole bin/* is copied into the build directory and becomes ./


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 07, 2008 9:53 pm 
Offline

Joined: Sat Aug 18, 2007 7:14 am
Posts: 746
The file does not exist anywhere under the build directory. It's some type of problem with the data_files() method in setup.py.

Regards,
Gerry


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2008 2:11 pm 
Offline

Joined: Wed May 21, 2008 5:45 am
Posts: 83
Location: Indonesia - Surabaya
Hi,

From GTK-Client, Try to close a tab using <CTRL> + W Shotcut. It doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 14, 2008 2:49 am 
Offline

Joined: Tue Oct 07, 2008 2:16 pm
Posts: 104
Come back cause I don't understand why it doesn't work for me.

No problem with 4.2.3.4 but with the 5RC1.1, nothing ...

What I think is that the first initialisation was not well terminated and now all is stopped :

I created a user oerp
The same user in PostgreSQL and a database with the same name
Because nothing worked I did the following command and the result is above.
When I wanted to create a new DB from the client, I had errors about ir_module_module and s.o.

$ sudo su oerp -c 'openerp-server -d oerp -r oerp -v -i all -u all'
[Sun Dec 14 01:34:29 2008] INFO:objects:initialising distributed objects services
[Sun Dec 14 01:34:29 2008] INFO:pooler:Connecting to oerp
Traceback (most recent call last):
File "./openerp-server.py", line 131, in <module>
pooler.get_db_and_pool(tools.config['db_name'], update_module=True)
File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 49, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 347, in load_modules
cr.execute('update ir_module_module set state=%s where state=%s and name=%s', ('to install', 'uninstalled', module))
File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 69, in execute
res = self.obj.execute(sql, p)
psycopg.ProgrammingError: ERREUR: la relation « ir_module_module » n'existe pas

If somebody could help ...

About openerp-client I found that some permissions were not good.

_________________
COPAGEX - NANTES
http://www.copagex.fr


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 08, 2009 5:21 pm 
Offline

Joined: Tue Oct 07, 2008 2:16 pm
Posts: 104
I have this error one more time with final release :

"Couldn't import dot_parser, loading of dot files will not be possible."

_________________
COPAGEX - NANTES
http://www.copagex.fr


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP