Skip to content

Issues running RunImageJScript plugin - pyimageJ version? #218

@bethac07

Description

@bethac07

Hey @hinerm, having some issues getting RunImageJScript running on my Mac (M1, OS 13.4.1, installed in conda). I tried a few commits (as far back as 0c75579), and those all gave the same behavior; rolling back to pyimageJ 1.1.1 seems to fix the issue, so seems to be something there (did not try anything other than most recent 1.4.1 and that version). Can you see if anything jumps out to you? Thanks!

[INFO] Overriding Leica ROI Reader; identifier: command:de.biovoxxel.utilities.RoiReader; jar: file:/Applications/Fiji.app/plugins/Biovoxxel_Plugins-2.6.0.jar
[INFO] Overriding Create framed inset Zoom; identifier: command:inset.creator.Inset_Creator; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Export SVG; identifier: command:svg.gui.SVGExporter; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Export all images as SVG; identifier: command:svg.gui.BatchSvgExporter; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Export time series as SVGs; identifier: command:svg.gui.TimeSeriesSvgExporter; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Import images from SVG; identifier: command:svg.gui.SVGImageImporter; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding LUT Channels Tool; identifier: command:lut.tool.LutChannelsTool; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Meta-D-Rex; identifier: command:metadataRecorder.MetadataRecorder; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
[INFO] Overriding Start IJ Scale Bar; identifier: command:svg.gui.StartJIScaleBar; jar: file:/Applications/Fiji.app/plugins/BioVoxxel_Figure_Tools-1.13.1.jar
The synchronize_ij1_to_ij2 function is deprecated. Use sync_image instead.
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/bcimini/Documents/GitHub/CellProfiler/CellProfiler-plugins/active_plugins/cpij/server.py", line 496, in main
    _start_imagej_process()
  File "/Users/bcimini/Documents/GitHub/CellProfiler/CellProfiler-plugins/active_plugins/cpij/server.py", line 390, in _start_imagej_process
    output_queue.put({PYIMAGEJ_KEY_OUTPUT: output_dict})
  File "<string>", line 2, in put
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/managers.py", line 834, in _callmethod
    conn.send((self._id, methodname, args, kwds))
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/connection.py", line 206, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <java class 'java.lang.String'>: attribute lookup java.lang.String on jpype._jstring failed
Failed to run module RunImageJScript
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/site-packages/cellprofiler/gui/pipelinecontroller.py", line 3390, in do_step
    self.__pipeline.run_module(module, workspace_model)
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/site-packages/cellprofiler_core/pipeline/_pipeline.py", line 1349, in run_module
    module.run(workspace)
  File "/Users/bcimini/Documents/GitHub/CellProfiler/CellProfiler-plugins/active_plugins/runimagejscript.py", line 657, in run
    ij_return = ijbridge.from_imagej().get()
  File "<string>", line 2, in get
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/managers.py", line 835, in _callmethod
    kind, result = conn.recv()
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
    buf = self._recv(4)
  File "/opt/homebrew/Caskroom/mambaforge/base/envs/cellprofiler_imagejscript/lib/python3.8/multiprocessing/connection.py", line 383, in _recv
    raise EOFError
EOFError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions