M
Modular•16mo ago
Deleted User

Issue with installing on fedora 38

I seem to be getting an issue when installing in fedora, modular works fine but modular install mojo doesn't finish and returns the following error:
== stderr ==
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/mojo)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libpanel.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libncurses.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)

TEST: `mojo repl`... ERROR
Traceback (most recent call last):
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 342, in <module>
main()
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 338, in main
tester.test(args.test_jupyter)
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 275, in test
self.test_mojo_repl()
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 195, in test_mojo_repl
assert False
AssertionError
modular: error: failed to run python:
== stderr ==
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/mojo)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libtinfo.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libpanel.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)
/home/authp/.modular/pkg/packages.modular.com_mojo/bin/lldb: /lib64/libncurses.so.6: no version information available (required by /home/authp/.modular/pkg/packages.modular.com_mojo/bin/../lib/liblldb.so.18git)

TEST: `mojo repl`... ERROR
Traceback (most recent call last):
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 342, in <module>
main()
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 338, in main
tester.test(args.test_jupyter)
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 275, in test
self.test_mojo_repl()
File "/home/authp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 195, in test_mojo_repl
assert False
AssertionError
modular: error: failed to run python:
4 Replies
Deleted User
Deleted UserOP•16mo ago
as a note; I already have ncurses and ncurses-devel installed
kyleb1328
kyleb1328•16mo ago
probably safer to stick with ubuntu until they roll out more Linux compatibility: https://docs.modular.com/mojo/manual/get-started/index.html
Modular Docs - Get started with Mojo🔥
Get the Mojo SDK or try coding in the Mojo Playground.
kubatron
kubatron•16mo ago
Hi, why there is no other distro support from Mojo? I know that need time but for main distro like Debian, Fedora or other should be a some support. For me and many people Ubuntu is not a first choice to use 🙂
ajamdoughnut
ajamdoughnut•16mo ago
Fedora 38 Sway spin here. You may be seeing a message like this on stderr
mojo: /lib64/libtinfo.so.6: no version information available (required by mojo)
mojo: /lib64/libtinfo.so.6: no version information available (required by mojo)
The output to stderr is causing the test to fail for Fedora 38. During the install of mojo with modular install mojo it is possible to change the test that is about to fail whilst it is performing the install and self test. There will be a race from the time modular install mojo writes the test file to disk and the time that it actually runs the test - there appears to be a large window in which you can disable the test. During the install keep looking for ~/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py file and modify to disable around line 275 tests which fail with a complaint about the output to stderr. Specifically around line 275 change
self.test_mojo_repl()
self.test_mojo_repl()
to
# self.test_mojo_repl()
# self.test_mojo_repl()
to disable the test from running and failing. Note that investigating further into the failing test it is only failing due to the output to stderr with around line 190 if not "Self-test OK!" in out or not len(err) == 0: where len(err) is not 0 since it had /lib64/libtinfo.so.6: no version information available (required by mojo) on stderr but at the same time it reports Self-test OK! on stdout so it only fails on the stderr. Despite the stderr message mojo appears to be working on Fedora 38. Update for mojo 0.3.0: In ~/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py file the line to comment out is now around 311. In addition libedit shared lib can't be found so create a sym link with:
ln -s /lib64/libedit.so ~/.modular/pkg/packages.modular.com_mojo/lib/libedit.so.2
ln -s /lib64/libedit.so ~/.modular/pkg/packages.modular.com_mojo/lib/libedit.so.2
Want results from more Discord servers?
Add your server