Page 2 of 2

Compiling module from source - make gives error

Posted: 28 Aug 2022, 19:50
by hope
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.

Compiling module from source - make gives error

Posted: 28 Aug 2022, 20:15
by beny
hi hope for the ufw package 0.35 version, you need python2.7 you have this package installed?

Compiling module from source - make gives error

Posted: 29 Aug 2022, 12:04
by hope
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*

Compiling module from source - make gives error

Posted: 29 Aug 2022, 16:27
by beny
hi, if you don't have pygobject check and install it,14.2 version.

Compiling module from source - make gives error

Posted: 16 Sep 2022, 06:27
by Rava
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.

Compiling module from source - make gives error

Posted: 11 Jun 2023, 11:15
by hope
Rava, no hope, I could not solve problem yet.