-
Notifications
You must be signed in to change notification settings - Fork 27
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
After conda installation, can't run lpy #12
Comments
It seems you are on Linux, isn't it?
Remove your environment (conda remove -n lpy --all) and recreate it
using the folloing command:
conda create -n lpy openalea.lpy openalea.plantgl 'boost =1.66.0' -c
openalea
Le 21/03/2018 à 11:28, siulkilulki a écrit :
…
I'm on linux.
I have created conda enviroment with |conda create -n lpy openalea.lpy
-c openalea| and activated it.
Running |lpy| gives:
|+(lpy) ***@***.***:~/gitrepos/mycelium2d$ lpy Traceback (most
recent call last): File "/home/dawid/miniconda3/envs/lpy/bin/lpy",
line 11, in <module> load_entry_point('VPlants.Lpy==2.7.0',
'gui_scripts', 'lpy')() File
"/home/dawid/miniconda3/envs/lpy/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 572, in load_entry_point return
get_distribution(dist).load_entry_point(group, name) File
"/home/dawid/miniconda3/envs/lpy/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 2755, in load_entry_point return ep.load() File
"/home/dawid/miniconda3/envs/lpy/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 2408, in load return self.resolve() File
"/home/dawid/miniconda3/envs/lpy/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 2414, in resolve module = __import__(self.module_name,
fromlist=['__name__'], level=0) File
"/home/dawid/miniconda3/envs/lpy/lib/python2.7/site-packages/VPlants.Lpy-2.7.0-py2.7-linux-x86_64.egg/openalea/lpy/__init__.py",
line 2, in <module> from __lpy_kernel__ import * ImportError:
libboost_python.so.1.66.0: cannot open shared object file: No such
file or directory |
|conda list| prints that it installed |libboost 1.65.1 habcd387_4| so
I guess it just installed wrong version of libboost.
I will try install |libboost 1.66.0| manually and will tell you if it
solves the problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEeSqRNnXxPgzFP5uAk7S6FWwLevqkyks5tgis0gaJpZM4SzURX>.
|
I have just run Yes, I'm on Linux. |
Cool. There is a strange bug. The boost code is take from anaconda
rather than openalea channel. Conda do not respect priority. We have to
investigate why.
Where do you take the instructions?
Le 21/03/2018 à 12:15, siulkilulki a écrit :
…
I have just run |conda install boost=1.66.0| and it works now.
(updated to 1.66)
Anyway docs should be updated :)
Yes, I'm on Linux.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEeSqITi8_fdENgo8_cDExo5OL3eWvMks5tgjZpgaJpZM4SzURX>.
|
I took instructions from http://lpy.readthedocs.io/en/latest/user/installing.html#installing-using-conda-linux-mac-windows. This is quick fix: I have also tried Yea, so it's definitely a conda bug. I will submit an issue on conda github unless I'm the only one with such strange behavior. Am I? edit: |
Fix #12: Update documentation on linux: - install openalea.lpy rather than vplants.lpy - update boost install to use the one provided by openalea channel and none the one on the default channel
may be related to conda/conda#6065 ? |
Hey, I just wanted to chime in that I am having this issue as well. However, when I specifically install |
The fix is to remove boost and py-boost and openalea.lpy. conda install -c openalea openalea.lpy boost=1.66 -y |
That worked for me on one of my linux dev machines and my osx laptop, but not a second linux machine. It looks like there is a conflict somewhere on my end so sorry for cluttering the comments. On a somewhat related note which might be better placed elsewhere, I had tried building from source, but it looks like the SConscript file for the lpy wrapper dosn't include the qt path and so module.h couldn't find the QtCore/QtSharedData header. I was able to get scons to run by adding I am not very familiar with scons, so perhaps I am missing something. |
No problem. Thank you for reporting your problems; It help us a lot. First, you have a problem with a linux machine. What is your distribution? Do you have boost installed in the system (/usr/lib/...)?
For building from source, the easiest way is to use (at the root dir):
You may need to install conda-build in your root (or base) environment before:
We can discuss later on how to build the source directly. |
I am on ubuntu 14.04, but I dont think it is the linux flavor. I was eventually able to install LPy from conda on that machine after doing a full update of all conda packages and removing versions of some of the major packages lpy requires (qhull, cgal, boost, all openalea packages) that I had installed previously. Unfortunately I don't have a list of the packages from before to pinpoint which package was causing the issue. This even worked with two versions of boost installed (one installed via apt at the system level for another project). I have a suspicion that it might be the cgal package as I had also been using the eigen3 package from a non-standard channel that is probably out of date. |
On linux, after the installation of lpy following the previous advice concerning libboost 1.66, I have this error concerning the "sip module" How can I fix it ? Thks NOT using graph editor observer No module named grapheditor |
Does this line solve the problem?: |
following error 👍 PackageNotInstalledError: Package is not installed in prefix. |
Perhaps it uses a sip on your system and not in conda.
Just do:
conda install sip
Le 13/06/2018 à 20:12, dicombes a écrit :
…
following error 👍
***@***.***:~$ conda upgrade sip
PackageNotInstalledError: Package is not installed in prefix.
prefix: /home/dcombes/miniconda2
package name: sip
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEeSjCU-cNFuoUAhVkbKKPgC7wFvzlyks5t8VYGgaJpZM4SzURX>.
|
damned !!! Permission denied !!!! |
Hello, On linux (ubuntu 16.04 LTS) I had the same problem when importing openalea.plantgl: Worked for me when installing boost as: Regards ! Rami |
I'm on linux.
I have created conda enviroment with
conda create -n lpy openalea.lpy -c openalea
and activated it.Running
lpy
gives:conda list
prints that it installedlibboost 1.65.1 habcd387_4
so I guess it just installed wrong version of libboost.I will try install
libboost 1.66.0
manually and will tell you if it solves the problem.The text was updated successfully, but these errors were encountered: