Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

...5e26242-1dd6-4047-9add-b1ebfb163f97-5989/ml_gsubfile.lua:12: attempt to index global 'io' (a nil value) #19

Open
kongkongkongkongkongkong opened this issue May 13, 2024 · 1 comment

Comments

@kongkongkongkongkongkong

When I ran the code:
%let apploc=/myfilepath/app/fileuploader;
filename mc url "https://raw.githubusercontent.com/sasjs/fileuploader/master/stream.sas";
%inc mc;

The error pops up:

39913 +package.loaded["ml_gsubfile"] = nil
39914 +endsubmit;
39915 +run;
ERROR: ...5e26242-1dd6-4047-9add-b1ebfb163f97-5989/ml_gsubfile.lua:12: attempt to index global 'io' (a nil value)
stack traceback:
...5e26242-1dd6-4047-9add-b1ebfb163f97-5989/ml_gsubfile.lua:12: in main chunk
[C]: in function 'require'
SUBMIT block:2: in main chunk
ERROR: There was an error submitting the provided code.
rc=0
NOTE: SASjs Streaming App Created! Check it out here:

@allanbowe
Copy link
Member

Hi - thanks for checking out the fileuploader! This issue can occur when running earlier versions of SAS (eg 9.4m3 or viya 3.4 if I recall correctly) that don't have the LUA capabilities to run this macro: https://core.sasjs.io/ml__gsubfile_8sas_source.html

It can also happen with LOCKDOWN enabled. It's because the io package isn't available to your lua runtime.

What kind of file are you loading? If it's Excel or CSV you could also consider https://datacontroller.io (free and source available)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants