health
[Top][All Lists]
Advanced

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

Re: [Health] installation problem on unix


From: Dirk Willems
Subject: Re: [Health] installation problem on unix
Date: Sun, 20 Aug 2017 00:23:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hello Luis,


Thanks,

The package coreutils did the job ;)


2017-08-19 21:25:58 [INFO] Installation of GNU Health version 3.2.1 successful !


however I had to modify the gnuhealth-setup script

get_url() {
    # $1 : Module name
    # return : URL to download
    echo ${TRYTON_BASE_URL}/${TRYTON_VERSION}/$(wget --quiet -O- ${TRYTON_BASE_URL}/${TRYTON_VERSION} | gegrep -o "${1}-${TRYTON_VERSION}.[0-9\.]+.tar.gz" | gsort -V | tail -1)
}


 # Copy Tryton configuration files
   
    cp -r ${GNUHEALTH_INST_DIR}/config/* ${CONFIG_DIR} || bailout


And the script .gnuhealthrc

# Get the most current Tryton server version
# It should only be one trytond, but just in case..
TRYTOND=`ls -1d ${GNUHEALTH_DIR}/tryton/server/trytond-* | gegrep -o "trytond-[0-9\.]+.[0-9\.]+.[0-9\.]+" | gsort -V | tail -1`


then I tried to start the server ...


address@hidden:/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/bin $ ./trytond --verbose
23339 1 [2017-08-19 21:35:56,182] INFO trytond.config using /export/home/gnuhealth//gnuhealth/tryton/server/config/trytond.conf as configuration files
23339 1 [2017-08-19 21:35:56,599] WARNING py.warnings /export/home/gnuhealth/.local/lib/python3.6/site-packages/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin 'chart'
  warnings.warn("Unable to load plugin '%s'" % name)

23339 1 [2017-08-19 21:35:56,673] WARNING py.warnings /export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/modules/__init__.py:144: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  module_config.readfp(fp)

23339 1 [2017-08-19 21:35:56,706] INFO trytond.modules ir:registering classes
23339 1 [2017-08-19 21:35:56,706] INFO trytond.modules res:registering classes
23339 1 [2017-08-19 21:35:56,706] INFO trytond.modules currency:registering classes
23339 1 [2017-08-19 21:35:56,708] INFO trytond.modules webdav:registering classes
23339 1 [2017-08-19 21:35:56,709] INFO trytond.modules tests:registering classes
23339 1 [2017-08-19 21:35:56,709] INFO trytond.modules country:registering classes
23339 1 [2017-08-19 21:35:56,711] INFO trytond.modules product:registering classes
23339 1 [2017-08-19 21:35:56,714] INFO trytond.modules party:registering classes
23339 1 [2017-08-19 21:35:56,726] INFO trytond.modules calendar:registering classes
23339 1 [2017-08-19 21:35:56,792] INFO trytond.modules company:registering classes
23339 1 [2017-08-19 21:35:56,832] INFO trytond.modules account:registering classes
23339 1 [2017-08-19 21:35:56,860] INFO trytond.modules stock:registering classes
23339 1 [2017-08-19 21:35:56,876] INFO trytond.modules health:registering classes
23339 1 [2017-08-19 21:35:56,907] INFO trytond.modules account_product:registering classes
23339 1 [2017-08-19 21:35:56,911] INFO trytond.modules health_crypto:registering classes
23339 1 [2017-08-19 21:35:56,913] INFO trytond.modules health_icd10:registering classes
23339 1 [2017-08-19 21:35:56,914] INFO trytond.modules stock_lot:registering classes
23339 1 [2017-08-19 21:35:56,916] INFO trytond.modules health_gyneco:registering classes
23339 1 [2017-08-19 21:35:56,921] INFO trytond.modules health_archives:registering classes
23339 1 [2017-08-19 21:35:56,923] INFO trytond.modules health_surgery:registering classes
23339 1 [2017-08-19 21:35:56,926] INFO trytond.modules health_pediatrics:registering classes
23339 1 [2017-08-19 21:35:56,930] INFO trytond.modules health_socioeconomics:registering classes
23339 1 [2017-08-19 21:35:56,932] INFO trytond.modules health_icpm:registering classes
23339 1 [2017-08-19 21:35:56,933] INFO trytond.modules health_icd9procs:registering classes
23339 1 [2017-08-19 21:35:56,934] INFO trytond.modules health_iss:registering classes
23339 1 [2017-08-19 21:35:56,935] INFO trytond.modules health_reporting:registering classes
23339 1 [2017-08-19 21:35:56,939] INFO trytond.modules health_genetics:registering classes
23339 1 [2017-08-19 21:35:56,941] INFO trytond.modules health_icd10pcs:registering classes
23339 1 [2017-08-19 21:35:56,942] INFO trytond.modules health_imaging:registering classes
23339 1 [2017-08-19 21:35:56,945] INFO trytond.modules health_lab:registering classes
23339 1 [2017-08-19 21:35:56,949] INFO trytond.modules health_ophthalmology:registering classes
23339 1 [2017-08-19 21:35:56,951] INFO trytond.modules health_who_essential_medicines:registering classes
23339 1 [2017-08-19 21:35:56,952] INFO trytond.modules health_calendar:registering classes
23339 1 [2017-08-19 21:35:56,954] INFO trytond.modules health_ems:registering classes
23339 1 [2017-08-19 21:35:56,957] INFO trytond.modules health_lifestyle:registering classes
23339 1 [2017-08-19 21:35:56,960] INFO trytond.modules account_invoice:registering classes
23339 1 [2017-08-19 21:35:56,971] INFO trytond.modules health_pediatrics_growth_charts:registering classes
23339 1 [2017-08-19 21:35:56,972] INFO trytond.modules health_mdg6:registering classes
23339 1 [2017-08-19 21:35:56,973] INFO trytond.modules health_disability:registering classes
23339 1 [2017-08-19 21:35:56,976] INFO trytond.modules health_qrcodes:registering classes
23339 1 [2017-08-19 21:35:56,998] INFO trytond.modules health_crypto_lab:registering classes
23339 1 [2017-08-19 21:35:57,001] INFO trytond.modules health_genetics_uniprot:registering classes
23339 1 [2017-08-19 21:35:57,001] INFO trytond.modules health_history:registering classes
23339 1 [2017-08-19 21:35:57,002] INFO trytond.modules health_ntd:registering classes
23339 1 [2017-08-19 21:35:57,003] INFO trytond.modules health_inpatient:registering classes
23339 1 [2017-08-19 21:35:57,009] INFO trytond.modules account_invoice_stock:registering classes
23339 1 [2017-08-19 21:35:57,010] INFO trytond.modules health_pediatrics_growth_charts_who:registering classes
Traceback (most recent call last):
  File "./trytond", line 24, in <module>
    from trytond.application import app
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/application.py", line 8, in <module>
    Pool.start()
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/pool.py", line 95, in start
    register_classes()
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/modules/__init__.py", line 374, in register_classes
    mod_file, pathname, description)
  File "/opt/local/lib/python3.6/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/opt/local/lib/python3.6/imp.py", line 216, in load_package
    return _load(spec)
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/modules/health_pediatrics_growth_charts_who/__init__.py", line 24, in <module>
    from .wizard import *
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/modules/health_pediatrics_growth_charts_who/wizard/__init__.py", line 22, in <module>
    from .wizard_health_pediatrics_growth_charts_who import *
ModuleNotFoundError: No module named 'trytond.modules.health_pediatrics_growth_charts_who.wizard.wizard_health_pediatrics_growth_charts_who'


Any suggestion ?


Have a nice weekend !


Kind Regards,


Dirk



On 19-08-17 19:06, Luis Falcon wrote:
Hi Dirk !

On Fri, 18 Aug 2017 21:32:10 +0200
Dirk Willems <address@hidden> wrote:

Hello Luis,


Thank you very much for your feeback,

egrep: illegal option -- o

sort: illegal option -- V


Can you fix it or can you let me now which packages we have to
download ?

You need to have the GNU sort and egrep . The version of these two
commands on your OS are not compatible. You might want to check the
package "coreutils", or directly get those two GNU utilities.

Have a great weekend !
Luis




--
Dirk Willems
System Engineer


+32 (0)3 443 12 38
address@hidden

Quality. Passion. Personality

www.exitas.be | Veldkant 31 | 2550 Kontich

Illumos OmniOS Installation and Configuration Implementation Specialist.
Oracle Solaris 11 Installation and Configuration Certified Implementation Specialist.

reply via email to

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