-
Notifications
You must be signed in to change notification settings - Fork 130
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
xtce_converter: uninitialized constant USERPATH #1330
Comments
Some more information here: I can confirm that the
At the same time I don't understand what are the preconditions for running the export command. The help says:
Should the argument to So far all my attempts result in the The documentation here does not provide enough detail for us to understand the expected workflow. We are happy to submit a PR to the docs once we know how to use the export command. |
Can you try running the xtce_converter from the root of your COSMOS configuration, e.g. where the config, lib, outputs, tmp directories are? It looks like specifying the --system option uses the USERPATH variable. Try leaving this off and using the default system.txt file and see if that helps. |
Sorry for not getting back to this one. We have paused the XTCE/CCDD track for some time because of some other errors (usability of CCDD and interfacing with COSMOS) and are working with COSMOS text files directly. We are also looking into moving to ASN1 as a primary TM/TC storage format but no decisions are being made yet. |
Describe the bug
Background: We are learning about the support of XTCE in COSMOS.
We get
uninitialized constant USERPATH
error when we run the following command:xtce_converter --system "cosmos/spec/install/config/system/system.txt" --export exported-configs
To Reproduce
Install all necessary system and Ruby dependencies based on this Docker file: https://github.com/BallAerospace/cosmos-docker/blob/master/ubuntu18.04/Dockerfile.
Run the
xtce_converter
command above.See the following error message:
... COSMOS (master)$ xtce_converter --system "cosmos/spec/install/config/system/system.txt" --export exported-configs uninitialized constant USERPATH Usage: xtce_converter [options] --import input_xtce_filename output_dir xtce_converter [options] --export output_dir -h, --help Show this message -v, --version Show version --system VALUE Use an alternative system.txt file -i, --import VALUE Import the specified .xtce file -e, --export Create .xtce file(s) from the COSMOS Configuration
Expected behavior
We see no error messages and can export/import XTCE.
Screenshots
-
Environment (please complete the following information):
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
The text was updated successfully, but these errors were encountered: