You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/dynamic.py:105, in OctaveFunctionPtr.call(self, *inputs, **kwargs)
101 warnings.warn("Key - value pairs are deprecated, use func_args", stacklevel=2)
103 inputs += tuple(item for pair in zip(extras.keys(), extras.values()) for item in pair)
--> 105 return self._ref().feval(self.name, *inputs, **kwargs)
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/core.py:633, in Oct2Py._feval(self, func_name, func_args, dname, nout, timeout, stream_handler, store_as, plot_dir)
630 raise Oct2PyError("Session died, restarting")
632 # Read in the output.
--> 633 resp = read_file(in_file, self)
634 if resp["err"]:
635 msg = self._parse_error(resp["err"])
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/io.py:43, in read_file(path, session)
41 """Read the data from the given file path."""
42 try:
---> 43 data = loadmat(path, struct_as_record=True)
44 except UnicodeDecodeError as e:
45 raise Oct2PyError(str(e))
File /opt/anaconda3/lib/python3.11/contextlib.py:137, in _GeneratorContextManager.enter(self)
135 del self.args, self.kwds, self.func
136 try:
--> 137 return next(self.gen)
138 except StopIteration:
139 raise RuntimeError("generator didn't yield") from None
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:17, in _open_file_context(file_like, appendmat, mode)
15 @contextmanager
16 def _open_file_context(file_like, appendmat, mode='rb'):
---> 17 f, opened = _open_file(file_like, appendmat, mode)
18 try:
19 yield f
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:45, in _open_file(file_like, appendmat, mode)
43 if appendmat and not file_like.endswith('.mat'):
44 file_like += '.mat'
---> 45 return open(file_like, mode), True
46 else:
47 raise OSError(
48 'Reader needs file name or open file-like object'
49 ) from e
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp0443eydf/reader.mat'
This software is completely useless.
The text was updated successfully, but these errors were encountered:
I have installed oct2py globally.
The test not working.
This is the error:
error: '_pyeval' undefined near line 1, column 1
FileNotFoundError Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:39, in _open_file(file_like, appendmat, mode)
38 try:
---> 39 return open(file_like, mode), True
40 except OSError as e:
41 # Probably "not found"
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp0443eydf/reader.mat'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
Cell In[1], line 4
1 import oct2py
3 oc = oct2py.Oct2Py()
----> 4 x = oc.zeros(3,3)
5 print(x, x.dtype)
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/dynamic.py:105, in OctaveFunctionPtr.call(self, *inputs, **kwargs)
101 warnings.warn("Key - value pairs are deprecated, use
func_args
", stacklevel=2)103 inputs += tuple(item for pair in zip(extras.keys(), extras.values()) for item in pair)
--> 105 return self._ref().feval(self.name, *inputs, **kwargs)
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/core.py:394, in Oct2Py.feval(self, func_path, *func_args, **kwargs)
391 if not stream_handler:
392 stream_handler = self.logger.info if verbose else self.logger.debug
--> 394 return self._feval(
395 func_name,
396 func_args,
397 dname=dname,
398 nout=nout,
399 timeout=timeout,
400 stream_handler=stream_handler,
401 store_as=store_as,
402 plot_dir=plot_dir,
403 )
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/core.py:633, in Oct2Py._feval(self, func_name, func_args, dname, nout, timeout, stream_handler, store_as, plot_dir)
630 raise Oct2PyError("Session died, restarting")
632 # Read in the output.
--> 633 resp = read_file(in_file, self)
634 if resp["err"]:
635 msg = self._parse_error(resp["err"])
File /opt/anaconda3/lib/python3.11/site-packages/oct2py/io.py:43, in read_file(path, session)
41 """Read the data from the given file path."""
42 try:
---> 43 data = loadmat(path, struct_as_record=True)
44 except UnicodeDecodeError as e:
45 raise Oct2PyError(str(e))
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:225, in loadmat(file_name, mdict, appendmat, **kwargs)
88 """
89 Load MATLAB file.
90
(...)
222 3.14159265+3.14159265j])
223 """
224 variable_names = kwargs.pop('variable_names', None)
--> 225 with _open_file_context(file_name, appendmat) as f:
226 MR, _ = mat_reader_factory(f, **kwargs)
227 matfile_dict = MR.get_variables(variable_names)
File /opt/anaconda3/lib/python3.11/contextlib.py:137, in _GeneratorContextManager.enter(self)
135 del self.args, self.kwds, self.func
136 try:
--> 137 return next(self.gen)
138 except StopIteration:
139 raise RuntimeError("generator didn't yield") from None
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:17, in _open_file_context(file_like, appendmat, mode)
15 @contextmanager
16 def _open_file_context(file_like, appendmat, mode='rb'):
---> 17 f, opened = _open_file(file_like, appendmat, mode)
18 try:
19 yield f
File /opt/anaconda3/lib/python3.11/site-packages/scipy/io/matlab/_mio.py:45, in _open_file(file_like, appendmat, mode)
43 if appendmat and not file_like.endswith('.mat'):
44 file_like += '.mat'
---> 45 return open(file_like, mode), True
46 else:
47 raise OSError(
48 'Reader needs file name or open file-like object'
49 ) from e
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp0443eydf/reader.mat'
This software is completely useless.
The text was updated successfully, but these errors were encountered: