cea-hpc / modules

Environment Modules: provides dynamic modification of a user's environment
http://modules.sourceforge.net/
GNU General Public License v2.0
668 stars 102 forks source link

module load python error: "Tcl wasn't installed properly" #512

Closed niaberrian closed 7 months ago

niaberrian commented 9 months ago

Describe the bug

After running "module load python" on my computer cluster, I received the error: ERROR: Can't find a usable init.tcl in the following directories: /software/fsl-6.0.6.2/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.12/library /tcl8.6.12/library

To Reproduce

Steps to reproduce the behavior:

$ module load fsl/6.062
$ module load python
...

Location and content of any modulerc or modulefile involved: /project2/abcd

$ cat path/to/modulepath/module/version
$ cat path/to/modulepath/module/.modulerc
$ cat path/to/modulepath/.modulerc
...

Expected behavior

I expected to be able to use python to run a script in a compute node.

Modules version and configuration

$ module --version
$ module config --dump-state

Additional context

xdelaruelle commented 9 months ago

It seems like a Tcl installation issue. Could you precise how Tcl has been installed on your system.

Is there specific TCL_* environment variable defined in your environment?

Issue #489 was about the same thing, but it was not possible to clarify it due to the lack of information.

More information is also expected here to be able to help.

niaberrian commented 9 months ago

Hello,

Thank you for your help. There is not a particular TCL_* environment defined but I’m not sure how to see how the Tcl was installed on my system. I’m using an university controlled computing cluster. Is there a way I can check that from the terminal ?

From: Xavier Delaruelle @.> Date: Monday, September 18, 2023 at 11:32 PM To: cea-hpc/modules @.> Cc: Nia Berrian @.>, Author @.> Subject: Re: [cea-hpc/modules] module load python error: "Tcl wasn't installed properly" (Issue #512)

It seems like a Tcl installation issue. Could you precise how Tcl has been installed on your system.

Is there specific TCL_* environment variable defined in your environment?

Issue #489https://github.com/cea-hpc/modules/issues/489 was about the same thing, but it was not possible to clarify it due to the lack of information.

More information is also expected here to be able to help.

— Reply to this email directly, view it on GitHubhttps://github.com/cea-hpc/modules/issues/512#issuecomment-1724816808, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ2W43RBSL4ORU3FMTZMZHTX3EN6VANCNFSM6AAAAAA45IWB7U. You are receiving this because you authored the thread.Message ID: @.***>

xdelaruelle commented 9 months ago

Hello,

I suggest you print the module shell function definition in your shell session:

$ type module

Extract from the obtained output the location of the tclsh command configured to run the modulecmd.tcl.

Try to execute this tclsh command directly. You should obtain the same error as mentioned previously.

Then I suggest you report this error to the people in charge of your university cluster. They should fix the Tcl installation for Environment Modules to correctly operate.