Module has not attribute

Hello,
I have a problem installing modules. when updating I have this error:

 Traceback (most recent call last):
      File "bin/trytond-admin", line 23, in <module>
        admin.run(options)
      File "/home/jmeuh/Workspace/hg_trytond-5.8/trytond/trytond/admin.py", line 53, in run
        activatedeps=options.activatedeps)
      File "/home/jmeuh/Workspace/hg_trytond-5.8/trytond/trytond/pool.py", line 152, in init
        self.start()
      File "/home/jmeuh/Workspace/hg_trytond-5.8/trytond/trytond/pool.py", line 105, in start
        register_classes()
      File "/home/jmeuh/Workspace/hg_trytond-5.8/trytond/trytond/modules/__init__.py", line 345, in register_classes
        the_module.register()
      File "/home/jmeuh/Workspace/hg_trytond-5.8/trytond/trytond/modules/country/__init__.py", line 11, in register
        country.Country,
    AttributeError: module 'trytond.modules.country.country' has no attribute 'Country'

Installation source : hg clone https://hg.tryton.org/tryton-env -b 5.8 hg_trytond-5.8

Thanks for help

Did you run correctly the .hooks/link_modules ?
It looks like you are missing files or having non consistent state in the repository.

No, but a few months ago I installed it without any problem.

What is .hooks / link_modules used for?
How to run it?

Check the README in tryton-env repository.

Thanks for the answer which solves the problem but the result does not have the one I am looking for. I am using a script to generate the links of a chosen module and its dependencies. I think he’s the one who’s breaking the problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.