Page 1 of 1

Google api in a raspberry pi

Posted: Thu Dec 12, 2019 10:14 pm
by PAlfredfrancis
Hi,
I have built a Visual STUDIO GUI with the Google api linked with my google sheets. It works fine in the visual studio but when I import the .exe file in the raspbian and open them with MONO the GUI works fine but google api doesn't.
Any thoughts on this?

Re: Google api in a raspberry pi

Posted: Thu Dec 12, 2019 11:27 pm
by topguy
Any thoughts on this?
That programs should give errors messages and log problems to a log-file or something to make it easier for people to figure out what is wrong without a crystal-ball.

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 12:32 am
by PAlfredfrancis
That did. But me being new to this environment didn't understand anything.
All I could figure out is that the API commands for VS and PYTHON(raspbian) is different.
But when I import it as a .exe file does it really matter in raspbian environment?

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 12:39 am
by W. H. Heydt
PAlfredfrancis wrote:
Fri Dec 13, 2019 12:32 am
That did. But me being new to this environment didn't understand anything.
All I could figure out is that the API commands for VS and PYTHON(raspbian) is different.
But when I import it as a .exe file does it really matter in raspbian environment?
In general, one would not expect a .exe file to run on a Pi at all. .exe files are compiled to run on x86 or x86-64 architectures, not the ARM architecture used by Pis.

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 12:42 am
by PAlfredfrancis
Oh I didn’t know that. But is there a way I can run a GUI made from VS in raspbian and link it with google api or even if its not an google sheets is there a way I can make it in a excel sheet(offline)? Is it doable?

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 9:50 am
by topguy
W. H. Heydt wrote:
Fri Dec 13, 2019 12:39 am
PAlfredfrancis wrote:
Fri Dec 13, 2019 12:32 am
That did. But me being new to this environment didn't understand anything.
All I could figure out is that the API commands for VS and PYTHON(raspbian) is different.
But when I import it as a .exe file does it really matter in raspbian environment?
In general, one would not expect a .exe file to run on a Pi at all. .exe files are compiled to run on x86 or x86-64 architectures, not the ARM architecture used by Pis.
The keyword is "Mono", this is a .NET application ( its my assumption since the UI is working ) and yes they come with a ".exe" ending, confusing right..

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 9:54 am
by topguy
That did. But me being new to this environment didn't understand anything.
But maybe showing those messages/logs to us in this forum would be a good idea then.

But can we just get an confirmation about what language/framwork you have written your application in. "Visual Studio" is not ONE programming language.

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 10:08 am
by jamesh
topguy wrote:
Fri Dec 13, 2019 9:50 am
W. H. Heydt wrote:
Fri Dec 13, 2019 12:39 am
PAlfredfrancis wrote:
Fri Dec 13, 2019 12:32 am
That did. But me being new to this environment didn't understand anything.
All I could figure out is that the API commands for VS and PYTHON(raspbian) is different.
But when I import it as a .exe file does it really matter in raspbian environment?
In general, one would not expect a .exe file to run on a Pi at all. .exe files are compiled to run on x86 or x86-64 architectures, not the ARM architecture used by Pis.
The keyword is "Mono", this is a .NET application ( its my assumption since the UI is working ) and yes they come with a ".exe" ending, confusing right..
Rank stupidity from MS. Using the same .exe file extension for a non-native/platform independent byte code. Insane.

Re: Google api in a raspberry pi

Posted: Fri Dec 13, 2019 11:43 am
by Heater
Especially as they missed the opportunity to use the .net extension for their .NET applications.