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:
- 2020-09-09
- Last reply:
- 2020-09-11
Jan Stránský (honzik) said : | #1 |
Hello,
have a look at https:/
cheers
Jan
LiKang (likang118) said : | #2 |
thank you Jan ,
i have read this before, to be honest , it did not give the solution, and then it go on to another problem.
what he talk about to solve the problem is :
"it is all about paths. Where and how you creat yadeimport.py, where you export your python path"
i tried many times but still get the same error, it confuse me that where is the correct place to creat the yadeimport.py and the python path.
Jan Stránský (honzik) said : | #3 |
if that post did not help you, you have to wait for somebody else to answer, I really have no experience with that part of Yade..
cheers
Jan
Can you help with this problem?
Provide an answer of your own, or ask LiKang for more information if necessary.