health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] Development snapshot for upcoming 3.6 series [Was:Re: H


From: Cornelius Lee
Subject: Re: [Health-dev] Development snapshot for upcoming 3.6 series [Was:Re: Health-dev Digest, Vol 97, Issue 3]
Date: Wed, 11 Sep 2019 09:10:20 +0000

Hi Luis,

I have tried to uninstall any traces of tryton but encountered the following error:
Cannot uninstall requirement tryton, not installed

Upon closer inspection, I notice the following:
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

This would mean that pip is not installing the packages in the right location, ie.
~/.local/lib/python3.6/site-packages

However, I might be wrong on this(I suspect this might/might not have played an important role) but the following was what I did to get it up and running.
  1. Appended to the line below:
    vim  .gnuhealthrc
    #Add PYTHONPATH environment variable
    export PYTHONPATH=${GNUHEALTH_DIR}/tryton/server/${TRYTOND}:${GNUHEALTH_DIR}/tryton/server/config:{GNUHEALTH_DIR}/.local/lib/python3.6/site-packages
  2. cd home/gnuhealth/gnuhealth_35_daily_sept7_2019/gnuhealth-client-35
  3. sudo python setup.py build
  4. sudo python setup.py install
  5. See attached for the logs(build_logs.txt & install_logs.txt)
  6. cd /home/gnuhealth/gnuhealth_35_daily_sept7_2019/gnuhealth-client-35/bin
  7. python3 gnuhealth-client (it works!)
End of (bumpy)update: Gnuhealth-Client(snapshot_20190907).


However, I have noticed 2 problems:

  1.  After creating tables with the included sql script and populating the 'federation' DB with bash scripts, nothing appears after activating the 'health_federation' module on Gnuhealth 3.5 Client.
Upon checking the DB, there is indeed, 3 data entries in the 'people' table.
This is further confirmed when testing with httpie with the following command:

http --verify no --auth ITAPYT999HON:gnusolidario https://localhost:8443/people

The results are shown below(as documented in the respective URL):

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: close
Content-Length: 1342
Content-Type: application/json
Date: Wed, 11 Sep 2019 08:24:29 GMT
Server: gunicorn/19.7.1

[
    [
        {
            "active": true,
            "dob": "1984-10-05",
            "education": "tertiary",
            "ethnicity": "latino",
            "gender": "f",
            "id": "ITAPYT999HON",
            "lastname": "Cordara",
            "marital_status": "married",
            "name": "Cameron",
            "password": "$2b$12$Y9rX7PoTHRXhTO1H78Tan.8mVmyayGAUIveiYxu2Qeo0ZDRvJQ8/2",
            "profession": "teacher",
            "roles": [
                "end_user",
                "health_professional"
            ]
        }
    ],
    [
        {
            "active": true,
            "dob": "1985-10-04",
            "education": "tertiary",
            "ethnicity": "latino",
            "gender": "f",
            "id": "ESPGNU777ORG",
            "lastname": "Betz",
            "marital_status": "married",
            "name": "Ana",
            "password": "$2b$12$cjrKVGYEKUwCmVDCtEnwcegcrmECTmeBz526AAD/ZqMGPWFpHJ4FW",
            "profession": "teacher",
            "roles": [
                "end_user"
            ]
        }
    ],
    [
        {
            "active": true,
            "dob": "2008-10-12",
            "education": "tertiary",
            "ethnicity": "latino",
            "gender": "f",
            "id": "ARGBUE111FAV",
            "lastname": "Root",
            "marital_status": "married",
            "name": "Admin",
            "password": "$2b$12$McKDNgArdHKbUssD1fj64ecpdbJGMIt29ns7DGvqzqIT26W0dtJzi",
            "profession": "System Administrator",
            "roles": [
                "root"
            ]
        }
    ]
]


2. I am unable to log into the health DB via the gnuhealth 3.5 client even with the correct password.
I seem to be stuck at the password page. Any ideas about this? 

Please advise me if I am on the right track or am I missing something out?

Thank you.


Kind Regards,
Cornelius





From: Cornelius Lee <address@hidden>
Sent: Wednesday, September 11, 2019 9:58 AM
To: Luis Falcon <address@hidden>
Cc: address@hidden <address@hidden>
Subject: Re: Development snapshot for upcoming 3.6 series [Was:Re: [Health-dev] Health-dev Digest, Vol 97, Issue 3]
 
Hi Luis,

Thank you for your email and advice.

I was on leave yesterday and will be trying this out now and report back as instructed.

I look forward to the upcoming Gnuhealth 3.6 Client component too.


Kind Regards,
Cornelius


From: Luis Falcon <address@hidden>
Sent: Tuesday, September 10, 2019 5:18 PM
To: Cornelius Lee <address@hidden>
Cc: address@hidden <address@hidden>
Subject: Re: Development snapshot for upcoming 3.6 series [Was:Re: [Health-dev] Health-dev Digest, Vol 97, Issue 3]
 
Hi Cornelius !

On Mon, 9 Sep 2019 09:04:41 +0000
Cornelius Lee <address@hidden> wrote:

> Dear Luis,
>
> I have managed to install Gnuhealth3.5 server successfully.
> However, I am having trouble installing Gnuhealth3.5-Client on my
> machine.
>
> The following are my steps on the command-line:
>
>   1.  pip install pycairo
>   2.  cd
> /home/gnuhealth/gnuhealth_35_daily_sept7_2019/gnuhealth-client-35/ 3.
>  sudo python setup.py install 4.  Resolved several dependancies....
>   5.  gnuhealth-client
>
> I encounter the following error:
>
> File
> "/home/gnuhealth/.local/lib/python3.6/site-packages/tryton/client.py".
> line 108, in <module> import pygtk ModuleNotFoundError: No module
> named 'pygtk'
>
> Please advise.
Thanks for the feedback !

It looks like you have lingering old tryton clients around. GNU Health
client 3.5 (upcoming 3.6) does not use anymore pygtk.

Try uninstalling the tryton client :
$ pip3 uninstall tryton

Try it again and report, please.

PS: I will upload to pypi soon a development / preview version of the
client, so we can also try it from there.

Thank you !
Luis

--
Dr. Luis Falcon, M.D.
President, GNU Solidario
GNU Health: Freedom and Equity in Healthcare
www.gnuhealth.org
GPG Fingerprint :ACBF C80F C891 631C 68AA  8DC8 C015 E1AE 0098 9199
 
Join us at GNU Health Con 2019 https://www.gnuhealthcon.org

Attachment: build_logs.txt
Description: build_logs.txt

Attachment: install_logs.txt
Description: install_logs.txt


reply via email to

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