OpenSatKit / OpenSatKit

Core Flight System (cFS) Application Developer's Kit
https://opensatkit.github.io
240 stars 52 forks source link

Cannot load Ruby file #91

Open AIoTvn opened 2 years ago

AIoTvn commented 2 years ago

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:intool_launch' 1: from Launcher:14:in block in <main>' Launcher:14:inrequire': cannot load such file -- cosmos/tools/launcher/launcher (LoadError) "

koben98 commented 2 years ago

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

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

dmccomas commented 2 years ago

The OpenSatKit installation script uses the COSMOS' installation shell script: bash <(\curl -sSL https://raw.githubusercontent.com/BallAerospace/COSMOS/cosmos4/vendor/installers/linux_mac/INSTALL_COSMOS.sh )

I've been searching the COSMOS issues at https://github.com/BallAerospace/COSMOS/issues but haven't found any answers. I wanted to pass this information along so others can look as well.

It would also be helpful to state your installation environment so we can hopefully discover a pattern.

On Tue, May 10, 2022 at 3:24 AM Hoang H. Nguyen @.***> wrote:

The issue might relate to Problem #85 https://github.com/OpenSatKit/OpenSatKit/issues/85. Hope that helps

— Reply to this email directly, view it on GitHub https://github.com/OpenSatKit/OpenSatKit/issues/91#issuecomment-1122024696, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMGKCG2D4J4ZZDFBBVWXSDVJIFJLANCNFSM5VQQ5KHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DBprod commented 2 years ago

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

dmccomas commented 2 years ago

I'm wondering whether these issues are related to a recent change I made to the cosmos/Gemfile based on the following cosmos ticket: https://github.com/BallAerospace/COSMOS/issues/920

I changed

gem 'ruby-termios', '~> 0.9'

to gem 'ruby-termios', '>= 0.9'

I'll do some testing with the two configurations...

On Wed, May 11, 2022 at 2:01 PM Daniel Bucci @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/OpenSatKit/OpenSatKit/issues/91#issuecomment-1124100004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMGKCAI3ZNOBDHO5K2ZGE3VJPYWLANCNFSM5VQQ5KHA . You are receiving this because you commented.Message ID: @.***>

koben98 commented 2 years ago

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 commented 2 years ago

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.

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 https://github.com/OpenSatKit/OpenSatKit/issues/91#issuecomment-1125216201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMGKCH5HPLIAPMOXU5N5S3VJUZHZANCNFSM5VQQ5KHA . You are receiving this because you commented.Message ID: @.***>

AIoTvn commented 2 years ago

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

minhtn1 commented 2 years ago

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 commented 2 years ago

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.

nguyentuanngoc21 commented 2 years ago

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 commented 2 years ago

Vào Th 3, 12 thg 7, 2022 lúc 20:32 David McComas @.***> đã viết:

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'

— Reply to this email directly, view it on GitHub https://github.com/OpenSatKit/OpenSatKit/issues/91#issuecomment-1181765351, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZGDPFQQJFQ2VZBLIU5U4TVTVXV3ANCNFSM5VQQ5KHA . You are receiving this because you authored the thread.Message ID: @.***>

May I ask you a question that what type of C that cFS use ?? I’ve found but i still not have any information about that. Thank you very much .

dmccomas commented 2 years ago

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