Full-frame motion correction (multi) TypeError: long() argument must be a string or a number, not 'NoneType

I received the similar error message as in
Gain reference file:

I converted tif to mrc by imod (tif2mrc), then I merged mrc files into mrcs by eman2 (e2proc2d.py). Then, I imported to cryosparc by import movies. The imported images look perfect. Then, I did Full-frame motion correction (multi) with this imported movies.

Then,

[CPU: 624.6 MB]  -- 0.0: processing 0 of 1: J272/imported/all.mrcs
    loading /dtemp/emslc50414/cryosparc/P4/J272/imported/all.mrcs
    Loading raw movie data from J272/imported/all.mrcs ...
    Done in 0.07s
    Processing ...

[CPU: 813.5 MB]  Traceback (most recent call last):
  File "cryosparc2_compute/jobs/runcommon.py", line 1685, in run_with_except_hook
    run_old(*args, **kw)
  File "/home/svc-pncc/cryosparc2_worker/deps/anaconda/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "cryosparc2_compute/jobs/pipeline.py", line 165, in thread_work
    work = processor.process(item)
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/run.py", line 146, in cryosparc2_compute.jobs.motioncorrection.run.run_rigid_motion_correction_multi.motionworker.process
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/run.py", line 149, in cryosparc2_compute.jobs.motioncorrection.run.run_rigid_motion_correction_multi.motionworker.process
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/run.py", line 150, in cryosparc2_compute.jobs.motioncorrection.run.run_rigid_motion_correction_multi.motionworker.process
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/motioncorrection.py", line 274, in cryosparc2_compute.jobs.motioncorrection.motioncorrection.motion_correction
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/motioncorrection.py", line 284, in cryosparc2_compute.jobs.motioncorrection.motioncorrection.motion_correction
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/cuda_kernels.py", line 147, in cryosparc2_compute.jobs.motioncorrection.cuda_kernels.do_extract_and_weight_gpu
  File "/home/svc-pncc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/pycuda/driver.py", line 383, in function_call
    handlers, arg_buf = _build_arg_buf(args)
  File "/home/svc-pncc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/pycuda/driver.py", line 156, in _build_arg_buf
    gpudata = np.uintp(arg.gpudata)
TypeError: long() argument must be a string or a number, not 'NoneType'


[CPU: 154.6 MB]  Outputting partial results now...

[CPU: 154.7 MB]  Traceback (most recent call last):
  File "cryosparc2_worker/cryosparc2_compute/run.py", line 85, in cryosparc2_compute.run.main
  File "cryosparc2_worker/cryosparc2_compute/jobs/motioncorrection/run.py", line 316, in cryosparc2_compute.jobs.motioncorrection.run.run_rigid_motion_correction_multi
AssertionError: Child process with PID 10090 has terminated unexpectedly!

Solved.

When I re-entered
Raw pixel size (A) from 300
to 0.2531 during ‘import movies’ and re-do
‘full-frame motion correction (multi)’, it worked.

1 Like