Kumar
Mmarimo
•Created by Kumar on 5/18/2024 in #archived-help-and-support
I'm trying to access an H5 file contents
Was able to fix it by using BytesIO to read in contents
2 replies
Mmarimo
•Created by Kumar on 5/18/2024 in #archived-help-and-support
I'm trying to access an H5 file contents
Here's the traceback:
raceback (most recent call last):
File "/Users/kthurime/anaconda3/lib/python3.11/site-packages/marimo/_runtime/runner/cell_runner.py", line 302, in run
return_value = execute_cell(cell, self.glbls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kthurime/anaconda3/lib/python3.11/site-packages/marimo/_ast/cell.py", line 459, in execute_cell
exec(cell.body, glbls)
File "/var/folders/c2/r71spmj97fj8fdlg4z8b87jh0000gp/T/marimo_56512/marimocellBYtC.py", line 1, in <module>
cazymes, cazyme_keys = generate_cazy_embeddings(all_protein_embeds, qda_clf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/folders/c2/r71spmj97fj8fdlg4z8b87jh0000gp/T/marimo_56512/marimocellRGSE.py", line 16, in generate_cazy_embeddings
f = h5py.File(embeddings, 'r')
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kthurime/anaconda3/lib/python3.11/site-packages/h5py/_hl/files.py", line 542, in init
name = filename_encode(name)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/kthurime/anaconda3/lib/python3.11/site-packages/h5py/_hl/compat.py", line 19, in filename_encode
filename = fspath(filename)
^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not file
2 replies