since november the 19th there is version 4.2 of tinyerp available. would be nice to have an ebuild :) Reproducible: Always Steps to Reproduce:
(In reply to comment #0) > since november the 19th there is version 4.2 of tinyerp available. would be > nice to have an ebuild :) > +1
Created attachment 145366 [details] tinyerp client 4.2.2 ebuild
Created attachment 145368 [details] tinyerp server 4.2.2 ebuild
Created attachment 145370 [details, diff] patch for custom ssl key/cert file support this patch add --ssl_key_file (-K) and --ssl_cert_file (-C) inspired by http://tiny.be/pipermail/tinyerp-devel/2006-December/000066.html
Created attachment 145372 [details] tinyerp-server conf.d file
Created attachment 145373 [details] tinyerp-server init.d file
Created attachment 145374 [details] tinyerp-server init.d file
I've added the ebuilds I use at work, they're based on the ebuild for version 4.0.3. I make some modif to init.d script to use a config file for server instead of passing all params to command line (this prevent showing DB password to everyone issuing a `ps') Cheers,
*** Bug 216209 has been marked as a duplicate of this bug. ***
Created attachment 152175 [details] improved tinyerp client 4.2.2 ebuild
(In reply to comment #10) > Created an attachment (id=152175) [edit] > improved tinyerp client 4.2.2 ebuild > I get errors here. $ tinyerp-client Traceback (most recent call last): File "./tinyerp-client.py", line 93, in <module> import modules File "/usr/lib/python2.5/site-packages/tinyerp-client/modules/__init__.py", line 30, in <module> import gui File "/usr/lib/python2.5/site-packages/tinyerp-client/modules/gui/__init__.py", line 29, in <module> import main File "/usr/lib/python2.5/site-packages/tinyerp-client/modules/gui/main.py", line 40, in <module> import rpc File "/usr/lib/python2.5/site-packages/tinyerp-client/rpc.py", line 37, in <module> import common File "/usr/lib/python2.5/site-packages/tinyerp-client/common/__init__.py", line 29, in <module> from common import * File "/usr/lib/python2.5/site-packages/tinyerp-client/common/common.py", line 68, in <module> terp_path_pixmaps('tinyerp-icon-32x32.png')) TypeError: pixbuf_new_from_file() argument 1 must be string, not bool
(In reply to comment #3) > Created an attachment (id=145368) [edit] > tinyerp server 4.2.2 ebuild > I cannot start tinyerp server. I did the following things: # emerge -av tinyerp-server tinyerp-client # emerge --config =app-office/tinyerp-server-4.2.2 # createdb -U postgres -O terp --encoding=UNICODE terp Then I run # /etc/init.d/tinyerp start tinyerp | * Starting TinyERP ... tinyerp | * start-stop-daemon: /usr/bin/python died [ !! ] tinyerp | * ERROR: tinyerp failed to start There is nothing in tinyerp.log. I found the following command in TinyERP's official installation document and I tried. # tinyerp-server --init=all --pidfile /var/run/tinyerp/tinyerp.pid --logfile=/var/log/tinyerp/tinyerp.log -s I was asked for the role of 'root'. I created a user of 'root' in pg and run the command again. Some tables were added in the terp database. But the /etc/init.d/tingerp still failed in the same. I also tried tinyerp-server-4.0.3, which is in arch portage tree, and the results is the same. my system info: Portage 2.1.5_rc5 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 i686) ================================================================= System uname: 2.6.25-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Timestamp of tree: Thu, 15 May 2008 00:22:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.2-r2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org" LANG="zh_CN.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="zh_CN" MAKEOPTS="-j12" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/desktop-effects /usr/local/layman/pro-audio /usr/local/layman/science /usr/local/layman/sunrise /usr/local/layman/emacs" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X acpi alsa bash-completion bitmap-fonts bzip2 cjk crypt cups dbus dri dvd fortran gdbm gif gtk hal iconv jpeg latex mmx mmxext mp3 mudflap ncurses nls nptl nptlonly openmp pam pcre pdf png postgres profile readline reflection sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts ucs2 unicode vhosts x86 xft xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_dbd authn_default authz_default authz_host autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #11) > I get errors here. > terp_path_pixmaps('tinyerp-icon-32x32.png')) > TypeError: pixbuf_new_from_file() argument 1 must be string, not bool > you have to remove the old config file in your personal folder. rm ~/.terprc
(In reply to comment #13) > (In reply to comment #11) > > I get errors here. > > terp_path_pixmaps('tinyerp-icon-32x32.png')) > > TypeError: pixbuf_new_from_file() argument 1 must be string, not bool > > > > you have to remove the old config file in your personal folder. > > rm ~/.terprc > I did so and got the same error. I tried tinyerp-client-4.2.2.ebuild. It works fine.
(In reply to comment #12) > > I cannot start tinyerp server. I did the following things: > I changed the tinyerp-init.d and It works now. # diff -d /etc/init.d/tinyerp /usr/local/portage/app-office/tinyerp-server/files/tinyerp-init.d 20c20 < start-stop-daemon --start --quiet --background --user terp:terp --pidfile=/var/run/tinyerp/tinyerp.pid --startas /usr/bin/tinyerp-server -- ${SERVER_OPTS} --- > start-stop-daemon --start --quiet --background --chuid terp:terp --pidfile=/var/run/tinyerp/tinyerp.pid --startas /usr/bin/tinyerp-server --exec /usr/bin/python -- ${SERVER_OPTS} --pidfile=/var/run/tinyerp/tinyerp.pid --logfile=/var/log/tinyerp/tinyerp.log
Hello, i open a new bug #224475 for the cvs version of the ebuild based on yours. I hope it will not confuse gentoo users. The cvs doesn't suffer from the substring() failure when it is used with postgresql 8.3 and over.
Created attachment 155685 [details] even better tinyerp client 4.2.2 ebuild :) updated version of this ebuild * dependency * path (pixmaps) * download location (openerp.com)
Created attachment 155723 [details] improved tinyerp-server init.d file
what can be done to get this ebuilds added? what would i have to do to become a maintainer of this package?
(In reply to comment #19) > what can be done to get this ebuilds added? what would i have to do to become a > maintainer of this package? > Julian: ebuilds look good. I will agree to proxy maintain this for you if you will: a) be a liaison between upstream and Gentoo. I do not have time to maintain a relationship with upstream b) fix all bugs (that you can) that other users submit. ie. You will be CC'd on all relevant bugs. c) maintain an active presence on bugzilla ;) Other open tinyerp bugs: bug #224475 & bug #229699 Let me know what you think. I am doing this because you expressed interest and I like Gentoo users to be involved with stuff like this. I checked out the website and it looks like we will have to rename this package to openerp soon.
Hi, I tried to install the openerp-server-4.2.2 ebuild like described. After the installation I tried to start the server-daemon but it stoped with an error-message: # /etc/init.d/tinyerp start * Starting TinyERP ... /sbin/start-stop-daemon: user `terp:terp' not found (Success) [ !! ] Bur user terp and group terp are existing on that machine after the installtion. The postgre database is also fresh and looks like: # psql -l Name | Owner | Encoding -----------+----------+----------- template0 | postgres | SQL_ASCII template1 | postgres | SQL_ASCII terp | terp | UNICODE Here my emerge --info output: # emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-028stab051 i686) ================================================================= System uname: 2.6.18-028stab051 i686 Pentium III (Katmai) Timestamp of tree: Tue, 01 Jul 2008 17:00:02 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /sbin/rc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/eigene" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb cli cracklib crypt curl dri fortran gd iconv idn imagemagick ipv6 isdnlog jpeg jpeg2k ldap midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php png postgres pppd python readline reflection session spl ssl svg tcpd threads tiff truetype unicode wmf x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #21) > sys-apps/baselayout: 1.12.11.1 <= atm it just works with baselayout 2 - maybe someone can help me to fix it.
Created attachment 165903 [details, diff] --exec obsoletes --startas I guess this is not the right place but I've found (and fixed) why python dies when /etc/init.d/tinyerp starts: both --startas and --exec are given and the latter obsoletes the former. Here's the patch.
Note my patch fixes also version 4.0.3, which is why I wrote it in fact.
maybe we should have a look on tryton http://www.tryton.org/
Hmm, it's called Open ERP now and there's a 5.* series out. www.tinyerp.com redirects to www.openerp.com. Downloads to be found at [1]. [1] http://www.openerp.com/en/downloads.html
I installed (and use it) openerp-server and -client 5.0.0 without writing an ebuild. I had to install all dependencies with Python 2.5, if I use Python 2.6 it wasn't able to generate the necessary database. The following packages needed to be installed (server): dev-python/psycopg:2 with USE-flag mxdatetime, dev-python/imaging, dev-python/reportlab, dev-python/pychart, media-gfx/pydot, dev-python/pyxml, dev-python/lxml, dev-libs/libxslt, dev-python/pytz, dev-python/vobject. dev-python/pypgsql will not be needed. client: x11-libs/gtk+:2, gnome-base/libglade, dev-python/matplotlib, dev-python/psycopg:2 Use-flag mxdatetime, dev-python/pyxml, dev-python/pytz, x11-libs/hippo-canvas (not in the tree). If someone write an ebuild, maybe I can provide some help.
Ebuilds have been removed → maintainer-wanted
*** Bug 224475 has been marked as a duplicate of this bug. ***
I added openerp-client to the tree today. I also have the server and web components working in a private overlay, will probably add them later but I want to work a bit more on the init script. It is also possible that the current ebuild lacks some dependencies. Please open a separate bug for that and CC me. Note: upstream location for the tarball also totally sucks as they move the file as soon as there is a newer release :(