Compiling module from source - make gives error

Post here if you are a new Porteus member and you're looking for some help.
hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

Compiling module from source - make gives error

Post#16 by hope » 28 Aug 2022, 19:50

Hi beny, I tried 0.35, no luck ! This is the complete process before placing it to modules folder :

Code: Select all

root@porteus:/tmp# txz2xzm ufw-0.35-x86_64-1_slonly.txz 
Verifying package ufw-0.35-x86_64-1_slonly.txz.
Installing package ufw-0.35-x86_64-1_slonly.txz:
PACKAGE DESCRIPTION:
# ufw (Uncomplicated Firewall)
#
# Ufw is a program for managing a netfilter firewall. It provide a
# command line interface and aims to be uncomplicated and easy to use.
#
# Homepage: https://launchpad.net/ufw
#
Package ufw-0.35-x86_64-1_slonly.txz installed.
Creating /tmp/ufw-0.35-x86_64-1_slonly.xzm

root@porteus:/tmp# activate ufw-0.35-x86_64-1_slonly.xzm 
Updating shared library links:  /sbin/ldconfig
root@porteus:/tmp# ufw
Traceback (most recent call last):
  File "/usr/sbin/ufw", line 26, in <module>
    import ufw.frontend
ModuleNotFoundError: No module named 'ufw'
root@porteus:/tmp# 
After placing it under module folder and restarting :

Code: Select all

guest@porteus:~$ sudo ufw
Traceback (most recent call last):
  File "/usr/sbin/ufw", line 26, in <module>
    import ufw.frontend
ModuleNotFoundError: No module named 'ufw'
Thanks.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

beny
Full of knowledge
Full of knowledge
Posts: 2093
Joined: 02 Jan 2011, 11:33
Location: italy

Compiling module from source - make gives error

Post#17 by beny » 28 Aug 2022, 20:15

hi hope for the ufw package 0.35 version, you need python2.7 you have this package installed?

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

Compiling module from source - make gives error

Post#18 by hope » 29 Aug 2022, 12:04

Thanks beny.

I installed python2.7 but this time new chain added to error chain :

Code: Select all

# activate python-2.7.11-x86_64-2.xzm 
Traceback (most recent call last):
  File "/usr/share/porteus/gtkdialog.py", line 7, in <module>
    import gi
ImportError: No module named gi
Updating shared library links:  /sbin/ldconfig
I think it is a python script which shows dialog box such as after activation/deactivation of modules etc. Now it is not working but... I have finally managed to compile the package from its source found in for slackware 14.2 from source https://slackbuilds.org/repository/14.2/network/ufw/

I am on it... *HERE*
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

beny
Full of knowledge
Full of knowledge
Posts: 2093
Joined: 02 Jan 2011, 11:33
Location: italy

Compiling module from source - make gives error

Post#19 by beny » 29 Aug 2022, 16:27

hi, if you don't have pygobject check and install it,14.2 version.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Compiling module from source - make gives error

Post#20 by Rava » 16 Sep 2022, 06:27

beny wrote:
29 Aug 2022, 16:27
hi, if you don't have pygobject check and install it,14.2 version.
hope, did this help with your issue?

I also run more than I like into similar issues with anything python and often i am unable to solve it.
When the needed python object is to be found in one of the slackware packages, it is solvable by installing these - even extracting only the bare minimum of the python objects and create a dependency module usually works fine.
But when it's a more obscure python library that is needed - that's not available in any slackware package - and I try installing it into the known path - usually that never works and I not manage to get the program to run.

While I like python as language per se, that usually puts me off so that aside from hacking minor details in existing python scripts I never got much into it myself, like, exchanging some of my bash scripts with a python one.
Cheers!
Yours Rava

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

Compiling module from source - make gives error

Post#21 by hope » 11 Jun 2023, 11:15

Rava, no hope, I could not solve problem yet.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

Post Reply