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

required but unused environment variables #1

Open
kc9jud opened this issue Feb 16, 2021 · 2 comments
Open

required but unused environment variables #1

kc9jud opened this issue Feb 16, 2021 · 2 comments
Assignees

Comments

@kc9jud
Copy link
Contributor

kc9jud commented Feb 16, 2021

Trying to import spncci:

>>> import spncci
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/global/homes/p/pfasano/Research/code/spncci/script/spncci.py", line 106, in <module>
    import su3rme
  File "/global/homes/p/pfasano/Research/code/spncci/script/su3rme.py", line 101, in <module>
    su3rme_data_directory=os.environ["SU3SHELL_DATA"]
  File "/usr/common/software/python/3.8-anaconda-2020.11/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'SU3SHELL_DATA'

Is this variable needed if not running LSU3shell? @mark-caprio @aemccoy

@aemccoy
Copy link
Contributor

aemccoy commented Feb 16, 2021

@kc9jud The variable is a dummy variable only needed for LSU3Shell. Global variable dependence on SU3SHELL_DATA has been removed in su3rme.py

@kc9jud kc9jud changed the title required but unused environment variable SU3SHELL_DATA required but unused environment variable Feb 16, 2021
@kc9jud kc9jud changed the title required but unused environment variable required but unused environment variables Feb 16, 2021
@kc9jud
Copy link
Contributor Author

kc9jud commented Feb 16, 2021

I'm also seeing a dependency on SPNCCI_SEED_DIR:

>>> import spncci
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/global/homes/p/pfasano/Research/code/spncci/script/spncci.py", line 122, in <module>
    seed_directory_list = os.environ["SPNCCI_SEED_DIR"]
  File "/usr/common/software/python/3.8-anaconda-2020.11/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'SPNCCI_SEED_DIR'

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

2 participants