OpenWrt Forum Archive

Topic: cannot install python packages & others on Openwrt& Routerboard750GL

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear GURU / Developer
Please kindly assist.

I ‘ve succesfull installation Openwrt (BusyBox v1.16.1 (2010-04-13 10:25:42 EEST) built-in shell (ash)
KAMIKAZE (bleeding edge, r20828) on Mikrotik routerboard 750 GL using 32MB Ram in Metarouter  type ( cpu 400 Mhz Ar71xx Atheros AR7242,Ram: 64 MB,and Flash 128 MB)
System resource:
root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                87363      5147     82216   6% /
tmpfs                     6976        36      6940   1% /tmp
tmpfs                      512         0       512   0% /dev
root@OpenWrt:~# cat /proc/meminfo
MemTotal:          13952 kB
MemFree:            6988 kB
root@OpenWrt:~# top

Mem: 6996K used, 6956K free, 0K shrd, 0K buff, 2508K cached
CPU:   0% usr   0% sys   0% nic  99% idle   0% io   0% irq   0% sirq
Load average: 0.00 0.00 0.00 1/22 1576
I need to install python and luci packages for my developing.
I try to use opkg update and opkg install:
The result was
root@OpenWrt:/etc# opkg update
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 1.
I found that location was not available by using http://downloads.openwrt.org/snapshots/ … ps/package
So I change /etc/opkg.conf to new available location
src luci http://downloads.openwrt.org/kamikaze/8 … /packages/
and
src luci http://downloads.openwrt.org/kamikaze/8 … /packages/
And the use command : root@OpenWrt:/tmp# opkg install luci-http_0.8.8-1_mips.ipk  The results are the same with all the package lists:
* pkg_hash_add_from_file: Package luci-admin-full version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-admin-mini version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-admin-rpc version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-app-ddns version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-app-ffwizard-leipzig version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-app-firewall version 0.8.8-1 has no valid architecture, ignoring.
   pkg_hash_add_from_file: Package luci-http version 0.8.8-1 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package luci-i18n-english version 0.8.8-1 has no valid architecture, ignoring.
  wfopen: luci-http_0.8.8-1_mips.ipk: No such file or directory.
* pkg_init_from_file: Failed to extract control file from luci-http_0.8.8-1_mips.ipk.
So I copy  python_2.5.4-2_mips.ipk to local /tmp and run  root@OpenWrt:/tmp# opkg install python_2.5.4-2_mips.ipk again
The result is the same above * pkg_hash_add_from_file: Package python version 2.5.4-2 has no valid architecture, ignoring.
* pkg_hash_add_from_file: Package pyyaml version 3.08-1 has no valid architecture, ignoring.
* pkg_hash_fetch_best_installation_candidate: Packages for python found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package python.
Question
1.How to install python package and luci package on Openwrt (running on Routerboard 750 GL)
Note : It worked with DHCP and DNS.
root@OpenWrt:/tmp# ping google.com
PING google.com (173.194.126.96): 56 data bytes
64 bytes from 173.194.126.96: seq=0 ttl=53 time=59.100 ms
64 bytes from 173.194.126.96: seq=1 ttl=53 time=58.855 ms

Thank you
Banatus S

Now I can install Python package on openwrt.
Thank you for  this link : http://rnd.rajven.net/openwrt/mikrotik/ … /packages/
Please down load all these package before install python otherwise you will receive the error.
1.libpthread*.*
2.zlib*.*
3.libffi*.*
4.python-mini*.*
5.python_2.7.3*.*
type command on your prompt : opkg install " those packages"
Your screen look like this in the end:
*****************************
Installing python-mini (2.7.3-2) to root...
Installing python (2.7.3-2) to root...
Configuring python-mini.
Configuring python.
*****************************
Cheers:
Banatus S

banatus wrote:

KAMIKAZE (bleeding edge, r20828)

The thing I don't understand: Why are people using OpenWRT releases from the stoneage?

BB14.07 is currently at 44874, roughly 25.000 changes ahead of Kamikaze...

The discussion might have continued from here.