Software Archive
Read-only legacy content
17061 Discussions

Yocto, How to install packages: python-serial python-pyparsing python-numpy python-wxgtk2.8

Ilya_K_2
Beginner
1,235 Views

Good day.

In debian i can to run:

sudo apt-get install python-opencv python-serial python-pyparsing python-numpy python-wxgtk2.8

How to do it on yocto?

1) build from source it all with building from source all dependencies?

2) is a good solution - install apt-get on yocto?

3) Maybe, i can to use opkg for installing it, (but in "opkg list" i can't see, for example, python-wxgtk2.8 ) ?

Thank you!

0 Kudos
5 Replies
Brendan_L_Intel
Employee
1,235 Views

pyserial & numpy are available in the repo here: http://iotdk.intel.com/repos/1.1/iotdk/i586/

We don't build all packages but you can certainly either rebuild from sources, rebuild yocto pacakges based on meta-intel-iot-devkit by adding them or simply using easy_install.

0 Kudos
Matthias_H_Intel
Employee
1,235 Views

in order to use the repo on http://iotdk.intel.com/repos/1.1/iotdk/i586/ you would need to create a file in "/etc/opkg" folder (e.g. /etc/opkg/iot-devkit.config") with the repo sources as entry, i.e. something like

cat > /etc/opkg/iot-devkit.config <<EOF
src iot-devkit http://iotdk.intel.com/repos/1.1/iotdk/
EOF

afterwards you need to call

opkg update

with that you can "opkg search" for or "opkg install" packages likewise you're used to with "apt-get" (or yum or zypper or ...)

0 Kudos
Ilya_K_2
Beginner
1,235 Views

mattias-hahn, thank you but:

root@clanton:~# cat > /etc/opkg/iot-devkit.config <<EOF
> src iot-devkit http://iotdk.intel.com/repos/1.1/iotdk/
> EOF
root@clanton:~# opkg update
Downloading http://repo.opkg.net/galileo/repo/clanton/Packages.gz.
Downloading http://repo.opkg.net/galileo/repo/i586/Packages.gz.
Collected errors:
 * opkg_conf_parse_file: /etc/opkg/base-feeds.conf:1: Ignoring invalid line: `rc/gz all     http://repo.opkg.net/galileo/repo/all'
 * opkg_download: Failed to download http://repo.opkg.net/galileo/repo/clanton/Packages.gz, wget returned 8.
 * opkg_download: Failed to download http://repo.opkg.net/galileo/repo/i586/Packages.gz, wget returned 8.

matthias-hahn (Intel) wrote:

in order to use the repo on http://iotdk.intel.com/repos/1.1/iotdk/i586/ you would need to create a file in "/etc/opkg" folder (e.g. /etc/opkg/iot-devkit.config") with the repo sources as entry, i.e. something like

cat > /etc/opkg/iot-devkit.config <<EOF
src iot-devkit http://iotdk.intel.com/repos/1.1/iotdk/
EOF

afterwards you need to call

opkg update

with that you can "opkg search" for or "opkg install" packages likewise you're used to with "apt-get" (or yum or zypper or ...)

0 Kudos
Brendan_L_Intel
Employee
1,235 Views

Ilya K. wrote:

root@clanton:~# opkg update

Downloading http://repo.opkg.net/galileo/repo/clanton/Packages.gz.

Downloading http://repo.opkg.net/galileo/repo/i586/Packages.gz.

This is a uclibc based pkg repo, it cannot be used with this eglibc image. Only the iotdk.intel.com repo will work.

0 Kudos
Matthias_H_Intel
Employee
1,235 Views

@Brendan:

only the iotdk.intel.com repo will work

well, any repo built against the Intel(R) IoT devkit would work. In particular it needs to be build against eglibc rather uclibc  

@Ilya:
apparently you have already set up a repo in /etc/opkg. Pls check the files in that folder. Make sure to use the right repo. If you have the Intel(R) IoT devkit image you can't use a uclibc based repository. If you use a uclibc image like you can't use http://iotdk.intel.com/repos/1.1/iotdk/ but rather a repo like AlexT repo.
 

0 Kudos
Reply