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

Issue at installing nvdla/vp #43

Open
nicolast0604 opened this issue Jul 17, 2019 · 0 comments
Open

Issue at installing nvdla/vp #43

nicolast0604 opened this issue Jul 17, 2019 · 0 comments

Comments

@nicolast0604
Copy link

[ 74%] Linking CXX shared library libcosim_sc_wrapper.so
[ 74%] Built target cosim_sc_wrapper
Scanning dependencies of target greenscript
[ 74%] Building CXX object libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir//src/greenscript.cpp.o
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp: In constructor ‘gs::script::GreenScriptModule::GreenScriptModule(sc_core::sc_module_name, const char*)’:
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:178:39: error: ‘PyString_FromString’ was not declared in this scope
name_py = PyString_FromString(name()); // new ref
^
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp: In member function ‘void gs::script::GreenScriptModule::load(const char*)’:
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:221:46: error: ‘PyString_AsString’ was not declared in this scope
std::string s(PyString_AsString(path_py));
^
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp: In member function ‘void gs::script::GreenScriptModule::add_to_pythonpath(const char*)’:
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:262:47: error: ‘PyString_FromString’ was not declared in this scope
PyObject path_py = PyString_FromString(path); // new ref
^
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp: In member function ‘bool gs::script::GreenScriptModule::private_load(const char
)’:
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:278:68: error: ‘PyFile_FromString’ was not declared in this scope
PyObject* PyFileObject = PyFile_FromString((char *)fullname, mode);
^
In file included from /usr/local/include/python3.7m/Python.h:129:0,
from /root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:38:
/root/nvdla/vp/libs/greenlib/greenscript/src/greenscript.cpp:279:56: error: ‘PyFile_AsFile’ was not declared in this scope
PyObject *ret = PyRun_File(PyFile_AsFile(PyFileObject),
^
/usr/local/include/python3.7m/pythonrun.h:146:23: note: in definition of macro ‘PyRun_File’
PyRun_FileExFlags(fp, p, s, g, l, 0, NULL)
^
libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir/build.make:62: recipe for target 'libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir/
/src/greenscript.cpp.o' failed
make[2]: *** [libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir/__/src/greenscript.cpp.o] Error 1
CMakeFiles/Makefile2:2079: recipe for target 'libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir/all' failed
make[1]: *** [libs/greenlib/greenscript/lib/CMakeFiles/greenscript.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

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

1 participant