health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] upgrade issue


From: Luis Falcon
Subject: Re: [Health] upgrade issue
Date: Sun, 14 Apr 2013 09:37:37 -0300

Hi Khay !

I noticed in from your mail that you are using "root" to run your
database . That is not good. I highly recommend a local user, and have
everything related to Tryton and GNU Health under that local user
directory.

It is key that you keep a good backup of your database. Make a couple
of copies and place some outside the current system (eg, a usb drive
).

This is what I suggest you to do :
a) Take the backup file you did of the database previous to the upgrade process
b) Install a fresh tryton and GNU Health in a local user directory
c) Make sure that you don't have any old trytond.conf lingering around
in your system from old system-wide installation (rename the
/etc/trytond.conf if you have it).
d) Do the upgrade of the database from that local environment. To make
sure you're using the local environment, prepend the "./" to the
trytond exec. So, do "./trytond --update" instead of "trytond
--update"

Let us know your progress.

All the best.


On Sun, Apr 14, 2013 at 3:45 AM, Khay Bagus <address@hidden> wrote:
> Dear Luis
>
> yes i first installed gnuhealth using pip
>
> now for the upgrade I am following the tutorial on wikibooks
> I managed to install health_services module using the sudo python setup.py
> install command in new module downloaded
>
> the thing now is that I get this error when run the command:
>
> sudo trytond --database=gnuhealth1 --update=all
> [Sun Apr 14 06:37:54 2013] INFO:server:using default configuration
> [Sun Apr 14 06:37:54 2013] INFO:server:initialising distributed objects
> services
> [Sun Apr 14 06:37:54 2013] INFO:database:connect to "gnuhealth1"
> [Sun Apr 14 06:37:54 2013] INFO:modules:ir:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:res:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:webdav:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:currency:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:test:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:product:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:country:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:calendar:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:party:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:company:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:health:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:stock:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:account:registering classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:health_socioeconomics:registering
> classes
> [Sun Apr 14 06:37:54 2013] INFO:modules:health_inpatient:registering classes
> /usr/local/lib/python2.7/dist-packages/trytond_health_inpatient-1.8.1-py2.7.egg/trytond/modules/health_inpatient/__init__.py:24:
> ImportWarning: Not importing directory
> '/usr/local/lib/python2.7/dist-packages/trytond_health_inpatient-1.8.1-py2.7.egg/trytond/modules/health_inpatient/wizard':
> missing __init__.py
>   from wizard import *
>
> Traceback (most recent call last):
>   File "/usr/local/bin/trytond", line 5, in <module>
>     pkg_resources.run_script('trytond==2.6.3', 'trytond')
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in
> run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in
> run_script
>     execfile(script_filename, namespace, namespace)
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/EGG-INFO/scripts/trytond",
> line 109, in <module>
>     trytond.server.TrytonServer(options).run()
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/server.py",
> line 135, in run
>     Pool(db_name).init(update=update, lang=lang)
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/pool.py",
> line 123, in init
>     self.start()
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/pool.py",
> line 75, in start
>     register_classes()
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/modules/__init__.py",
> line 347, in register_classes
>     mod_file, pathname, description)
>   File
> "/usr/local/lib/python2.7/dist-packages/trytond_health_inpatient-1.8.1-py2.7.egg/trytond/modules/health_inpatient/__init__.py",
> line 24, in <module>
>     from wizard import *
> ImportError: No module named wizard
>
> Can find a solution
>
> regards
>
> Khaizer
>
>
>
>
> On Sun, Apr 14, 2013 at 2:06 AM, Luis Falcon <address@hidden>
> wrote:
>>
>> Dear Khay
>>
>> On Sat, Apr 13, 2013 at 8:54 PM, Khay Bagus <address@hidden> wrote:
>> > thanx for the quick answer. i believe the services module is already
>> > installed because it was downloaded from the gnuhealth.latest.tar.gz.
>> > after
>> > that i extrated all the modules in trytond modules folder. when i try to
>> > update the database... then... comes the error in previows email.
>> >
>> It looks like you did the Tryton installation with "pip". Did you
>> install GNU Health with "pip" also ?
>> If so, it probably is looking at the wrong directory.
>>
>> Best regards
>>
>> > best
>> >
>> > On Apr 14, 2013 1:41 AM, "Luis Falcon" <address@hidden> wrote:
>> >>
>> >> Dear Khay
>> >>
>> >> On Sat, Apr 13, 2013 at 7:48 PM, Khay Bagus <address@hidden>
>> >> wrote:
>> >> > dear all,
>> >> >
>> >> > after trying to upgrade to the new 1.8 version get this error
>> >> >
>> >> > sudo trytond --database=gnuhealth1 --update=all
>> >> > [Sat Apr 13 22:42:31 2013] INFO:server:using default configuration
>> >> > [Sat Apr 13 22:42:31 2013] INFO:server:initialising distributed
>> >> > objects
>> >> > services
>> >> > [Sat Apr 13 22:42:31 2013] INFO:database:connect to "gnuhealth1"
>> >> > Traceback (most recent call last):
>> >> >   File "/usr/local/bin/trytond", line 5, in <module>
>> >> >     pkg_resources.run_script('trytond==2.6.3', 'trytond')
>> >> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499,
>> >> > in
>> >> > run_script
>> >> >     self.require(requires)[0].run_script(script_name, ns)
>> >> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line
>> >> > 1235,
>> >> > in
>> >> > run_script
>> >> >     execfile(script_filename, namespace, namespace)
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/EGG-INFO/scripts/trytond",
>> >> > line 109, in <module>
>> >> >     trytond.server.TrytonServer(options).run()
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/server.py",
>> >> > line 135, in run
>> >> >     Pool(db_name).init(update=update, lang=lang)
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/pool.py",
>> >> > line 123, in init
>> >> >     self.start()
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/pool.py",
>> >> > line 75, in start
>> >> >     register_classes()
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/modules/__init__.py",
>> >> > line 317, in register_classes
>> >> >     for package in create_graph(get_module_list())[0]:
>> >> >   File
>> >> >
>> >> >
>> >> > "/usr/local/lib/python2.7/dist-packages/trytond-2.6.3-py2.7.egg/trytond/modules/__init__.py",
>> >> > line 155, in create_graph
>> >> >     raise Exception('Module %s not found' % module)
>> >> > Exception: Module health_services not found
>> >> >
>> >> You need to install the health_services module. Please do so and then
>> >> repeat the upgrade process
>> >>
>> >> > as you see I cant even complete the database update process
>> >> >
>> >> > HELP!!!! please
>> >> >
>> >> > Khaizer
>> >> >
>> >> > --
>> >> >
>> >> > ***********************************************************************
>> >> >
>> >> > Dr. Khaizer Bagus
>> >> > Médico Generalista
>> >> >
>> >> > Khaizer Bagus, MD
>> >> > General Practitioner
>> >> >
>> >> > Tete, Matundo
>> >> >
>> >> > Email: address@hidden
>> >> > MSN:  address@hidden
>> >> > Skype name: khaybagus
>> >> >
>> >> >
>> >> > ************************************************************************
>> >>
>> >>
>> >>
>> >> --
>> >> Luis Falcon
>> >> President, GNU Solidario
>> >> http://health.gnu.org
>> >>
>> >
>>
>>
>>
>> --
>> Luis Falcon
>> President, GNU Solidario
>> http://health.gnu.org
>>
>
>
>
> --
> ***********************************************************************
>
> Dr. Khaizer Bagus
> Médico Generalista
>
> Khaizer Bagus, MD
> General Practitioner
>
> Tete, Matundo
>
> Email: address@hidden
> MSN:  address@hidden
> Skype name: khaybagus
>
> ************************************************************************



-- 
Luis Falcon
President, GNU Solidario
http://health.gnu.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]