Cannot install stock_split module


#1

I’m just installing a clean version of 4.8 in a virtual environment with Python 2. I installed all the necessary modules with pip and want to start the deamon. But I get

12473 140588205315904 [2019-01-09 11:56:56,690] INFO trytond.modules ir:registering classes
12473 140588205315904 [2019-01-09 11:56:56,690] INFO trytond.modules res:registering classes
12473 140588205315904 [2019-01-09 11:56:56,690] INFO trytond.modules currency:registering classes
12473 140588205315904 [2019-01-09 11:56:56,691] INFO trytond.modules tests:registering classes
12473 140588205315904 [2019-01-09 11:56:56,691] INFO trytond.modules ldap_authentication:registering classes
12473 140588205315904 [2019-01-09 11:56:56,748] INFO trytond.modules country:registering classes
12473 140588205315904 [2019-01-09 11:56:56,749] INFO trytond.modules party:registering classes
12473 140588205315904 [2019-01-09 11:56:56,754] INFO trytond.modules party_manufacturer:registering classes
12473 140588205315904 [2019-01-09 11:56:56,754] INFO trytond.modules company:registering classes
12473 140588205315904 [2019-01-09 11:56:56,758] INFO trytond.modules bank:registering classes
12473 140588205315904 [2019-01-09 11:56:56,761] INFO trytond.modules product:registering classes
12473 140588205315904 [2019-01-09 11:56:56,763] INFO trytond.modules account:registering classes
12473 140588205315904 [2019-01-09 11:56:56,781] INFO trytond.modules account_product:registering classes
12473 140588205315904 [2019-01-09 11:56:56,784] INFO trytond.modules product_attribute_strict:registering classes
12473 140588205315904 [2019-01-09 11:56:56,785] INFO trytond.modules stock:registering classes
12473 140588205315904 [2019-01-09 11:56:56,796] INFO trytond.modules asset:registering classes
12473 140588205315904 [2019-01-09 11:56:56,797] INFO trytond.modules product_barcode:registering classes
12473 140588205315904 [2019-01-09 11:56:56,798] INFO trytond.modules product_price_list:registering classes
2019-01-09 11:56:56,799] INFO trytond.modules stock_split:registering classes
Traceback (most recent call last):
  File "/home/tryton/upgrade248/bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/tryton/upgrade248/lib/python2.7/site-packages/trytond/admin.py", line 54, in run
    installdeps=options.installdeps)
  File "/home/tryton/upgrade248/lib/python2.7/site-packages/trytond/pool.py", line 152, in init
    self.start()
  File "/home/tryton/upgrade248/lib/python2.7/site-packages/trytond/pool.py", line 105, in start
    register_classes()
  File "/home/tryton/upgrade248/lib/python2.7/site-packages/trytond/modules/__init__.py", line 381, in register_classes
    the_module.register()
  File "/home/tryton/upgrade248/lib/python2.7/site-packages/trytond/modules/stock_split/__init__.py", line 11, in register
    stock.SplitMoveStart,
AttributeError: 'module' object has no attribute 'SplitMoveStart'

I’m on CentOS 7.6 with Python 2.7.5 Can that be the problem?


(Cédric Krier) #2

It looks like the installation is corrupted. The stock module in stock_split has well a SplitMoveStart class.
Please check the stock.py file and compare to the one in the repository. If necessary reinstall the module.


#3

Installation worked correctly (files etc were ok) but got corrupted by a command I executed afterwards. Did a pip uninstall trytond-stock_split, hard removed the stock_split directory from trytond/modules/ and installed the module again. Now it worked flawlessly!


(system) closed #4

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