health
[Top][All Lists]
Advanced

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

Re: [Health] GNU Health Installation issue


From: Luis Falcon
Subject: Re: [Health] GNU Health Installation issue
Date: Sat, 10 Dec 2011 08:54:56 -0300

Excellent Paras !

Let us know how it goes.
On Sat, Dec 10, 2011 at 1:47 AM, Paras Jasani <address@hidden> wrote:
Thanks Guys

The server started becoz of the all the help i received from Hedayat, Cedric and Luis. Couple of things i noticed.

1) Ubuntu has its own version of trytond and messages. (As when the command didn't run it said i should install it using apt-get install tryontond-server and apt-get install tryton-client.
It will do this with other packages also if it finds the binary in the repository list. 

2) Uninstalling trytond removes all modules under trytond/modules but not under trytond/site-packages/  So when the script for trytond_health_module runs its detects the site-packages/ folders and the requirement is satisfied not completing the install.
Probably using the "--purge" argument (apt-get remove --purge) should get rid of it. Let me know if it works.

That's why local installation (both with the configure script or pip --user) makes it much easier in that sense. Everything in one directory :-) 

3) Even now in order to run tryton client i have to use sudo command otherwise it gives a Permission Denied error for Known-Hosts file.
You should be able to run GNU Health without sudo (that's the way i do it) if you installed it locally. 

Now i will explore the health module further. Its a great contribution by the community I am looking forward to successfully implementing it.
Great ! We will be releasing a new version with bug fixes, translations and user profiles on the 26th, if no major bug shows up in the middle.
 
Best regards
Luis


Thanks
Paras

On Fri, Dec 9, 2011 at 10:43 AM, Luis Falcon <address@hidden> wrote:
Hi Paras !

On Fri, Dec 9, 2011 at 6:42 AM, Paras Jasani <address@hidden> wrote:
> Hi Hedayat
>
> I deleted packages from Ubuntu repositories and reinstalled trytond using
> pip installer. The following thing is happening
>
> address@hidden:~/.local/bin$ ls
> tryton  trytond
> address@hidden:~/.local/bin$ trytond
> The program 'trytond' is currently not installed.  You can install it by
> typing:
> sudo apt-get install tryton-server
>
You have to invoke it with the from the local dir (eg, "./trytond" and
not just "trytond" ), since is not in your $PATH.

Best
Luis
> I have also removed /etc/trytond.conf
>
> I am not sure why is it saying trytond is not installed even though I have
> it installed.
>
> I appreciate your responses.
>
> Thanks
> Paras
>
>
>
>
>
> On Thu, Dec 8, 2011 at 9:18 AM, Hedayat Vatankhah <address@hidden>
> wrote:
>>
>> Hi Paras,
>>
>> Looks like that you've installed tryton from both Ubuntu repositories (as
>> the binary refers to /usr/bin/trytond) which is tryton version 2.0 and using
>> python pip installer (which installs tryton 2.2). Remove packages installed
>> from Ubuntu repositories and also your /etc/trytond.conf, and you should be
>> able to run tryton from your ~/.local/bin/
>>
>>
>> Good luck,
>>
>> Hedayat
>>
>>
>> Paras Jasani <address@hidden> wrote on Thu, 8 Dec 2011 04:09:21
>> -0500:
>>
>> New to Ubuntu and Tryton. I have been trying to install gnu health. I
>> followed all instructions given in wiki page. When i try to boot the tryton
>> server it gives the following error
>>
>> address@hidden:~$ trytond
>> Traceback (most recent call last):
>> � File "/usr/bin/trytond", line 30, in <module>
>> ��� trytond.server.TrytonServer().run()
>> TypeError: __init__() takes exactly 2 arguments (1 given)
>>
>>
>> when i use tryton -c trytond
>> address@hidden:~$ tryton -c trytond
>>
>> (tryton:4308): Gtk-WARNING **: Unable to locate theme engine in
>> module_path: "pixmap",
>>
>> (tryton:4308): Gtk-WARNING **: Unable to locate theme engine in
>> module_path: "pixmap",
>>
>> (tryton:4308): Gtk-WARNING **: Unable to locate theme engine in
>> module_path: "pixmap",
>>
>> (tryton:4308): Gtk-WARNING **: Unable to locate theme engine in
>> module_path: "pixmap",
>> Traceback (most recent call last):
>> � File "/usr/bin/tryton", line 37, in <module>
>> ��� import tryton
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/__init__.py",
>> line 3, in <module>
>> ��� import client
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/client.py", line
>> 19, in <module>
>> ��� import tryton.common as common
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/common/__init__.py",
>> line 3, in <module>
>> ��� from common import *
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/common/common.py",
>> line 25, in <module>
>> ��� import tryton.rpc as rpc
>> � File "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/rpc.py",
>> line 31, in <module>
>> ��� _FINGERPRINTS = Fingerprints()
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/fingerprints.py",
>> line 13, in __init__
>> ��� self.load()
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/fingerprints.py",
>> line 25, in load
>> ��� self[host] = sha1
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/fingerprints.py",
>> line 40, in __setitem__
>> ��� self.save()
>> � File
>> "/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/fingerprints.py",
>> line 29, in save
>> ��� with open(KNOWN_HOSTS_PATH, 'w') as known_hosts:
>> IOError: [Errno 13] Permission denied:
>> '/home/gnuhealth/.config/tryton/2.2/known_hosts'
>>
>> Can some please help me as its important to run the gun health module to
>> take in the patient records.
>>
>> Thanks
>> paras
>>
>>
>



--
Luis Falcon
GNU Health
http://health.gnu.org





--
Luis Falcon
GNU Health
http://health.gnu.org

reply via email to

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