Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KDinh
Beginner
1,036 Views

OPKG-Yocto Unknown Package

Jump to solution

Hi all,

I was trying to push sensor data up to Google Spreadsheet according to below instructions:

Google Spreadsheet:

https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/connecting-to-goo... https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/connecting-to-goo...

Create Credentials:

http://gspread.readthedocs.org/en/latest/oauth2.html Using OAuth2 for Authorization — gspread 0.2.5 documentation

Both require some packages installed (you could check the above links):

Google Spreadsheet

First up we will have to install the gspread python library, which will do the heavy lifting of connecting to google docs and updating the spreadsheet! With your board connected and online, run the following:

Copy Code

  1. sudo apt-get update
  2. sudo apt-get install python-pip
  3. sudo pip install gspread oauth2client

Create Credential

  1. nstall https://github.com/google/oauth2client oauth2client:

pip install --upgrade oauth2client

Depending on your system setup you may need to install PyOpenSSL:

pip install PyOpenSSL

Everything worked perfectly fine when I got everything done, tested the code in my Ubuntu (14.04) until I moved the whole thing into Galileo. The problem is: the required packages are all unable to install, and are regarded as Unknown Package.

I tried "opkg update", I'm sure that my internet connection is fine, it always returns as below:

opkg install python-pip

opkg pip install gspread oauth2client -> It said that "pip" was an invalid argument? I'm quite sure that Python-pip should be in the repository run by AlexT which I got it from the very start.

So I left out the"pip"

pip install --upgrade oauth2client

pip install PyOpenSSL

Same result for both:

Anyone knows how to get all the packages installed? Those files stay in root folder of Ubuntu, should I do something to copy them to Galileo's SD Card? Where?

I know the guidance is for RPi, but it is applicable to Intel Galileo, isn't it?

Any help would be very much appreciated.

I'm not quite well at English so if there is anything above somehow sounds offensive, please kindly ignore it.

Thanks in advance.

1 Solution
Carlos_M_Intel
Employee
163 Views

Hi dylann,

I'm not sure if the tutorial you are following has been tested with the Galileo Board, I suggest you to contact Adafruit to know if they have tested his tutorial with the Galileo Board, this is because it seems to be oriented only to the boards: Raspberry Pi and Beaglebone Black [http://www.adafruit.com/support http://www.adafruit.com/support - http://www.adafruit.com/contact_us http://www.adafruit.com/contact_us]

What is the output of running uname -a?

The Yocto image uses opkg and not apt-get so you must install your packages in a different way. I saw you are using Alext's repo (I'm assuming you are using the uClibc image, is this right?)

The errors you are getting after running opkg update are due to the network connection.

How are you setting your internet connection?

Are you using a WiFi module or are you using Ethernet?

Could you post your wpa_supplicant.conf file?

What is the output of running ifconfig?

Are you able to ping a website?

About the opkg install python-pip, I just checked the repo and I didn't find this package (http://repo.opkg.net/galileo/i586/ http://repo.opkg.net/galileo/i586/)

Follow the instruction in here: http://pip.readthedocs.org/en/stable/installing/ http://pip.readthedocs.org/en/stable/installing/ to install pip in the board.

Then, try to install PyOpenSSL and oauth2client.

Regards,

Charlie

View solution in original post

3 Replies
Carlos_M_Intel
Employee
164 Views

Hi dylann,

I'm not sure if the tutorial you are following has been tested with the Galileo Board, I suggest you to contact Adafruit to know if they have tested his tutorial with the Galileo Board, this is because it seems to be oriented only to the boards: Raspberry Pi and Beaglebone Black [http://www.adafruit.com/support http://www.adafruit.com/support - http://www.adafruit.com/contact_us http://www.adafruit.com/contact_us]

What is the output of running uname -a?

The Yocto image uses opkg and not apt-get so you must install your packages in a different way. I saw you are using Alext's repo (I'm assuming you are using the uClibc image, is this right?)

The errors you are getting after running opkg update are due to the network connection.

How are you setting your internet connection?

Are you using a WiFi module or are you using Ethernet?

Could you post your wpa_supplicant.conf file?

What is the output of running ifconfig?

Are you able to ping a website?

About the opkg install python-pip, I just checked the repo and I didn't find this package (http://repo.opkg.net/galileo/i586/ http://repo.opkg.net/galileo/i586/)

Follow the instruction in here: http://pip.readthedocs.org/en/stable/installing/ http://pip.readthedocs.org/en/stable/installing/ to install pip in the board.

Then, try to install PyOpenSSL and oauth2client.

Regards,

Charlie

View solution in original post

Carlos_M_Intel
Employee
163 Views

Hi dylann,

Do you have updates on this?

Have you been able to install packages with opkg in your board?

Did you contact Adafruit Support?

Regards,

Charlie

KDinh
Beginner
163 Views

Hi CMata_Intel,

sorry for replying so late, I was busy preparing for the exams last week.

Anyway, you were right, I got the internet connection fixed, changed pip and had required packages downloaded.

Thanks,

Dylan

Reply