Lua script "access denied"

Lua script "access denied"

Anonymous
Not applicable
9,669 Views
4 Replies
Message 1 of 5

Lua script "access denied"

Anonymous
Not applicable

Hello,

 

I am running an instance of Netfabb Ultimate on my PC, and trying to run some of the example Lua scripts. However whenever I try to run a script, an error message (screenshot attached) appears, which says:

 

"LUA Runtime Error: [string "lua"]: 1 : Access denied

 

It is unclear to me why this error is happening, has anyone run into this before?

 

Thanks,

Drew

0 Likes
9,670 Views
4 Replies
Replies (4)
Message 2 of 5

steffen_anders_adsk
Autodesk Support
Autodesk Support

Hello, @Anonymous,

 

Welcome to the Netfabb Forum!

 

Are you performing any file I/O access? If so, could you share the respective lines?

Alternatively, if you do not wish to disclose any code publicly, feel free to submit a support case and attach the script there.

 

Best regards,

Steffen

Steffen Anders
Autodesk Netfabb team

Netfabb resources: Online helpKnowledge baseForumsHomepageYouTube

How to get Netfabb Basic: VideoHelpDownload

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi Steffen,

 

I do not believe I am performing any I/O, and I am also not running any custom Lua code. I am attempting to run existing built-in Lua scripts such as "Pack Tray" or "Generate Support". The same error shows up for any script I attempt to run. I also tried to run an example script from the Examples folder - "Script17_LabelMeshes.lua", but it did not work.

 

I have installed Lua on my machine and set the Path so that I can open a Lua prompt in CMD (I thought perhaps that could be an issue), but no luck still. Any ideas on what might be the problem?

 

Thanks,

Drew

0 Likes
Message 4 of 5

steffen_anders_adsk
Autodesk Support
Autodesk Support

Hi Drew,

 

Netfabb does not require a separate Lua installation. In fact, you cannot run Lua scripts in an external interpreter to control Netfabb; you have to run any scripts through the Netfabb GUI. To run a Lua script in Netfabb, you must import it first into the library, it cannot be run directly as an external file.

The built-in scripts such as Adv. Packing 2 as available through the DemoApplication GUI, however, do reside as files in the installation folder of Netfabb and are called during runtime of the DemoApplication script itself. The DemoApplication script contains a hardcoded path to these separate files. Assuming from your description that this is a default, unmodified installation, I can only guess that your Windows user account does not have the required file system privileges to access the required file.

Has Netfabb been installed by, say, IT and are you logged in as a regular user, perchance?

 

Best regards,

Steffen

Steffen Anders
Autodesk Netfabb team

Netfabb resources: Online helpKnowledge baseForumsHomepageYouTube

How to get Netfabb Basic: VideoHelpDownload

0 Likes
Message 5 of 5

Anonymous
Not applicable

Hello,

 

Running the application in as an administrator solved the issue. Thanks!

 

Drew

0 Likes