Protobuf error while trying to include c++ classes in python-tensorflow on aarch64 Architecture2019 Community Moderator Electionlibprotobuf FATAL Error seen even though I have correct libprotoc version installedConflict Protobuf version when using Opencv and Tensorflow c++OpenCV 3.2 includes libmir* and protobuf 2.6 which is conflicting with protobuf 3.1upgrading protobuf tensorflow on jetson tx2Tensorflow Installation Succeeded but Not Workingtensorflow linker_flag in CROSSTOOLProtobuf version mismatchprotobuf Fatal version mismatch after importing moduletensorflow on tx2 protobufVersion verification error for protobuff in tensorflow

Giving a talk in my old university, how prominently should I tell students my salary?

Is there a full canon version of Tyrion's jackass/honeycomb joke?

How can I be pwned if I'm not registered on the compromised site?

Specific Chinese carabiner QA?

Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?

Make me a metasequence

Why did the Cray-1 have 8 parity bits per word?

Do AL rules let me pick different starting equipment?

Where is the line between being obedient and getting bullied by a boss?

Citing contemporaneous (interlaced?) preprints

School performs periodic password audits. Is my password compromised?

GPL code private and stolen

Must 40/100G uplink ports on a 10G switch be connected to another switch?

How to use math.log10 function on whole pandas dataframe

Is there a limit on the maximum number of future jobs queued in an org?

It doesn't matter the side you see it

Should we avoid writing fiction about historical events without extensive research?

How to get the first element while continue streaming?

Are small insurances worth it

Why would the IRS ask for birth certificates or even audit a small tax return?

Misplaced tyre lever - alternatives?

Reason why dimensional travelling would be restricted

Can a gentile pronounce a blessing for a Jew? Are there songs I can sing that will bring peace?

Split a number into equal parts given the number of parts



Protobuf error while trying to include c++ classes in python-tensorflow on aarch64 Architecture



2019 Community Moderator Electionlibprotobuf FATAL Error seen even though I have correct libprotoc version installedConflict Protobuf version when using Opencv and Tensorflow c++OpenCV 3.2 includes libmir* and protobuf 2.6 which is conflicting with protobuf 3.1upgrading protobuf tensorflow on jetson tx2Tensorflow Installation Succeeded but Not Workingtensorflow linker_flag in CROSSTOOLProtobuf version mismatchprotobuf Fatal version mismatch after importing moduletensorflow on tx2 protobufVersion verification error for protobuff in tensorflow










2















Trying to import ctypes and use .so files with python tensorflow on aarch64 the following way:



import ctypes
import numpy as np
#import cv2


lib = ctypes.cdll.LoadLibrary('./serverfoo.so')


class image_data(ctypes.Structure):
_fields_ = [('to_dark', ctypes.c_int),
('to_bright', ctypes.c_int),
('start_time_sec',ctypes.c_int),
('start_time_nsec',ctypes.c_int),
('capture_time_sec',ctypes.c_int),
('capture_time_nsec',ctypes.c_int),
('data', ctypes.ARRAY(ctypes.c_ubyte,960*1280*3))]
def __repr__(self):
return '(0, 1, 2, 3, 4, 5)'.format(self.to_dark,
self.to_bright,
self.start_time_sec,
self.start_time_nsec,
self.capture_time_sec,
self.capture_time_nsec)


class image_server(object):
def __init__(self):
lib.image_server_new.argtypes = []
lib.image_server_new.restype = ctypes.c_void_p

lib.GetNewestImage.argtypes = [ctypes.c_void_p]
lib.GetNewestImage.restype = image_data

self.obj = lib.image_server_new()



def GetNewestImage(self):
return lib.GetNewestImage(self.obj)


leads to the following message (using the same code on an x86_64 works fine):



[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
Aborted (core dumped)


Every suggestion will be appreciated.










share|improve this question







New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you read the message from the exception? Have you tried doing what it suggests?

    – Some programmer dude
    10 hours ago











  • Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

    – tf_user
    10 hours ago
















2















Trying to import ctypes and use .so files with python tensorflow on aarch64 the following way:



import ctypes
import numpy as np
#import cv2


lib = ctypes.cdll.LoadLibrary('./serverfoo.so')


class image_data(ctypes.Structure):
_fields_ = [('to_dark', ctypes.c_int),
('to_bright', ctypes.c_int),
('start_time_sec',ctypes.c_int),
('start_time_nsec',ctypes.c_int),
('capture_time_sec',ctypes.c_int),
('capture_time_nsec',ctypes.c_int),
('data', ctypes.ARRAY(ctypes.c_ubyte,960*1280*3))]
def __repr__(self):
return '(0, 1, 2, 3, 4, 5)'.format(self.to_dark,
self.to_bright,
self.start_time_sec,
self.start_time_nsec,
self.capture_time_sec,
self.capture_time_nsec)


class image_server(object):
def __init__(self):
lib.image_server_new.argtypes = []
lib.image_server_new.restype = ctypes.c_void_p

lib.GetNewestImage.argtypes = [ctypes.c_void_p]
lib.GetNewestImage.restype = image_data

self.obj = lib.image_server_new()



def GetNewestImage(self):
return lib.GetNewestImage(self.obj)


leads to the following message (using the same code on an x86_64 works fine):



[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
Aborted (core dumped)


Every suggestion will be appreciated.










share|improve this question







New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you read the message from the exception? Have you tried doing what it suggests?

    – Some programmer dude
    10 hours ago











  • Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

    – tf_user
    10 hours ago














2












2








2








Trying to import ctypes and use .so files with python tensorflow on aarch64 the following way:



import ctypes
import numpy as np
#import cv2


lib = ctypes.cdll.LoadLibrary('./serverfoo.so')


class image_data(ctypes.Structure):
_fields_ = [('to_dark', ctypes.c_int),
('to_bright', ctypes.c_int),
('start_time_sec',ctypes.c_int),
('start_time_nsec',ctypes.c_int),
('capture_time_sec',ctypes.c_int),
('capture_time_nsec',ctypes.c_int),
('data', ctypes.ARRAY(ctypes.c_ubyte,960*1280*3))]
def __repr__(self):
return '(0, 1, 2, 3, 4, 5)'.format(self.to_dark,
self.to_bright,
self.start_time_sec,
self.start_time_nsec,
self.capture_time_sec,
self.capture_time_nsec)


class image_server(object):
def __init__(self):
lib.image_server_new.argtypes = []
lib.image_server_new.restype = ctypes.c_void_p

lib.GetNewestImage.argtypes = [ctypes.c_void_p]
lib.GetNewestImage.restype = image_data

self.obj = lib.image_server_new()



def GetNewestImage(self):
return lib.GetNewestImage(self.obj)


leads to the following message (using the same code on an x86_64 works fine):



[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
Aborted (core dumped)


Every suggestion will be appreciated.










share|improve this question







New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Trying to import ctypes and use .so files with python tensorflow on aarch64 the following way:



import ctypes
import numpy as np
#import cv2


lib = ctypes.cdll.LoadLibrary('./serverfoo.so')


class image_data(ctypes.Structure):
_fields_ = [('to_dark', ctypes.c_int),
('to_bright', ctypes.c_int),
('start_time_sec',ctypes.c_int),
('start_time_nsec',ctypes.c_int),
('capture_time_sec',ctypes.c_int),
('capture_time_nsec',ctypes.c_int),
('data', ctypes.ARRAY(ctypes.c_ubyte,960*1280*3))]
def __repr__(self):
return '(0, 1, 2, 3, 4, 5)'.format(self.to_dark,
self.to_bright,
self.start_time_sec,
self.start_time_nsec,
self.capture_time_sec,
self.capture_time_nsec)


class image_server(object):
def __init__(self):
lib.image_server_new.argtypes = []
lib.image_server_new.restype = ctypes.c_void_p

lib.GetNewestImage.argtypes = [ctypes.c_void_p]
lib.GetNewestImage.restype = image_data

self.obj = lib.image_server_new()



def GetNewestImage(self):
return lib.GetNewestImage(self.obj)


leads to the following message (using the same code on an x86_64 works fine):



[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.6.1 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "bazel-out/arm-opt/genfiles/external/com_github_googleapis_googleapis/google/bigtable/admin/v2/instance.pb.cc".)
Aborted (core dumped)


Every suggestion will be appreciated.







python c++ tensorflow protocol-buffers






share|improve this question







New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









tf_usertf_user

111




111




New contributor




tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






tf_user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Did you read the message from the exception? Have you tried doing what it suggests?

    – Some programmer dude
    10 hours ago











  • Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

    – tf_user
    10 hours ago


















  • Did you read the message from the exception? Have you tried doing what it suggests?

    – Some programmer dude
    10 hours ago











  • Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

    – tf_user
    10 hours ago

















Did you read the message from the exception? Have you tried doing what it suggests?

– Some programmer dude
10 hours ago





Did you read the message from the exception? Have you tried doing what it suggests?

– Some programmer dude
10 hours ago













Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

– tf_user
10 hours ago






Hi thx for answering so fast. Yes I tried the following: changing version of protobuf using pip installing a new protoc version - installing protobuf from sources and tensorflow from sources trying to change the version of the protobuf version tensorflow uses - deleting just the old protobuf version and replacing it with a link to a newer version - resulted in a real broken system - with freezing windows and other horrible experiences

– tf_user
10 hours ago













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






tf_user is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021245%2fprotobuf-error-while-trying-to-include-c-classes-in-python-tensorflow-on-aarch%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








tf_user is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















tf_user is a new contributor. Be nice, and check out our Code of Conduct.












tf_user is a new contributor. Be nice, and check out our Code of Conduct.











tf_user is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021245%2fprotobuf-error-while-trying-to-include-c-classes-in-python-tensorflow-on-aarch%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page