exceptions when running trytond with gnu health 1.4.1 modules on Debian 6

230 views
Skip to first unread message

VAnDaLs

unread,
Nov 1, 2011, 3:34:49 PM11/1/11
to tryton
Hello,
I got the following when I ran trytond server with gnu health 1.4.1
modules
the tryton server was not installed, rather I ran it directly after I
downloaded it
################################################################################
[Tue Nov 01 21:09:46 2011] INFO:server:using /home/bashar/Desktop/
HardDiscDrivesURLS/Temp/trytond-2.2.0/etc/trytond.conf as
configuration file
[Tue Nov 01 21:09:46 2011] INFO:server:initialising distributed
objects services
[Tue Nov 01 21:09:46 2011] DEBUG:psycopg2:installed. Logging using
Python logging module
/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/trytond/
modules/__init__.py:28: UserWarning: Module pkg_resources was already
imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-
py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/dist-packages is
being added to sys.path
import pkg_resources
/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/trytond/
modules/__init__.py:28: UserWarning: Module site was already imported
from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-packages
is being added to sys.path
import pkg_resources
Traceback (most recent call last):
File "./trytond", line 104, in <module>
trytond.server.TrytonServer(options).run()
File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/
trytond/server.py", line 102, in run
Pool.start()
File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/
trytond/pool.py", line 71, in start
register_classes(reload_p=reload_p)
File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/
trytond/modules/__init__.py", line 344, in register_classes
for package in create_graph(get_module_list())[0]:
File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/trytond-2.2.0/
trytond/modules/__init__.py", line 160, in create_graph
raise Exception('Module %s not found' % module)
Exception: Module demo not found
##################################################################################################

I tried to run tryton server after I installed it and then installed
gnu health 1.4.1 using the configure script and I got the following:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%

/usr/local/bin/trytond:4: UserWarning: Module pkg_resources was
already imported from /usr/local/lib/python2.6/dist-packages/
setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/
dist-packages is being added to sys.path
import pkg_resources
/usr/local/bin/trytond:4: UserWarning: Module site was already
imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-
packages is being added to sys.path
import pkg_resources
[Tue Nov 01 21:17:08 2011] INFO:server:using default configuration
[Tue Nov 01 21:17:08 2011] INFO:server:initialising distributed
objects services
[Tue Nov 01 21:17:08 2011] DEBUG:psycopg2:installed. Logging using
Python logging module
Traceback (most recent call last):
File "/usr/local/bin/trytond", line 5, in <module>
pkg_resources.run_script('trytond==2.2.0', 'trytond')
File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-
py2.6.egg/pkg_resources.py", line 448, in run_script

File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-
py2.6.egg/pkg_resources.py", line 1166, in run_script
return self._get(self._fn(self.egg_info,name))
File "/usr/local/lib/python2.6/dist-packages/trytond-2.2.0-py2.6.egg/
EGG-INFO/scripts/trytond", line 104, in <module>
trytond.server.TrytonServer(options).run()
File "/usr/local/lib/python2.6/dist-packages/trytond-2.2.0-py2.6.egg/
trytond/server.py", line 102, in run
Pool.start()
File "/usr/local/lib/python2.6/dist-packages/trytond-2.2.0-py2.6.egg/
trytond/pool.py", line 71, in start
register_classes(reload_p=reload_p)
File "/usr/local/lib/python2.6/dist-packages/trytond-2.2.0-py2.6.egg/
trytond/modules/__init__.py", line 344, in register_classes
for package in create_graph(get_module_list())[0]:
File "/usr/local/lib/python2.6/dist-packages/trytond-2.2.0-py2.6.egg/
trytond/modules/__init__.py", line 192, in create_graph
raise Exception('%s unmet dependencies: %s' % (package, missings))
Exception: health_inpatient unmet dependencies: ['health']
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%
thanks in advance

Cédric Krier

unread,
Nov 1, 2011, 3:49:44 PM11/1/11
to tryton
On 01/11/11 12:34 -0700, VAnDaLs wrote:
> Hello,
> I got the following when I ran trytond server with gnu health 1.4.1
> modules
> the tryton server was not installed, rather I ran it directly after I
> downloaded it
> Exception: Module demo not found

It seems that you got a wrong Tryton demo module defined somewhere.

> I tried to run tryton server after I installed it and then installed
> gnu health 1.4.1 using the configure script and I got the following:

> Exception: health_inpatient unmet dependencies: ['health']

The module health is not installed.

--
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric...@b2ck.com
Website: http://www.b2ck.com/

Bashar

unread,
Nov 1, 2011, 3:54:08 PM11/1/11
to try...@googlegroups.com
how to get the health module installed ?
I installed the GNU health correctly.
how to resolve the demo module issue?
thanks!

Cédric Krier

unread,
Nov 1, 2011, 4:09:06 PM11/1/11
to try...@googlegroups.com
On 01/11/11 21:54 +0200, Bashar wrote:
> how to get the health module installed ?

Just install it. Simpliest way is to use pip [1]

> I installed the GNU health correctly.

It doesn't seem as the module 'health' is not find.

> how to resolve the demo module issue?

Remove it. I don't know what is this module.


[1] http://www.pip-installer.org/

PS: Please don't top-post and read
https://groups.google.com/d/topic/tryton/-IA9TLq5qag/discussion

Bashar

unread,
Nov 1, 2011, 4:27:12 PM11/1/11
to try...@googlegroups.com
On Tue, Nov 1, 2011 at 10:09 PM, Cédric Krier <cedric...@b2ck.com> wrote:
On 01/11/11 21:54 +0200, Bashar wrote:


>Just install it. Simpliest way is to use pip [1]
I tried to install gnu health using pip and got the following:
######################################################################################
/usr/lib/pymodules/python2.6/pip/baseparser.py:5: UserWarning: Module pkg_resources was already imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
/usr/lib/pymodules/python2.6/pip/baseparser.py:5: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
Downloading/unpacking trytond-health-profile
  Downloading trytond_health_profile-1.4.2.tar.gz
  Running setup.py egg_info for package trytond-health-profile
    /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module pkg_resources was already imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/dist-packages is being added to sys.path
    /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module setuptools was already imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/__init__.py, but /usr/lib/python2.6/dist-packages is being added to sys.path
    /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-packages is being added to sys.path

    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/build/trytond-health-profile/setup.py", line 72, in <module>
        """,
      File "/usr/lib/python2.6/distutils/core.py", line 113, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 223, in __init__
      File "/usr/lib/python2.6/distutils/dist.py", line 270, in __init__
        self.finalize_options()
      File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 256, in finalize_options
      File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 1918, in load
        parts = []
    ImportError: <module 'setuptools.dist' from '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py'> has no 'check_packages' attribute
    Complete output from command python setup.py egg_info:
    /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module pkg_resources was already imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/dist-packages is being added to sys.path

/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module setuptools was already imported from /usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/__init__.py, but /usr/lib/python2.6/dist-packages is being added to sys.path

/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-packages is being added to sys.path


Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/bashar/Desktop/HardDiscDrivesURLS/Temp/build/trytond-health-profile/setup.py", line 72, in <module>

    """,

  File "/usr/lib/python2.6/distutils/core.py", line 113, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 223, in __init__

  File "/usr/lib/python2.6/distutils/dist.py", line 270, in __init__

    self.finalize_options()

  File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 256, in finalize_options

  File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 1918, in load

    parts = []

ImportError: <module 'setuptools.dist' from '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py'> has no 'check_packages' attribute

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log
########################################################################################################

>It doesn't seem as the module 'health' is not find.
I don't know what's wrong cause I really installed GNU health completely!



thanks!

Cédric Krier

unread,
Nov 1, 2011, 5:20:00 PM11/1/11
to try...@googlegroups.com

I think you have something broken in your Python installation.

Bashar

unread,
Nov 1, 2011, 5:59:28 PM11/1/11
to try...@googlegroups.com
I have python versions 2.5,2.6,3,3.1 installed
my OS is Debian 6 squeeze
What I should do?

 
Reply all
Reply to author
Forward
0 new messages