Local refinement error after homogeneous ab-initio refinement

Hi, trying the homogeneous ab-initio refinement for the first time. As per the guide, I connected the two half maps to a local refinement job. I am now struggling with this error. Any thoughts?

@MmM Please can you

  1. post error tracebacks as text to make it easier for other forum user to search for and find relevant forum topics.
  2. post the the CryoSPARC version
  3. if your CryoSPARC version is v5.0.4 or below, check whether the error persists after updating CryoSPARC to the latest version (see Error during local refinement: "object has no attribute 'seek'" - #13 by mmclean)

Hi, here you go:

Traceback (most recent call last):
  File "cli/run.py", line 106, in cli.run.run_job
  File "cli/run.py", line 211, in cli.run.run_job_function
  File "compute/jobs/local_refine/run_localrefine.py", line 1240, in compute.jobs.local_refine.run_localrefine.run_local_refine
  File "/opt/cryosparc_worker/core/run_context.py", line 198, in log_plot
    return jobs.add_event_log_figure(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/cryosparc_worker/core/jobs.py", line 2494, in add_event_log_figure
    imgfiles = assets.upload_figure_formats(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/cryosparc_worker/core/assets.py", line 167, in upload_figure_formats
    upload_figure(figure, project_uid, job_or_session_uid, name, format=format, savefig_kw=savefig_kw)
  File "/opt/cryosparc_worker/core/assets.py", line 144, in upload_figure
    file.seek(0, 0)  # type: ignore
    ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'seek'
  1. v 5.0.2
  2. Thanks, I have to ask our system admin to do that. Initially, I was looking for ab-initio related errors, not for local refinement ones.

Did you observe any errors during ab initio 3D reconstruction?

Hey, updating to the latest CS version solved the issue. Thanks!

1 Like

hi ,
I have submit Local refinement job using input from NU-refinement:
I got this message:

thanks!

@mhmd2 What is your CryoSPARC version? Please let us know if the error persists in the latest version of CryoSPARC.

CryoSPARC V5.0.4

yes, the error still not go.

A fix for this (or a similar) issue was released after CryoSPARC v5.0.4. Please let us know if the error persists after updating CryoSPARC to the most recent version (v5.0.7 as of August 2026).