FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
571 views 3 comments
by anonymous

Good morning, 

I need to install the pymodbus library on teltonika TRB140 with firmware version TRB1_R_00.07.03.2. 

At the moment I have more than 50 MB available and I have already tried using the command opkg update and opkg install python-light but the operation failed despite there is network. 
 

root@Teltonika-TRB140:~/pyprog# opkg update

Downloading https://downloads.openwrt.org/releases/21.02.0/targets/mdm9x07/generic/packages/Packages.gz

*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/targets/mdm9x07/generic/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.gz

Updated list of available packages in /var/opkg-lists/openwrt_base

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.sig

Signature check passed.

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.gz

Updated list of available packages in /var/opkg-lists/openwrt_luci

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.sig

Signature check passed.

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.gz

Updated list of available packages in /var/opkg-lists/openwrt_packages

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.sig

Signature check passed.

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.gz

Updated list of available packages in /var/opkg-lists/openwrt_routing

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.sig

Signature check passed.

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz

Updated list of available packages in /var/opkg-lists/openwrt_telephony

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.sig

Signature check passed.

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz

*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz

Downloading http://opkg.teltonika-networks.com/1037efc82efa357f5f8a0656bbf4b35a4e62b433e8b961571d4590020f935343/Packages.gz

Updated list of available packages in /var/opkg-lists/tlt_packages

Downloading http://opkg.teltonika-networks.com/1037efc82efa357f5f8a0656bbf4b35a4e62b433e8b961571d4590020f935343/Packages.sig

Signature check passed.

Collected errors:

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/targets/mdm9x07/generic/packages/Packages.gz, wget returned 8.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz, wget returned 8.

root@Teltonika-TRB140:~/pyprog# opkg install python-light

Unknown package 'python-light'.

Package installation encountered an error, removing previously installed packages.

Collected errors:

 * opkg_install_cmd: Cannot install package python-light.


What can I do to install the library? 

1 Answer

+1 vote
by anonymous

Hello,

Please try package python3-light

Otherwise, you can install Python from Services -> Package manager page.

Best regards,

by anonymous
Hello,

thank you for your quick reply.

I managed to install python3-light but I can't figure out how I can install the pymodbus library without using a package manager such as pip.

How can I do this?
by anonymous

You will need to install pip with 

  • opkg install python3-pip

Best regards,

by anonymous
Thank you very much! It works!

Best regards