SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
after I solved the previous thread with comments and reccommendations on using slpkg to compile and build sbopkgs and relative dependencies, I build and installed the slpkg-5.0.5 and I am trying to learn how to use it.
I can't find documentation anywhere; watched a cpl of vides on youtube but something is wrong. No matter what option i pass to slpkg (slplg _h, slpkg -H, slpkg -U, slpkg update.....) i get this message
Quote:
bash-5.2# slpkg update
Traceback (most recent call last):
File "/usr/sbin/slpkg", line 5, in <module>
from slpkg.main import main
File "/usr/lib/python3.11/site-packages/slpkg/main.py", line 19, in <module>
from slpkg.choose_packages import Choose
File "/usr/lib/python3.11/site-packages/slpkg/choose_packages.py", line 8, in <module>
from slpkg.dialog_box import DialogBox
File "/usr/lib/python3.11/site-packages/slpkg/dialog_box.py", line 5, in <module>
from dialog import Dialog
ModuleNotFoundError: No module named 'dialog'
bash-5.2#
what am i missing/doing wrong? What does it mean? how do I use slpkg (syntax)?
bash-5.2# slpkg update
Traceback (most recent call last):
File "/usr/sbin/slpkg", line 5, in <module>
from slpkg.main import main
File "/usr/lib/python3.11/site-packages/slpkg/main.py", line 19, in <module>
from slpkg.choose_packages import Choose
File "/usr/lib/python3.11/site-packages/slpkg/choose_packages.py", line 8, in <module>
from slpkg.dialog_box import DialogBox
File "/usr/lib/python3.11/site-packages/slpkg/dialog_box.py", line 12, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib64/python3.11/locale.py", line 627, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
bash-5.2#
bash-5.2$ pip install slpkg
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/lib64/python3.11/site-packages/pwquality-1.4.5-py3.11-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /usr/lib64/python3.11/site-packages/gpg-1.23.2-py3.11-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Requirement already satisfied: slpkg in /usr/lib/python3.11/site-packages (5.0.5)
Requirement already satisfied: pythondialog>=3.5.3 in /usr/lib/python3.11/site-packages (from slpkg) (3.5.3)
bash-5.2$ slpkg update
bash: slpkg: command not found
bash-5.2$ su
Password:
bash-5.2# slpkg update
Traceback (most recent call last):
File "/usr/sbin/slpkg", line 5, in <module>
from slpkg.main import main
File "/usr/lib/python3.11/site-packages/slpkg/main.py", line 19, in <module>
from slpkg.choose_packages import Choose
File "/usr/lib/python3.11/site-packages/slpkg/choose_packages.py", line 8, in <module>
from slpkg.dialog_box import DialogBox
File "/usr/lib/python3.11/site-packages/slpkg/dialog_box.py", line 12, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib64/python3.11/locale.py", line 627, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
bash-5.2#
what happens if you, from the same shell where you have the slpkg error, enter these three lines
Code:
LC_ALL=
LANG=en_US.utf8
slpkg update
?
does slpkg work then?
sadly, it doesn't!
Quote:
bash-5.2# LC_ALL=
LANG=en_US.utf8
slpkg update
Traceback (most recent call last):
File "/usr/sbin/slpkg", line 5, in <module>
from slpkg.main import main
File "/usr/lib/python3.11/site-packages/slpkg/main.py", line 19, in <module>
from slpkg.choose_packages import Choose
File "/usr/lib/python3.11/site-packages/slpkg/choose_packages.py", line 8, in <module>
from slpkg.dialog_box import DialogBox
File "/usr/lib/python3.11/site-packages/slpkg/dialog_box.py", line 12, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib64/python3.11/locale.py", line 627, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
bash-5.2#
p.s.: the language was already set to 'en_US.utf8'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.