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

Incompatible with python 3 #1

Open
johncadengo opened this issue Dec 15, 2016 · 6 comments
Open

Incompatible with python 3 #1

johncadengo opened this issue Dec 15, 2016 · 6 comments

Comments

@johncadengo
Copy link

Hi. When I try installing this project, I get an error like this:

pip install -e opencv-gpu-py
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "~/opencv-gpu-py/setup.py", line 36, in <module>
        opencv_deps = pkgconfig('opencv')
      File "~/opencv-gpu-py/setup.py", line 18, in pkgconfig
        for key, value in flag_map.iteritems():
    AttributeError: 'dict' object has no attribute 'iteritems'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1

Now, when I update the offending lines in setup.py to use .items() instead of .iteritems(), I can get it to be installed, but when I run the test.py, I get an error like this:

python test/test.py 
Traceback (most recent call last):
  File "test/test.py", line 5, in <module>
    import cv2gpu
ImportError: ~/opencv-gpu-py/cv2gpu.cpython-35m-x86_64-linux-gnu.so: undefined symbol:

Any idea why?

@HansBouwmeester
Copy link

John, Ran into the same thing. Were you able to solve?

@angiesasmita
Copy link

@johncadengo @Gra55h0pper
Hi, I'm facing the same issue. Did you guys manage to solve it? thanks!

@domninvv
Copy link

domninvv commented Dec 11, 2017

Yep, same issue, can't find the way to fix it.

@TharinduDR
Copy link

Any update with the issue? I am facing the same issue with python 3

@alviur
Copy link

alviur commented Mar 12, 2018

Same issue here, still not solved

@alexanderkoumis
Copy link
Owner

I hear you guys, I've spent a few hours trying to debug this but wasn't able to get to the bottom of it. I'm fairly busy these days so I likely won't be able to provide a fix soon, if anyone else is familiar with the cpython build process for python3 and would like to take a look I'd greatly appreciate it.

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

7 participants