Skip to content
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

Python 3 compatibility? #24

Open
AutomaticHourglass opened this issue Jan 18, 2016 · 3 comments
Open

Python 3 compatibility? #24

AutomaticHourglass opened this issue Jan 18, 2016 · 3 comments

Comments

@AutomaticHourglass
Copy link

I have installed PCV on Anaconda with python 3.5 and tried to compile this:

from PIL import Image
from pylab import *
from numpy import *

from PCV.localdescriptors import dsift, sift

basically dense sift example in examples. The compiler gives me the output:

Traceback (most recent call last):
File "C:\Dropbox\Python\Sorusana\main.py", line 9, in
from PCV.localdescriptors import dsift, sift
File "C:\Anaconda3\lib\site-packages\PCV\localdescriptors\dsift.py", line 38
print 'processed', imagename, 'to', resultname
^
SyntaxError: Missing parentheses in call to 'print'
[Finished in 1.5s]

I think it's because python 2 neture of the library. Any solutions?

@jesolem
Copy link
Owner

jesolem commented Jan 18, 2016

Yeah. The entire book and repository is using Python2.

In you specific error you need to have parenthesis for print, like this
print('processed', imagename, 'to', resultname)

@subratajanaphd
Copy link

How to install PCV
from PCV.classifiers import bayes
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'PCV'

@uly94
Copy link

uly94 commented Oct 11, 2021

I have the same error...
"ModuleNotFoundError: No module named 'PCV'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants