Can't read in some of the model files from the bayesfusion repo.
Im using the python wrapper of smile.
Code:
net = pysmile.Network()
net.read_file("test_new_models/HeparII.xdsl")
error:
SMILEException: SMILE Error Occured in: Network.ReadFile
ErrNo=-103
Read File error for networks in Bayesfusion Repo
-
- Posts: 11
- Joined: Mon Dec 11, 2023 8:20 pm
-
- Site Admin
- Posts: 63
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Read File error for networks in Bayesfusion Repo
Which version of PySMILE are you using? Hepar II from our repository has nodes with defined intervals - latest version of PySMILE is required.
-
- Posts: 11
- Joined: Mon Dec 11, 2023 8:20 pm
Re: Read File error for networks in Bayesfusion Repo
I deleted my old version of smile, and used the command "python3 -m pip install --index-url https://support.bayesfusion.com/pysmile-A/ pysmile". However, I checked the folder in in my python packages, and the package shows as "pysmile-1.6.2.dist-info " which i don't believe is the latest version ? I'm not sure why that command would download an old version though
-
- Site Admin
- Posts: 1437
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Read File error for networks in Bayesfusion Repo
Please try again with the --upgrade --force-reinstall options:
Code: Select all
python3 -m pip install --upgrade --force-reinstall --index-url https://support.bayesfusion.com/pysmile-A/ pysmile
-
- Posts: 11
- Joined: Mon Dec 11, 2023 8:20 pm
Re: Read File error for networks in Bayesfusion Repo
Hi it looks like its still only pulling the 1.6.2 version of pysmile. Copy and pasted below is my terminal output
Code: Select all
$ python3 -m pip install --user --upgrade --force-reinstall --index-url https://support.bayesfusion.com/pysmile-A/ pysmile
Looking in indexes: https://support.bayesfusion.com/pysmile-A/
Collecting pysmile
Using cached https://support.bayesfusion.com/pysmile-A/pysmile/pysmile-1.6.2-cp37-cp37m-macosx_10_9_x86_64.whl
Installing collected packages: pysmile
Found existing installation: pysmile 1.6.2
Uninstalling pysmile-1.6.2:
Successfully uninstalled pysmile-1.6.2
Successfully installed pysmile-1.6.2
-
- Site Admin
- Posts: 63
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Read File error for networks in Bayesfusion Repo
It looks like you are using Python version 3.7, which is no longer updated and does not get security patches - https://www.python.org/downloads/release/python-3717/
PySMILE version 2.X (which supports the latest changes) is available under Python 3.8 or higher.
PySMILE version 2.X (which supports the latest changes) is available under Python 3.8 or higher.
-
- Posts: 11
- Joined: Mon Dec 11, 2023 8:20 pm
Re: Read File error for networks in Bayesfusion Repo
Thank you so much I will update