openalea / StructureAnalysis

Plant structure analysis
6 stars 6 forks source link

ImportError: libvptree_matching2.so #16

Closed jlegrand62 closed 8 years ago

jlegrand62 commented 8 years ago

Hello,

I tried to import 'BipartiteMatching' (as shown below) and I got an error about 'libvptree_matching2.so' not being found. But if I search for this file, I can found it on my system... Does anyone as an idea about what should be done to correct this ?

Thanks, Jo

Trying to import :

jonathan@RDP-M4500-JL:~/Softwares/vp/StructureAnalysis/tree_matching$ ipython
Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from openalea.tree_matching.bipartitematching import BipartiteMatching
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-e83ddd1652f5> in <module>()
----> 1 from openalea.tree_matching.bipartitematching import BipartiteMatching

/home/jonathan/Softwares/vp/StructureAnalysis/tree_matching/src/openalea/tree_matching/__init__.py in <module>()
----> 1 from __tree_matching__ import *
      2 
      3 def build_treenode(id,father):
      4     return TreeNode(id,father)
      5 

ImportError: libvptree_matching2.so: cannot open shared object file: No such file or directory

Trying to locate the "missing file":

jonathan@RDP-M4500-JL:~$ locate libvptree_matching2.so
/home/jonathan/Softwares/vp/StructureAnalysis/tree_matching/build-scons/lib/libvptree_matching2.so
fredboudon commented 8 years ago

Looks like a PATH problem. try to redo a python setup.py develop in /home/jonathan/Softwares/vp/StructureAnalysis/tree_matching. And relaunch a bash (or reload .openalea.sh).

jlegrand62 commented 8 years ago

Indeed ! But I did the source ~/.openalea.sh ... ? Anyway, thanks a lot!