Closed rocketeer1998 closed 1 week ago
Yes, this could be a problem with the package installation, because I see the function cal_PI
in your error message doesn't match cal_PI
in our package, and you need to make sure that no changes have been made to calculate_PI.py
or you need to reinstall PROST.
I've reinstalled PROST according to your documentation, but the same error was still ouccured. One thing to note is that I've updated the anndata version from 0.7.6 (which is clarified in your requirement.txt) to 0.8.0. because otherwise I can't read my anndata where the error was as follows.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/site-packages/anndata/_io/utils.py in func_wrapper(elem, *args, **kwargs)
176 try:
--> 177 return func(elem, *args, **kwargs)
178 except Exception as e:
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/site-packages/anndata/_io/h5ad.py in read_group(group)
526 if encoding_type:
--> 527 EncodingVersions[encoding_type].check(
528 group.name, group.attrs["encoding-version"]
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/enum.py in __getitem__(cls, name)
356 def __getitem__(cls, name):
--> 357 return cls._member_map_[name]
358
KeyError: 'dict'
During handling of the above exception, another exception occurred:
AnnDataReadError Traceback (most recent call last)
/tmp/ipykernel_216029/910368596.py in <module>
----> 1 adata = ad.read_h5ad('20240525_Datasets/Gyllborg2020HybISS.h5ad')
2 adata
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/site-packages/anndata/_io/h5ad.py in read_h5ad(filename, backed, as_sparse, as_sparse_fmt, chunk_size)
419 d[k] = read_dataframe(f[k])
420 else: # Base case
--> 421 d[k] = read_attribute(f[k])
422
423 d["raw"] = _read_raw(f, as_sparse, rdasp)
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/functools.py in wrapper(*args, **kw)
838 '1 positional argument')
839
--> 840 return dispatch(args[0].__class__)(*args, **kw)
841
842 funcname = getattr(func, '__name__', 'singledispatch function')
/mnt/data/tool/miniconda3/envs/prost/lib/python3.7/site-packages/anndata/_io/utils.py in func_wrapper(elem, *args, **kwargs)
182 parent = _get_parent(elem)
183 raise AnnDataReadError(
--> 184 f"Above error raised while reading key {elem.name!r} of "
185 f"type {type(elem)} from {parent}."
186 )
AnnDataReadError: Above error raised while reading key '/layers' of type <class 'h5py._hl.group.Group'> from /.
Finally fix this by reinstalling PROST because I found there is tremendous inconsistency between my PROST and the newest PROST. Always remember to use the latest version!
Hi @Sicrve11 , based on the same dataset, why I can successfully run all processes on Windows10 but fail on
PROST.cal_PI
step on Linux? I saw that thePROST.cal_PI
on Linux didn't show any progress but was directly finished. However, the next stepPROST.cal_PI
threw an error as follows.I assume it is a dependency problem, but I don't know how to fix it. Below is my session info.