Lua script file can't be loaded

337 views
Skip to first unread message

Thibaut Constant

unread,
Oct 18, 2021, 5:39:56 AM10/18/21
to Orthanc Users
Hi,
Whenever I try to load a lua script, I Get the following error :

E1018 10:25:10.331030 OrthancException.cpp:57] The specified path does not point to a regular file: The path does not point to a regular file: C:\Program Files\Orthanc Server\Lua\routing.lua

I tried various file locations and names without any luck.

Ortanc server 1.9.7 on windows.

Bryan Dearlove

unread,
Oct 18, 2021, 10:32:32 AM10/18/21
to Orthanc Users
Can you show your config? Make sure to add additional \ when referencing file locations in the config. 

Thibaut Constant

unread,
Oct 19, 2021, 2:47:40 AM10/19/21
to Orthanc Users
I'll go with a simple path :
  // List of paths to the custom Lua scripts that are to be loaded
  // into this instance of Orthanc
  "LuaScripts" : [  ],

Starts the server normally, but :
  "LuaScripts" : [ "C:\\test.lua" ],

Fails with :
E1019 08:31:48.615230 OrthancException.cpp:57] The specified path does not point to a regular file: The path does not point to a regular file: C:\test.lua

Orthanc.jpg

Alain Mazy

unread,
Oct 19, 2021, 3:51:27 AM10/19/21
to Thibaut Constant, Orthanc Users
Hi Thibaut,

From your screen capture, it looks like your Windows explorer is hiding file extensions and that, therefore, the real name of your file is C:\\test.lua.txt.

On my side, I've just tested with C:\\test.lua and it works.

HTH

Alain.



--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/4b5bd6ff-02e5-451d-ac73-e3cf39a7d75an%40googlegroups.com.

Thibaut Constant

unread,
Oct 19, 2021, 3:59:28 AM10/19/21
to Orthanc Users
Oh yes you are right !
I feel stupid now, I wasn't opening the file with a proper code editor, didn't notice the extra extension.
Thank you very much.

Reply all
Reply to author
Forward
0 new messages