Skip to content

Problem with miobase.py on Windows #8

@geriby

Description

@geriby

I'm traing to run your program on windows. I Have installed anaconda for numpy and scipy and

changed input source: /dev/null' ---> 'NUL'
shlex.split(mc), stdout=open('NUL', 'w'), cwd=script_dirname)

But currently when I run this a have following error:

C:\Anaconda\python.exe D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py
selective_search({'D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg'}, 'c:\users\opuk\appdata\local\temp\tmphtivfm.mat')
Traceback (most recent call last):
File "D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py", line 64, in
boxes = get_windows(image_filenames)
File "D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py", line 42, in get_windows
all_boxes = list(scipy.io.loadmat(output_filename)['all_boxes'][0])
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\mio.py", line 131, in loadmat
MR = mat_reader_factory(file_name, appendmat, **kwargs)
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\mio.py", line 55, in mat_reader_factory
mjv, mnv = get_matfile_version(byte_stream)
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\miobase.py", line 218, in get_matfile_version
buffer = fileobj.read(4))
TypeError: buffer is too small for requested array

Could you help me find solution?

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions