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

Error message on running ./runSModelS.py #34

Open
juhidutta opened this issue Aug 30, 2023 · 2 comments
Open

Error message on running ./runSModelS.py #34

juhidutta opened this issue Aug 30, 2023 · 2 comments

Comments

@juhidutta
Copy link

juhidutta commented Aug 30, 2023

Dear experts,

I am currently using SModelS Release v2.3.2 (the zip version from github). While I have successfully installed it on centos7 system, I encounter the following error on running ./runSModelS.py -h:

Traceback (most recent call last):
File "./runSModelS.py", line 3, in
from smodels.tools.runSModelS import main
File "/raid05/users/jdutta/smodels-main/smodels/tools/runSModelS.py", line 12, in
from smodels.tools import modelTester
File "/raid05/users/jdutta/smodels-main/smodels/tools/modelTester.py", line 16, in
from smodels.theory import theoryPrediction
File "/raid05/users/jdutta/smodels-main/smodels/theory/theoryPrediction.py", line 16, in
from smodels.tools.statsTools import StatsComputer
File "/raid05/users/jdutta/smodels-main/smodels/tools/statsTools.py", line 20, in
from smodels.tools.pyhfInterface import PyhfData, PyhfUpperLimitComputer
File "/raid05/users/jdutta/smodels-main/smodels/tools/pyhfInterface.py", line 41, in
import pyhf
File "/home/jdutta/.local/lib/python3.7/site-packages/pyhf/init.py", line 7, in
from pyhf.pdf import Model
File "/home/jdutta/.local/lib/python3.7/site-packages/pyhf/pdf.py", line 11, in
from pyhf import schema
File "/home/jdutta/.local/lib/python3.7/site-packages/pyhf/schema/init.py", line 6, in
from pyhf.schema.loader import load_schema
File "/home/jdutta/.local/lib/python3.7/site-packages/pyhf/schema/loader.py", line 5, in
from pyhf.schema import variables
File "/home/jdutta/.local/lib/python3.7/site-packages/pyhf/schema/variables.py", line 9, in
schemas = resources.files('pyhf') / "schemas"
AttributeError: module 'importlib_resources' has no attribute 'files'

Could you please kindly advise how I may resolve this error?

Best regards,
Juhi

@WolfgangWaltenberger
Copy link
Member

WolfgangWaltenberger commented Aug 31, 2023 via email

@juhidutta
Copy link
Author

juhidutta commented Aug 31, 2023 via email

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