Skip to content

Commit

Permalink
Fix ubuntu 19.04 error
Browse files Browse the repository at this point in the history
RuntimeError: FATAL: module compiled as little endian, but detected different endianness at runtime

see also ros-perception/vision_opencv#292
and ros-melodic-arch/ros-melodic-cv-bridge#2
  • Loading branch information
2maz committed Apr 30, 2020
1 parent 8878224 commit 070da6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/PythonMars/src/PythonInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,11 @@ struct ListBuilderState
#if PYTHON_VERSION == 3
int initNumpy() {
import_array();
return NULL;
#else
void initNumpy() {
import_array();
return NULL;
#endif
}

Expand Down

0 comments on commit 070da6c

Please sign in to comment.