Skip to content

AttributeError when building Default backend #2

@tMarvin91

Description

@tMarvin91

Hi i get following error after trying to build the default backend.

$ python -mpyvx.build_cbackend --default pyvx /home/test/Desktop/openvx_sample/install/Linux/x64/Release/
In file included from /home/test/Desktop/openvx_sample/install/Linux/x64/Release/include/VX/vx.h:50:0,
from pyvx/backend/pyvx.c:433:
/home/test/Desktop/openvx_sample/install/Linux/x64/Release/include/VX/vx_api.h:48:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
VX_API_ENTRY vx_context VX_API_CALL vxCreateContext();
^~~~~~~~~~~~
pyvx/backend/pyvx.c:438:15: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
char *_get_backend_version() {return "1.0.1-2";}
^~~~~~~~~~~~~~~~~~~~
pyvx/backend/pyvx.c:439:15: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
char *_get_backend_name() {return "pyvx";}
^~~~~~~~~~~~~~~~~
pyvx/backend/pyvx.c:440:15: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
char *_get_backend_install_path() {return "/home/test/Desktop/openvx_sample/install/Linux/x64/Release/";}
^~~~~~~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/test/Downloads/pyvx/pyvx/build_cbackend.py", line 131, in
build(name, openvx_install, default)
File "/home/test/Downloads/pyvx/pyvx/build_cbackend.py", line 107, in build
import pyvx.backend as backend
File "pyvx/backend/init.py", line 3, in
if isinstance(pyvx._default_backend_name, str):
AttributeError: 'module' object has no attribute '_default_backend_name'

i don't know where to go from here.

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