Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: inspect_all throws a pickle error #415

Open
3 tasks done
garrettmflynn opened this issue Oct 30, 2023 · 4 comments
Open
3 tasks done

[Bug]: inspect_all throws a pickle error #415

garrettmflynn opened this issue Oct 30, 2023 · 4 comments
Assignees
Labels
category: bug errors in the code or code behavior

Comments

@garrettmflynn
Copy link
Member

What happened?

Running inspect_all throws a pickle error using the latest environment for the GUIDE.

Traceback

Traceback (most recent call last):
  File "/Users/garrettflynn/Documents/Github/nwb-guide/pyflask/apis/neuroconv.py", line 211, in post
    return inspect_multiple_filesystem_objects(paths)
  File "/Users/garrettflynn/Documents/Github/nwb-guide/pyflask/manageNeuroconv/manage_neuroconv.py", line 613, in inspect_multiple_filesystem_objects
    result = inspect_nwb_folder({"path": tmp_folder_path})
  File "/Users/garrettflynn/Documents/Github/nwb-guide/pyflask/manageNeuroconv/manage_neuroconv.py", line 577, in inspect_nwb_folder
    messages = list(
  File "/opt/anaconda3/envs/nwb-guide/lib/python3.9/site-packages/nwbinspector/nwbinspector.py", line 445, in inspect_all
    for message in future.result():
  File "/opt/anaconda3/envs/nwb-guide/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/opt/anaconda3/envs/nwb-guide/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/opt/anaconda3/envs/nwb-guide/lib/python3.9/multiprocessing/queues.py", line 244, in _feed
    obj = _ForkingPickler.dumps(obj)
  File "/opt/anaconda3/envs/nwb-guide/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function auto_parse_some_output at 0x163072af0>: attribute lookup auto_parse_some_output on nwbinspector.register_checks failed

Operating System

macOS

Python Version

3.10

Were you streaming with ROS3?

No

Package Versions

environment_for_issue.txt

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • Have you ensured this bug was not already reported?
  • To the best of your ability, have you ensured this is a bug within the code that checks the NWBFile, rather than a bug in the NWBFile reader (e.g., PyNWB or MatNWB)?
@garrettmflynn garrettmflynn added the category: bug errors in the code or code behavior label Oct 30, 2023
@CodyCBakerPhD
Copy link
Collaborator

Can confirm this happens in my app as well, but the same usage via CLI on the same folder does not cause the same issue; will try direct API calls next

@garrettmflynn Does the standalone Inspector page do any of the usual symlink magic under the hood, or is it literally a direct call to the API endpoint with the target folder as the input?

@garrettmflynn
Copy link
Member Author

For single folders and projects, this is the function used:
Screenshot 2023-10-30 at 12 25 56 PM

@CodyCBakerPhD
Copy link
Collaborator

Just to help my side of debugging, is there anything else that would be in the payload object?

@garrettmflynn
Copy link
Member Author

Aside from path, nothing else for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior
Projects
None yet
Development

No branches or pull requests

2 participants