I'm trying to convert X12 to JSON file. The aim is to prepare/convert/amend data in a JSON file, then to consume this JSON file in a communication channel to import into Odoo. At this phase, I only proceed to JSON conversion, and simply try to store the JSON file in a folder. XML RPC with Odoo is the next phase.
It seems I'm on the right way, but I face an error I do not understand : AttributeError: 'list' object has no attribute 'partition'
Setting log_level to DEBUG does not give me more information.
20171213 10:55:04 INFO engine : served at port: "8080".
20171213 10:55:04 INFO engine : platform: "Linux-4.4.0-103-generic-x86_64-with-Ubuntu-16.04-xenial".
20171213 10:55:04 INFO engine : machine: "x86_64".
20171213 10:55:04 INFO engine : python version: "2.7.12".
20171213 10:55:04 INFO engine : django version: "(1, 7, 11, 'final', 0)".
20171213 10:55:04 INFO engine : bots version: "3.2.0".
20171213 10:55:04 INFO engine : bots installation path: "/usr/local/lib/python2.7/dist-packages/bots".
20171213 10:55:04 INFO engine : config path: "/usr/local/lib/python2.7/dist-packages/bots/config".
20171213 10:55:04 INFO engine : botssys path: "/usr/local/lib/python2.7/dist-packages/bots/botssys".
20171213 10:55:04 INFO engine : usersys path: "/usr/local/lib/python2.7/dist-packages/bots/usersys".
20171213 10:55:04 INFO engine : DATABASE_ENGINE: "django.db.backends.postgresql_psycopg2".
20171213 10:55:04 INFO engine : DATABASE_NAME: "botsdb".
20171213 10:55:04 INFO engine : DATABASE_USER: "bots".
20171213 10:55:04 INFO engine : DATABASE_HOST: "127.0.0.1".
20171213 10:55:04 INFO engine : DATABASE_PORT: "5432".
20171213 10:55:04 INFO engine : DATABASE_OPTIONS: "{}".
20171213 10:55:04 INFO engine : Connected to database.
20171213 10:55:04 DEBUG engine : No import of module "/usr/local/lib/python2.7/dist-packages/bots/usersys/routescripts/botsengine": No module named botsengine.
20171213 10:55:04 INFO engine : Run "new".
20171213 10:55:04 INFO engine : Run active routes from database that are in default run: "[u'Partner_850_Odoo']".
20171213 10:55:04 DEBUG engine : No import of module "/usr/local/lib/python2.7/dist-packages/bots/usersys/routescripts/Partner_850_Odoo": No module named Partner_850_Odoo.
20171213 10:55:04 INFO engine : Running route Partner_850_Odoo 1
20171213 10:55:04 DEBUG engine : Start communication channel "Partner_In" type file in.
20171213 10:55:04 DEBUG engine : No import of module "/usr/local/lib/python2.7/dist-packages/bots/usersys/communicationscripts/Partner_In": No module named Partner_In.
20171213 10:55:04 DEBUG engine : Finished communication channel "Partner_In" type file in.
20171213 10:55:04 DEBUG engine : Start preprocessing "mailbag" for file "440".
20171213 10:55:04 DEBUG engine : File written: "442".
20171213 10:55:04 DEBUG engine : OK preprocessing "mailbag" for file "440".
20171213 10:55:04 DEBUG engine : No import of module "/usr/local/lib/python2.7/dist-packages/bots/usersys/mappings/translation": No module named translation.
20171213 10:55:04 DEBUG engine : Start translating file "442" editype "x12" messagetype "x12".
20171213 10:55:04 DEBUG engine : Imported "/usr/local/lib/python2.7/dist-packages/bots/usersys/grammars/x12/x12".
20171213 10:55:04 DEBUG engine : Read edi file "442".
20171213 10:55:04 DEBUG engine : Imported "/usr/local/lib/python2.7/dist-packages/bots/usersys/grammars/x12/850005010".
20171213 10:55:04 DEBUG engine : Imported "/usr/local/lib/python2.7/dist-packages/bots/usersys/grammars/x12/x12".
20171213 10:55:04 DEBUG engine : Mappingscript "850005010_Odoo" translates messagetype "850005010" to messagetype "OdooSaleOrder".
20171213 10:55:04 DEBUG engine : Imported "/usr/local/lib/python2.7/dist-packages/bots/usersys/mappings/x12/850005010_Odoo".
20171213 10:55:04 DEBUG engine : Run userscript "main" in "/usr/local/lib/python2.7/dist-packages/bots/usersys/mappings/x12/850005010_Odoo".
20171213 10:55:04 DEBUG engine : Mappingscript "850005010_Odoo" finished.
20171213 10:55:04 DEBUG engine : Start writing output file editype "json" messagetype "OdooSaleOrder".
20171213 10:55:04 DEBUG engine : Imported "/usr/local/lib/python2.7/dist-packages/bots/usersys/grammars/json/OdooSaleOrder".
20171213 10:55:04 DEBUG engine : No import of module "/usr/local/lib/python2.7/dist-packages/bots/usersys/partners/json/ME_TEST": No module named ME_TEST.
20171213 10:55:04 DEBUG engine : Translated input file "442".
20171213 10:55:04 DEBUG engine : Finished route Partner_850_Odoo 1
20171213 10:55:04 INFO engine : Bots Report; type: new, time: 2017-12-13 10:55:04
Bots engine indicates it started writing the output file, but I can't find any trace of this file, including botssys/data. In this folder only edi files (incoming)