Giter Club home page Giter Club logo

Comments (6)

nfahlgren avatar nfahlgren commented on June 3, 2024

@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.

calizarr avatar calizarr commented on June 3, 2024

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.

nfahlgren avatar nfahlgren commented on June 3, 2024

@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.

nfahlgren avatar nfahlgren commented on June 3, 2024

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.

jshoyer avatar jshoyer commented on June 3, 2024

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.

nfahlgren avatar nfahlgren commented on June 3, 2024

@jshoyer awesome, thanks!

from plantcv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.