Csparc2star error


A while back, I had successfully installed and used cspar2star to convert .cs files to .star.

I tried to do so again recently but am getting the following error when I run: csparc2star.py <>.cs <>.star:
Traceback (most recent call last):
File “/usr/bin/csparc2star.py”, line 28, in
from pyem import metadata
File “/home/pyem/pyem/init.py”, line 3, in
from . import metadata
File “/home/pyem/pyem/metadata.py”, line 415
ptdf = util.dataframe_from_records_mapped(pt, {**general, **micrograph})
SyntaxError: invalid syntax

Any idea what went wrong and what I could do to fix this?

Hi, have you updated pyem if you’ve updated cryosparc?

It’s a python 2 error; pyem requires python 3.6+.