PicklingError
Sorry to bother you sir,
My YADE version is yade-2019.01a and I am working on Ubuntu 18.04. I am trying to run biaxialSmooth.py from FEM-DEM examples.
Then get the error I get is this:
PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin_
I have read the same issue in https:/
'' It is all about paths. Where and how you creat yadeimport.py, where you export your python path''
but i am still confused how to change and export the python path. Here is a detailed explanation of what I did. I followed the instruction in the biaxialSmooth.py by
1- sudo apt install python-escript
2- cd examples/FEMxDEM
3-export PYTHONPATH=
4-export LD_LIBRARY_
5-ln -s '/home/
and it show the worning:'' ln: Could not create symbolic link './yadeimport.py': File already exists
Here is the output:
Welcome to Yade 2019.01a
TCP python prompt on localhost:9000, auth cookie `cyueks'
XMLRPC info provider on http://
Running script biaxialSmooth.py
=======
For better performance compile python-escript with direct solver method
=======
Press Enter to continue...
Traceback (most recent call last):
File "/home/
execfile(
File "biaxialSmooth.py", line 43, in <module>
prob = MultiScale(
File "/home/
self.
File "/usr/lib/
return self.map_
File "/usr/lib/
raise self._value
PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin_
Looking forward to a piece of advice!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask LiKang for more information if necessary.