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

Cannot load Ruby file #91

Open
AIoTvn opened this issue May 10, 2022 · 12 comments
Open

Cannot load Ruby file #91

AIoTvn opened this issue May 10, 2022 · 12 comments

Comments

@AIoTvn
Copy link

AIoTvn commented May 10, 2022

I've successfully installed bundle with " bundle install ". But when I run ruby launcher i faced with this issue. Pls help me, thank you very much !
" Bundle complete! 2 Gemfile dependencies, 37 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.
dnm@mm:~/OpenSatKit-master/cosmos$ ruby Launcher
Traceback (most recent call last):
3: from Launcher:13:in <main>' 2: from /home/dnm/OpenSatKit-master/cosmos/tools/tool_launch.rb:16:in tool_launch'
1: from Launcher:14:in block in <main>' Launcher:14:in require': cannot load such file -- cosmos/tools/launcher/launcher (LoadError)
"

@koben98
Copy link

koben98 commented May 10, 2022

The issue might relate to Problem #85. Hope that helps

Update: Disregard this I tried on my end and did not work

@dmccomas
Copy link
Contributor

dmccomas commented May 10, 2022 via email

@DBprod
Copy link

DBprod commented May 11, 2022

Hello, I have this issue as well, I am on Ubuntu 22.04 VMware VM.

@dmccomas
Copy link
Contributor

dmccomas commented May 12, 2022 via email

@koben98
Copy link

koben98 commented May 12, 2022

I tried switching it to '> 0.9', same error on Ubuntu 18.04, 20.04 and 22.04. Both VMs and boot directly on a laptop if there's any difference.
Most recent attempt did not include ruby, I installed it by the default sudo apt install ruby as well as rbenv with 2.4.0-dev, still the same error

@dmccomas
Copy link
Contributor

dmccomas commented May 15, 2022 via email

@AIoTvn
Copy link
Author

AIoTvn commented May 17, 2022

I solved by run terminal from first steps and it's worked in all of the devices i've tried.

@minhtn1
Copy link

minhtn1 commented May 22, 2022

I think the problem is related to OSK's Gemfile.lock being in sync with the COSMOS release. You may be able to do 'bundle update cosmos' with your current installation. If that doesn't work then you should be able to install OpenSatKit version 4.0. I just released v4.0 today and tested the installation on Ubuntu 18.04 and it worked without the need to do a "bundle install' after the installation. I'll test Ubuntu 20.04 soon. - Dave

On Thu, May 12, 2022 at 12:51 PM Hoang H. Nguyen @.> wrote: I tried switching it to '> 0.9', same error on Ubuntu 18.04, 20.04 and 22.04. Both VMs and boot directly on a laptop if there's any difference. Most recent attempt did not include ruby, I installed it by the default sudo apt install ruby as well as rbenv with 2.4.0-dev, still the same error — Reply to this email directly, view it on GitHub <#91 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMGKCH5HPLIAPMOXU5N5S3VJUZHZANCNFSM5VQQ5KHA . You are receiving this because you commented.Message ID: @.>

Have u tested on ubuntu 20.04 :(( i haved same issues on ubuntu 20.04

@dmccomas
Copy link
Contributor

There may be multiple issues being discussed in this issues but I wanted to loop back to the original entry that resulted in the following error when 'ruby Launcher' is entered:
Launcher:14:in `require': cannot load such file -- cosmos/launcherlauncher (LoadError)

This may indicate that ruby wasn't properly installed during the the COSMOS installation. It's very easy to make a typo while answering some of the prompts during the installation.

  • Review the installation messages. It would be worth adding a note to the installation script to save the output prior to closing the window.
  • Verify ruby is installed by typing 'ruby --version'

@nguyentuanngoc21
Copy link

There may be multiple issues being discussed in this issues but I wanted to loop back to the original entry that resulted in the following error when 'ruby Launcher' is entered: Launcher:14:in `require': cannot load such file -- cosmos/launcherlauncher (LoadError)

This may indicate that ruby wasn't properly installed during the the COSMOS installation. It's very easy to make a typo while answering some of the prompts during the installation.

  • Review the installation messages. It would be worth adding a note to the installation script to save the output prior to closing the window.
  • Verify ruby is installed by typing 'ruby --version'

my version is ruby 3.0.2p107 (2021-07-07 revision 0db68f0233), and I think it is up-to-date version, but I still meet this error

@AIoTvn
Copy link
Author

AIoTvn commented Aug 17, 2022 via email

@dmccomas
Copy link
Contributor

The cFS is built using the -std=C99 flag Here's a C99 reference: https://en.m.wikipedia.org/wiki/C99

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

6 participants