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

TypeError: can't pickle SwigPyObject objects #725

Open
susanGhaderi opened this issue Nov 9, 2021 · 1 comment
Open

TypeError: can't pickle SwigPyObject objects #725

susanGhaderi opened this issue Nov 9, 2021 · 1 comment

Comments

@susanGhaderi
Copy link

Problem description

I try to get the diff between two models by this command
$ memote report diff /Users/GEM_01.xml /Users/GEM_02.xml
and then at the end I got this error
-->
========================================================================== 88 failed, 56 passed, 21 skipped in 352.64s (0:05:52) ===========================================================================
Traceback (most recent call last):
File "/opt/anaconda3/bin/memote", line 8, in
sys.exit(cli())
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/anaconda3/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/memote/suite/cli/reports.py", line 422, in diff
results = pool.map(partial_test_diff, model_and_model_ver_tuple)
File "/opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 431, in _handle_tasks
put(task)
File "/opt/anaconda3/lib/python3.7/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/opt/anaconda3/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: can't pickle SwigPyObject objects

Could someone please help me to figure it out, what is the reason? and how can I fix it?

@Midnighter
Copy link
Member

@susanGhaderi apologies for the long wait. Can you please provide the platform and version information that we ask for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants