Skip to content

Incompatible with python 3 #1

@johncadengo

Description

@johncadengo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions