Bug 2303169 - modulefile not working
Summary: modulefile not working
Keywords:
Status: CLOSED DUPLICATE of bug 2302846
Alias: None
Product: Fedora
Classification: Fedora
Component: Lmod
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-06 14:18 UTC by djip007
Modified: 2024-08-07 02:31 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-08-07 02:31:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description djip007 2024-08-06 14:18:38 UTC
Description of problem:
when I use any modulefile fonctions like:
> module avail
I get:
/usr/bin/lua: /usr/share/lua/5.4/json/decode/util.lua:97: attempt to call a string value (field 'version')
stack traceback:
	/usr/share/lua/5.4/json/decode/util.lua:97: in main chunk
	[C]: in function 'require'
	/usr/share/lua/5.4/json/decode.lua:12: in main chunk
	[C]: in function 'require'
	/usr/share/lua/5.4/json.lua:5: in main chunk
	[C]: in function 'require'
	/usr/share/lmod/lmod/libexec/../shells/JsonShell.lua:46: in main chunk
	[C]: in function 'require'
	/usr/share/lmod/lmod/libexec/../shells/BaseShell.lua:295: in upvalue 'l_createShellTbl'
	/usr/share/lmod/lmod/libexec/../shells/BaseShell.lua:327: in function 'BaseShell.isValid'
	/usr/share/lmod/lmod/libexec/utils.lua:1189: in function 'dynamic_shell'
	/usr/share/lmod/lmod/libexec/lmod:345: in function 'main'
	/usr/share/lmod/lmod/libexec/lmod:585: in main chunk
	[C]: in ?


Version-Release number of selected component (if applicable): 8.7.37

How reproducible:
fedora 40 update with Lmod installed, call
`module avail`

Actual results:
Erreur.

Expected results:
return liste of available modules

Comment 1 djip007 2024-08-06 14:20:49 UTC
look the same as : https://bugzilla.redhat.com/show_bug.cgi?id=2302846

Comment 2 Orion Poplawski 2024-08-07 02:31:32 UTC

*** This bug has been marked as a duplicate of bug 2302846 ***


Note You need to log in before you can comment on or make changes to this bug.