Can't get dirmonitor to work

54 views
Skip to first unread message

Claus Villumsen

unread,
Oct 13, 2022, 1:48:22 PM10/13/22
to Bots Open Source EDI Translator
Hi All

I have not previously been using dirmonitor and now tried to set it up, but can't make it work.
I can manually run the route without any problems. But dirmonitor does not do anything when i place a file in the input folder. At least the engine never runs, so either it is not adding to the jobqueue or the jobqueue is not running the engine....

The installation is running on windows 10 server. 

  • I have the jobserverqueue, webserver and dirmonitor all running as services (installed via NSSM)
  • I have changed the configuration in Bots.Ini so i have a DirmonitorX section to point to my input directory as specified in the route input channel and also checked that the file mask is correct.
  • I also enabled the jobqueue in Bots.Ini leaving other configurations as standard
  • I installed pywin32 for python 2.7 and x64
  • restarted the server
What can i have missed, any obvious things to check besides above? I can provide more details of course, but if i missed something obvious i would start there;-)

In advance thanks a lot for any help!
Brgds
Claus Villumsen

Henk-Jan Ebbers

unread,
Oct 13, 2022, 4:29:07 PM10/13/22
to bots...@googlegroups.com
what does the log file say?

kind regards
Henk-Jan Ebbers

--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/de41cd83-d332-4fb1-be53-dfd16f092017n%40googlegroups.com.

Claus Villumsen

unread,
Oct 14, 2022, 5:18:24 AM10/14/22
to Bots Open Source EDI Translator
Hi Henk-Jan

Log files are as follows:

Dirmonitor:

20221014 11:12:31 INFO     : Send to queue "C:\Python27\Scripts\bots-engine.py -cconfig ".

Jobqueue:

20221014 11:12:32 INFO     : Added job 3, priority 5: ['C:\\Python27\\python.exe', 'C:\\Python27\\Scripts\\bots-engine.py', '-cconfig', '']
20221014 11:12:35 INFO     : Starting job 3
20221014 11:12:39 INFO     : Finished job 3, elapsed time 0:00:04, result 2


Engine:

20221014 11:12:38 INFO     engine : served at port: "8090".
20221014 11:12:39 INFO     engine : platform: "Windows-10-10.0.17763".
20221014 11:12:39 INFO     engine : machine: "AMD64".
20221014 11:12:39 INFO     engine : python version: "2.7.18".
20221014 11:12:39 INFO     engine : django version: "(1, 6, 2, 'final', 0)".
20221014 11:12:39 INFO     engine : bots version: "3.2.0".
20221014 11:12:39 INFO     engine : bots installation path: "C:\Python27\lib\site-packages\bots".
20221014 11:12:39 INFO     engine : config path: "C:\Python27\lib\site-packages\bots\config".
20221014 11:12:39 INFO     engine : botssys path: "C:\Python27\lib\site-packages\bots\botssys".
20221014 11:12:39 INFO     engine : usersys path: "C:\Python27\lib\site-packages\bots\usersys".
20221014 11:12:39 INFO     engine : DATABASE_ENGINE: "django.db.backends.sqlite3".
20221014 11:12:39 INFO     engine : DATABASE_NAME: "C:\Python27\lib\site-packages\bots\botssys/sqlitedb/botsdb".
20221014 11:12:39 INFO     engine : DATABASE_USER: "".
20221014 11:12:39 INFO     engine : DATABASE_HOST: "".
20221014 11:12:39 INFO     engine : DATABASE_PORT: "".
20221014 11:12:39 INFO     engine : DATABASE_OPTIONS: "{}".
20221014 11:12:39 INFO     engine : Connected to database.
20221014 11:12:39 INFO     engine : Run "new".
20221014 11:12:39 INFO     engine : Run routes from command line: "['']".
20221014 11:12:39 INFO     engine : Bots Report; type: new, time: 2022-10-14 11:12:39
    0 files received/processed in run.
    1 errors in processes.
    0 files send in run.

20221014 11:12:39 INFO     engine : Cleanup files
20221014 11:12:39 INFO     engine : Cleanup database
20221014 11:12:39 INFO     engine : Vacuum database
20221014 11:12:39 INFO     engine : Done full cleanup.


I can't see anything in the webserver UI, because no file was included in the run.

Brgds
Claus

Eppye Bots

unread,
Oct 16, 2022, 2:43:51 PM10/16/22
to 'Chuck Turco' via Bots Open Source EDI Translator
there is a process error in the engine.
what is the process error?

kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 7:47:58 AM10/17/22
to Bots Open Source EDI Translator
Hi Henk-Jan

Changed the log level to DEBUG and now get the below information in egnine log. But I can run the same route manually from the web UI without problems.

20221017 13:44:11 INFO     engine : served at port: "8090".
20221017 13:44:11 INFO     engine : platform: "Windows-10-10.0.17763".
20221017 13:44:11 INFO     engine : machine: "AMD64".
20221017 13:44:11 INFO     engine : python version: "2.7.18".
20221017 13:44:11 INFO     engine : django version: "(1, 6, 2, 'final', 0)".
20221017 13:44:11 INFO     engine : bots version: "3.2.0".
20221017 13:44:11 INFO     engine : bots installation path: "C:\Python27\lib\site-packages\bots".
20221017 13:44:11 INFO     engine : config path: "C:\Python27\lib\site-packages\bots\config".
20221017 13:44:11 INFO     engine : botssys path: "C:\Python27\lib\site-packages\bots\botssys".
20221017 13:44:11 INFO     engine : usersys path: "C:\Python27\lib\site-packages\bots\usersys".
20221017 13:44:11 INFO     engine : DATABASE_ENGINE: "django.db.backends.sqlite3".
20221017 13:44:11 INFO     engine : DATABASE_NAME: "C:\Python27\lib\site-packages\bots\botssys/sqlitedb/botsdb".
20221017 13:44:11 INFO     engine : DATABASE_USER: "".
20221017 13:44:11 INFO     engine : DATABASE_HOST: "".
20221017 13:44:11 INFO     engine : DATABASE_PORT: "".
20221017 13:44:11 INFO     engine : DATABASE_OPTIONS: "{}".
20221017 13:44:11 INFO     engine : Connected to database.
20221017 13:44:11 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\botsengine": No module named botsengine.
20221017 13:44:11 INFO     engine : Run "new".
20221017 13:44:11 INFO     engine : Run routes from command line: "['']".
20221017 13:44:11 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.
20221017 13:44:11 DEBUG    engine : Error in process: ScriptImportError: Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts":
'bots.usersys.routescripts.'

20221017 13:44:11 INFO     engine : Bots Report; type: new, time: 2022-10-17 13:44:11

    0 files received/processed in run.
    1 errors in processes.
    0 files send in run.

20221017 13:44:11 INFO     engine : Cleanup files
20221017 13:44:11 INFO     engine : Cleanup database
20221017 13:44:11 INFO     engine : Vacuum database
20221017 13:44:11 INFO     engine : Done full cleanup.

Eppye Bots

unread,
Oct 17, 2022, 3:21:06 PM10/17/22
to 'Chuck Turco' via Bots Open Source EDI Translator
were you able to solve it with that?
kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 4:12:41 PM10/17/22
to Bots Open Source EDI Translator
Hi Henk-Jan

No not really, I can't figure out why it has error with route script when i run it just by copying a new file in the folder, but reports no errors when running that same file manually from the web interface. Here is the engine log when running the same file from the web interface. It imports all the required grammars, mappings etc and runs the file without problems. But when just removing the file and placing it in the folder, and then looking at the logs i get the error in the engine regarding rout script. So it seems I am missing some pre-requisite for the job queue to be able to pass the right parameters to the engine? Do you have any idea what it could be?

20221017 22:03:43 INFO     engine : served at port: "8090".
20221017 22:03:43 INFO     engine : platform: "Windows-10-10.0.17763".
20221017 22:03:43 INFO     engine : machine: "AMD64".
20221017 22:03:43 INFO     engine : python version: "2.7.18".
20221017 22:03:43 INFO     engine : django version: "(1, 6, 2, 'final', 0)".
20221017 22:03:43 INFO     engine : bots version: "3.2.0".
20221017 22:03:43 INFO     engine : bots installation path: "C:\Python27\lib\site-packages\bots".
20221017 22:03:43 INFO     engine : config path: "C:\Python27\lib\site-packages\bots\config".
20221017 22:03:43 INFO     engine : botssys path: "C:\Python27\lib\site-packages\bots\botssys".
20221017 22:03:43 INFO     engine : usersys path: "C:\Python27\lib\site-packages\bots\usersys".
20221017 22:03:43 INFO     engine : DATABASE_ENGINE: "django.db.backends.sqlite3".
20221017 22:03:43 INFO     engine : DATABASE_NAME: "C:\Python27\lib\site-packages\bots\botssys/sqlitedb/botsdb".
20221017 22:03:43 INFO     engine : DATABASE_USER: "".
20221017 22:03:43 INFO     engine : DATABASE_HOST: "".
20221017 22:03:43 INFO     engine : DATABASE_PORT: "".
20221017 22:03:43 INFO     engine : DATABASE_OPTIONS: "{}".
20221017 22:03:43 INFO     engine : Connected to database.
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\botsengine": No module named botsengine.
20221017 22:03:43 INFO     engine : Run "new".
20221017 22:03:43 INFO     engine : Run active routes from database that are in default run: "[u'myfirstroute']".
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\myfirstroute": No module named myfirstroute.
20221017 22:03:43 INFO     engine : Running route myfirstroute 9999
20221017 22:03:43 DEBUG    engine : Start communication channel "myfirstroute_in" type file in.
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\communicationscripts\myfirstroute_in": No module named myfirstroute_in.
20221017 22:03:43 DEBUG    engine : Finished communication channel "myfirstroute_in" type file in.
20221017 22:03:43 DEBUG    engine : Start preprocessing "mailbag" for file "71".
20221017 22:03:43 DEBUG    engine :         File written: "73".
20221017 22:03:43 DEBUG    engine :         File written: "74".
20221017 22:03:43 DEBUG    engine : OK preprocessing "mailbag" for file "71".
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\mappings\translation": No module named translation.
20221017 22:03:43 DEBUG    engine : Start translating file "73" editype "edifact" messagetype "edifact".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221017 22:03:43 DEBUG    engine : Read edi file "73".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\charsets\unoa".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221017 22:03:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2": No module named PARTNER2.
20221017 22:03:43 DEBUG    engine : Start writing to file "78".
20221017 22:03:43 DEBUG    engine : End writing to file "78".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221017 22:03:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2".
20221017 22:03:43 DEBUG    engine : Start writing to file "80".
20221017 22:03:43 DEBUG    engine : End writing to file "80".
20221017 22:03:43 DEBUG    engine : Translated input file "73".
20221017 22:03:43 DEBUG    engine : Start translating file "74" editype "edifact" messagetype "edifact".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221017 22:03:43 DEBUG    engine : Read edi file "74".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221017 22:03:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221017 22:03:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221017 22:03:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2".
20221017 22:03:43 DEBUG    engine : Start writing to file "83".
20221017 22:03:43 DEBUG    engine : End writing to file "83".
20221017 22:03:43 DEBUG    engine : Translated input file "74".
20221017 22:03:43 DEBUG    engine : Merge and envelope: editype: fixed, messagetype: ordersfixed, 3 messages
20221017 22:03:43 DEBUG    engine : Start communication channel "myfirstroute_out" type file out.
20221017 22:03:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\communicationscripts\myfirstroute_out": No module named myfirstroute_out.
20221017 22:03:43 DEBUG    engine : Finished communication channel "myfirstroute_out" type file out.
20221017 22:03:43 DEBUG    engine : Finished route myfirstroute 9999
20221017 22:03:43 INFO     engine : Bots Report; type: new, time: 2022-10-17 22:03:43
    1 files received/processed in run.
    1 files without errors,
    1 files send in run.

Henk-Jan Ebbers

unread,
Oct 17, 2022, 4:19:17 PM10/17/22
to bots...@googlegroups.com
what is the process error? log indicates there is a process error.
kind regards, henk-jan ebbers


Claus Villumsen

unread,
Oct 17, 2022, 5:42:23 PM10/17/22
to Bots Open Source EDI Translator
Yes that is the problem, I have no idea what this error means or how to debug it any further:

20221017 13:44:11 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.
20221017 13:44:11 DEBUG    engine : Error in process: ScriptImportError: Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts

I have not created any routescripts, just installed clean installation, setting up the services and dowlnoading basic route from sourceforge as mentioned in the tutorial: https://bots.readthedocs.io/en/latest/quick-start-guide/

My purpose is i need to make sure i have correctly installed / configured everything so Bots is able to listen in an input dir and run the engine when a file is placed in that folder. 

So I really have no idea where to change what to remove this proces error. It seems when using the proces:  dirmonitor --> jobqueueserver --> engine,  based on what the error says it expects some script in usersys\routescripts ? 

Brgds
Claus


Henk-Jan Ebbers

unread,
Oct 17, 2022, 5:44:27 PM10/17/22
to bots...@googlegroups.com
process-errors can be viewed in the browser/GUI.

kind regards, henk-jan ebbers


Claus Villumsen

unread,
Oct 17, 2022, 5:48:52 PM10/17/22
to Bots Open Source EDI Translator
It more or less says the same:
process-error.png

Eppye Bots

unread,
Oct 17, 2022, 5:52:35 PM10/17/22
to 'Chuck Turco' via Bots Open Source EDI Translator
in bots.ini:
[dirmonitor1]
#~ path = C:/Users/hje/Documents/Bots/botsdev/bots/botssys/infile/stress06/xml
path = /home/hje/Bots/botsdev/bots/botssys/infile/stress06/xml
recursive = False
filemask = *.xml
route =


you have to fill in the route that runs.

kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 6:04:26 PM10/17/22
to Bots Open Source EDI Translator
My Bots.ini is like this, still get the same error, I added the id of my route to the route parameter.

[dirmonitor]
#settings for directory monitoring; settings for each directory are below (dirmonitor1, etc)

# launch job frequency, in seconds. Default: 5
lauchfrequency = 5
#settings for logging of bots-jobqueue
#logging is always to log file, optional to console
#console logging on (True) or off (False); default is True.
log_console = True
#log_console_level: level for logging to console. Values: DEBUG,INFO,STARTINFO,WARNING,ERROR or CRITICAL. Default: STARTINFO
log_console_level = STARTINFO
#log_file_level: level for logging to log file. Values: DEBUG,INFO,STARTINFO,WARNING,ERROR or CRITICAL. Default: INFO
log_file_level = INFO

[dirmonitor1]
path = C:\Python27\Lib\site-packages\bots\botssys\infile\my_first_plugin
recursive = True
filemask = *.edi
route = myfirstroute

Eppye Bots

unread,
Oct 17, 2022, 6:07:27 PM10/17/22
to 'Chuck Turco' via Bots Open Source EDI Translator
what does the engine.log say after you added routeID in bots.ini?

kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 6:09:27 PM10/17/22
to Bots Open Source EDI Translator
Same as before

20221018 00:05:24 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.
20221018 00:05:24 DEBUG    engine : Error in process: ScriptImportError: Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts":
'bots.usersys.routescripts.'

Claus Villumsen

unread,
Oct 17, 2022, 6:20:45 PM10/17/22
to Bots Open Source EDI Translator
It seems that when running it from the GUI i choose run only new and adding that parameter does remove the process error. Pls see attached screenshot.
process-error-list of runs.png

Henk-Jan Ebbers

unread,
Oct 17, 2022, 6:21:51 PM10/17/22
to bots...@googlegroups.com
it is trying to load a routescript:
'bots.usersys.routescripts.'
but this should be something like:
'bots.usersys.routescripts.myroutescript'

that is were it goes wrong.
and this really looks like it does not have a routeID?
what does the engine.log say?

kind regards, henk-jan ebbers


Claus Villumsen

unread,
Oct 17, 2022, 6:36:04 PM10/17/22
to Bots Open Source EDI Translator
Engine log:

20221018 00:14:01 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\botsengine": No module named botsengine.
20221018 00:14:01 INFO     engine : Run "new".
20221018 00:14:01 INFO     engine : Run routes from command line: "['']".
20221018 00:14:01 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.
20221018 00:14:01 DEBUG    engine : Error in process: ScriptImportError: Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts":
'bots.usersys.routescripts.'

Attached route setup

route-setup.png

Eppye Bots

unread,
Oct 17, 2022, 6:42:30 PM10/17/22
to 'Chuck Turco' via Bots Open Source EDI Translator
the engine log is larger than that.
kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 6:44:12 PM10/17/22
to Bots Open Source EDI Translator
entire log:

20221018 00:14:01 INFO     engine : served at port: "8090".
20221018 00:14:01 INFO     engine : platform: "Windows-10-10.0.17763".
20221018 00:14:01 INFO     engine : machine: "AMD64".
20221018 00:14:01 INFO     engine : python version: "2.7.18".
20221018 00:14:01 INFO     engine : django version: "(1, 6, 2, 'final', 0)".
20221018 00:14:01 INFO     engine : bots version: "3.2.0".
20221018 00:14:01 INFO     engine : bots installation path: "C:\Python27\lib\site-packages\bots".
20221018 00:14:01 INFO     engine : config path: "C:\Python27\lib\site-packages\bots\config".
20221018 00:14:01 INFO     engine : botssys path: "C:\Python27\lib\site-packages\bots\botssys".
20221018 00:14:01 INFO     engine : usersys path: "C:\Python27\lib\site-packages\bots\usersys".
20221018 00:14:01 INFO     engine : DATABASE_ENGINE: "django.db.backends.sqlite3".
20221018 00:14:01 INFO     engine : DATABASE_NAME: "C:\Python27\lib\site-packages\bots\botssys/sqlitedb/botsdb".
20221018 00:14:01 INFO     engine : DATABASE_USER: "".
20221018 00:14:01 INFO     engine : DATABASE_HOST: "".
20221018 00:14:01 INFO     engine : DATABASE_PORT: "".
20221018 00:14:01 INFO     engine : DATABASE_OPTIONS: "{}".
20221018 00:14:01 INFO     engine : Connected to database.

20221018 00:14:01 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\botsengine": No module named botsengine.
20221018 00:14:01 INFO     engine : Run "new".
20221018 00:14:01 INFO     engine : Run routes from command line: "['']".
20221018 00:14:01 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.
20221018 00:14:01 DEBUG    engine : Error in process: ScriptImportError: Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts":
'bots.usersys.routescripts.'

20221018 00:14:01 INFO     engine : Bots Report; type: new, time: 2022-10-18 00:14:01

    0 files received/processed in run.
    1 errors in processes.
    0 files send in run.


Eppye Bots

unread,
Oct 17, 2022, 6:47:58 PM10/17/22
to 'Chuck Turco' via Bots Open Source EDI Translator
look:
20221018 00:14:01 INFO     engine : Run routes from command line: "['']".
20221018 00:14:01 DEBUG    engine : Error in import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts": 'bots.usersys.routescripts.'.

no route.
did you reset the server? bots.ini is only read at the start.
kind regards, Henk-Jan Ebbers


Claus Villumsen

unread,
Oct 17, 2022, 6:54:39 PM10/17/22
to Bots Open Source EDI Translator
That was it - didn't think of restarting the service after adding the routeid - thanks a lot!! Well noted that ini is only read when the webserver starts. Happy days :-) :-)

20221018 00:51:43 INFO     engine : served at port: "8090".
20221018 00:51:43 INFO     engine : platform: "Windows-10-10.0.17763".
20221018 00:51:43 INFO     engine : machine: "AMD64".
20221018 00:51:43 INFO     engine : python version: "2.7.18".
20221018 00:51:43 INFO     engine : django version: "(1, 6, 2, 'final', 0)".
20221018 00:51:43 INFO     engine : bots version: "3.2.0".
20221018 00:51:43 INFO     engine : bots installation path: "C:\Python27\lib\site-packages\bots".
20221018 00:51:43 INFO     engine : config path: "C:\Python27\lib\site-packages\bots\config".
20221018 00:51:43 INFO     engine : botssys path: "C:\Python27\lib\site-packages\bots\botssys".
20221018 00:51:43 INFO     engine : usersys path: "C:\Python27\lib\site-packages\bots\usersys".
20221018 00:51:43 INFO     engine : DATABASE_ENGINE: "django.db.backends.sqlite3".
20221018 00:51:43 INFO     engine : DATABASE_NAME: "C:\Python27\lib\site-packages\bots\botssys/sqlitedb/botsdb".
20221018 00:51:43 INFO     engine : DATABASE_USER: "".
20221018 00:51:43 INFO     engine : DATABASE_HOST: "".
20221018 00:51:43 INFO     engine : DATABASE_PORT: "".
20221018 00:51:43 INFO     engine : DATABASE_OPTIONS: "{}".
20221018 00:51:43 INFO     engine : Connected to database.
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\botsengine": No module named botsengine.
20221018 00:51:43 INFO     engine : Run "new".
20221018 00:51:43 INFO     engine : Run routes from command line: "['myfirstroute']".
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\routescripts\myfirstroute": No module named myfirstroute.
20221018 00:51:43 INFO     engine : Running route myfirstroute 9999
20221018 00:51:43 DEBUG    engine : Start communication channel "myfirstroute_in" type file in.
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\communicationscripts\myfirstroute_in": No module named myfirstroute_in.
20221018 00:51:43 DEBUG    engine : Finished communication channel "myfirstroute_in" type file in.
20221018 00:51:43 DEBUG    engine : Start preprocessing "mailbag" for file "107".
20221018 00:51:43 DEBUG    engine :         File written: "109".
20221018 00:51:43 DEBUG    engine :         File written: "110".
20221018 00:51:43 DEBUG    engine : OK preprocessing "mailbag" for file "107".
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\mappings\translation": No module named translation.
20221018 00:51:43 DEBUG    engine : Start translating file "109" editype "edifact" messagetype "edifact".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221018 00:51:43 DEBUG    engine : Read edi file "109".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\charsets\unoa".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221018 00:51:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2": No module named PARTNER2.
20221018 00:51:43 DEBUG    engine : Start writing to file "114".
20221018 00:51:43 DEBUG    engine : End writing to file "114".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221018 00:51:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2".
20221018 00:51:43 DEBUG    engine : Start writing to file "116".
20221018 00:51:43 DEBUG    engine : End writing to file "116".
20221018 00:51:43 DEBUG    engine : Translated input file "109".
20221018 00:51:43 DEBUG    engine : Start translating file "110" editype "edifact" messagetype "edifact".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221018 00:51:43 DEBUG    engine : Read edi file "110".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\ORDERSD96AUNEAN008".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\edifact\edifact".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" translates messagetype "ORDERSD96AUNEAN008" to messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Run userscript "main" in "C:\Python27\lib\site-packages\bots\usersys\mappings\edifact\myfirstscriptordersedi2fixed".
20221018 00:51:43 DEBUG    engine : Mappingscript "myfirstscriptordersedi2fixed" finished.
20221018 00:51:43 DEBUG    engine : Start writing output file editype "fixed" messagetype "ordersfixed".
20221018 00:51:43 DEBUG    engine : Imported "C:\Python27\lib\site-packages\bots\usersys\grammars\fixed\ordersfixed".
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\partners\fixed\PARTNER2".
20221018 00:51:43 DEBUG    engine : Start writing to file "119".
20221018 00:51:43 DEBUG    engine : End writing to file "119".
20221018 00:51:43 DEBUG    engine : Translated input file "110".
20221018 00:51:43 DEBUG    engine : Merge and envelope: editype: fixed, messagetype: ordersfixed, 3 messages
20221018 00:51:43 DEBUG    engine : Start communication channel "myfirstroute_out" type file out.
20221018 00:51:43 DEBUG    engine : No import of module "C:\Python27\lib\site-packages\bots\usersys\communicationscripts\myfirstroute_out": No module named myfirstroute_out.
20221018 00:51:43 DEBUG    engine : Finished communication channel "myfirstroute_out" type file out.
20221018 00:51:43 DEBUG    engine : Finished route myfirstroute 9999
20221018 00:51:43 INFO     engine : Bots Report; type: new, time: 2022-10-18 00:51:43

    1 files received/processed in run.
    1 files without errors,
    1 files send in run.


Reply all
Reply to author
Forward
0 new messages