rajeshrinet / pyross

PyRoss: inference, forecasts, and optimised control of epidemiological models in Python. github.com/rajeshrinet/pyross
https://pyross.readthedocs.io
MIT License
169 stars 57 forks source link

[WinError 2] Le fichier spécifié est introuvable #4

Closed aminemosbah closed 4 years ago

aminemosbah commented 4 years ago

%%capture

compile PyRoss for this notebook

import os owd = os.getcwd() os.chdir('../') %run setup.py install os.chdir(owd)

D:\Anaconda3\envs\causal_net\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session) 995 env, 996 os.fspath(cwd) if cwd is not None else None, --> 997 startupinfo) 998 finally: 999 # Child is launched. Close the parent's copy of those pipe

FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable

rajeshrinet commented 4 years ago

@aminemosbah are you running it on Windows? We are aware that our compilation is having some issues with Windows. Please can I suggest to use binder (Binder) while we fix the problem specific to Windows?

Please click on the Binder link in the README.md. Please be patient while it loads but after that, there is no difference in running from your own computer.

aminemosbah commented 4 years ago

thanks, i m trying to run the exemple on collab

and here is the issue

AttributeError Traceback (most recent call last)

in () 22 23 # start simulation ---> 24 model = pyross.models.SIR(S_0, Ia_0, Is_0, alpha, beta, gamma, fsa, M, Ni, Tf) 25 Nf=8000; filename='this.mat' 26 model.simulate(CTS, Nf, filename) AttributeError: module 'pyross' has no attribute 'models' any suggestion?
rajeshrinet commented 4 years ago

There is now a solution for the above problems at https://github.com/rajeshrinet/pyross/issues/14