markovmodel / PyEMMA

🚂 Python API for Emma's Markov Model Algorithms 🚂
http://pyemma.org
GNU Lesser General Public License v3.0
311 stars 119 forks source link

Saving model error #1476

Closed yossadh closed 3 years ago

yossadh commented 4 years ago

I am going through the tutorial and everything works perfectly except when saving the model (Tutorial 03, 04). Here's the error: With cluster.save('nb4.pyemma', model_name='ala2tica_cluster', overwrite=True)

~/anaconda3/lib/python3.7/site-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
    188         if swmr and swmr_support:
    189             flags |= h5f.ACC_SWMR_READ
--> 190         fid = h5f.open(name, flags, fapl=fapl)
    191     elif mode == 'r+':
    192         fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()
OSError: Unable to open file (file signature not found)

PyEMMA 2.5.7 Output of conda list: conda_list.txt

Here's a quick checklist in what to include:

clonker commented 4 years ago

This looks like a for some reason corrupted file. Have you tried changing the filename (like nb4_2.pyemma')?

yossadh commented 4 years ago

That's what I gather too from googling, but this is saving file, not reading... I tried anyway with different filenames, still same error. That swmr flag seems to be the problem.

Edit: For a workaround, saving directly with pickle.dump works ok

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.