Read File error for networks in Bayesfusion Repo

The engine.
Post Reply
annieraichev
Posts: 11
Joined: Mon Dec 11, 2023 8:20 pm

Read File error for networks in Bayesfusion Repo

Post by annieraichev »

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
piotr [BayesFusion]
Site Admin
Posts: 61
Joined: Mon Nov 06, 2017 6:41 pm

Re: Read File error for networks in Bayesfusion Repo

Post by piotr [BayesFusion] »

Which version of PySMILE are you using? Hepar II from our repository has nodes with defined intervals - latest version of PySMILE is required.
annieraichev
Posts: 11
Joined: Mon Dec 11, 2023 8:20 pm

Re: Read File error for networks in Bayesfusion Repo

Post by annieraichev »

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
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Read File error for networks in Bayesfusion Repo

Post by shooltz[BayesFusion] »

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
annieraichev
Posts: 11
Joined: Mon Dec 11, 2023 8:20 pm

Re: Read File error for networks in Bayesfusion Repo

Post by annieraichev »

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
piotr [BayesFusion]
Site Admin
Posts: 61
Joined: Mon Nov 06, 2017 6:41 pm

Re: Read File error for networks in Bayesfusion Repo

Post by piotr [BayesFusion] »

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.
annieraichev
Posts: 11
Joined: Mon Dec 11, 2023 8:20 pm

Re: Read File error for networks in Bayesfusion Repo

Post by annieraichev »

Thank you so much I will update
Post Reply