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

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229