Comments (6)
@jshoyer I have setuptools working now for the dev branch. I tested it myself but it would be great if you (and others) could test it also to make sure it works for you. I updated the documentation, other than for Windows, here: http://plantcv.readthedocs.io/en/latest/installation/.
from plantcv.
If you follow most of the instructions and follow these lines of code:
virtualenv -p ~/usr/python2/bin/bin/python2.7 Test_PlantCV --system-site-packages
cd Test_PlantCV/
git clone https://github.com/danforthcenter/plantcv.git
cd plantcv/
git checkout dev
python setup.py install
the plantcv import fails with this error
Python 2.7.9 (default, Feb 23 2015, 15:48:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import plantcv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "plantcv/__init__.py", line 11, in <module>
from print_image import print_image
File "plantcv/print_image.py", line 3, in <module>
import cv2
ImportError: No module named cv2
>>>
Seems like an OpenCV issue or path and OpenCV issue.
from plantcv.
@calizarr when I created a virtualenv as you did, on jupyter, it worked for me. Maybe there is something up with your OpenCV path? I used our standard system OpenCV, using the --system-site-packages
like you did.
from plantcv.
Looks like the problem was that @calizarr used a local Python install that did not link with the system lib paths, so cv2 was not found in the default sys.path. I think the solution here is 1) adding documentation to the installation instructions for virtualenv and 2) adding better checking in the setup.py script to make sure cv2 is importable before installing.
from plantcv.
sudo python setup.py install
worked fine for me on a Macbook (os 10.10.5, 14F1909---I am still on Yosemite). Some cursory testing of a pipeline produced results that matched my expectations. Great!
(I have not actually read through your installation documentation yet)
from plantcv.
@jshoyer awesome, thanks!
from plantcv.
Related Issues (20)
- Function for merging images that overlap
- Issue with thresholding images - image is neither greyscale or rbg? HOT 3
- UPDATE needed to PSII tutorial: chlorophyll index default distance failing HOT 1
- Missing line of code in coverage analysis ?
- analyze.spectral_reflectance breaks if there are empty ROIs HOT 5
- Problems detecting color card. HOT 2
- Question about coverting outputs json to csv after following multi plant image processing tutorial HOT 1
- Analyze function to report pixels in spatial bins
- Kmeans Segmentation Functions / Patch Analysis
- Adding an indent to the JSON save function HOT 2
- Problem with transform.merge_images tests HOT 1
- Watershed debug image getting returned
- Add documentation for select features in `plantcv.learn` and `plantcv.parallel`
- Smarter default values for params like `text_size` and `text_thickness`
- zsh: command not found: plantcv-workflow.py HOT 3
- Batch processing not finding images HOT 4
- Add Order Number to ROI debug images
- Change "red" wavelength for _make_pseudo_rgb HOT 1
- Change Github Actions to Newer Builds HOT 1
- Multi ROI HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plantcv.