YosefLab / Compass

In-Silico Modeling of Metabolic Heterogeneity using Single-Cell Transcriptomes
BSD 3-Clause "New" or "Revised" License
96 stars 28 forks source link

'TypeError("cannot pickle 'SwigPyObject' object")' #109

Closed Ronvaknins closed 6 months ago

Ronvaknins commented 6 months ago

Hi i am having an issue trying to run the compass, i am getting this error, any ideas how to solve this problem?

root@RonS:~# compass --data avg_exp_mat.tsv --num-thread 8 --species homo_sapiens --output-dir compass_res --temp-dir compass_res_tmp --calc-metabolites --lambda 0
Warning: Temporary directory found without saved arguments. Cached results may not be compatible with current settings
Building up model cache
  0%|                                                                                                                                                                                                                                              | 0/320 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/usr/local/bin/compass", line 8, in <module>
    sys.exit(entry())
  File "/usr/local/lib/python3.8/dist-packages/compass/main.py", line 572, in entry
    precacheCompass(args=args)
  File "/usr/local/lib/python3.8/dist-packages/compass/main.py", line 873, in precacheCompass
    for sub_cache in pool.imap_unordered(partial_map_fun, reaction_chunks):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 868, in next
    raise value
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7f6236f62520>'. Reason: 'TypeError("cannot pickle 'SwigPyObject' object")'
Ronvaknins commented 6 months ago

found out the solution here: https://github.com/YosefLab/Compass/issues/91