ErrNo=-103

The engine.
Post Reply
bahman
Posts: 21
Joined: Sun Mar 13, 2022 12:24 pm

ErrNo=-103

Post by bahman »

HI;

i het this error

Code: Select all

pysmile.SMILEException: SMILE Error Occured in: Network.ReadFile
ErrNo=-103
i tried this code

Code: Select all

import pysmile
import pysmile_license
net = pysmile.Network()
net.read_file("VentureBN.xdsl")
net.set_evidence("Forecast", "Moderate")
net.update_beliefs()
VentureBN.xdsl
(1.36 KiB) Downloaded 191 times
i have downloaded model from site without any changes. it is open in GeNIe but not in python .why ?
bahman
Posts: 21
Joined: Sun Mar 13, 2022 12:24 pm

Re: ErrNo=-103

Post by bahman »

HI;

no answer or idea ??
piotr [BayesFusion]
Site Admin
Posts: 60
Joined: Mon Nov 06, 2017 6:41 pm

Re: ErrNo=-103

Post by piotr [BayesFusion] »

Probably the directory where you opened the Python Interpreter is different from where you have the xdsl file, so you get the error code responsible for the missing file. Try to open the Interpreter in the folder with the xdsl file, or enter the absolute path when reading the file (net.read_file ...).
bahman
Posts: 21
Joined: Sun Mar 13, 2022 12:24 pm

Re: ErrNo=-103

Post by bahman »

HI;

i use this and worked

Code: Select all

net.read_file(r"C:\Users\****\Desktop\Discretized_model.xdsl")
thank you
Post Reply