LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2024, 07:48 AM   #1
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Rep: Reputation: Disabled
slpkg syntax


Hello every one,

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)?

thanks
 
Old 04-17-2024, 08:00 AM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 452

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Was python3-pythondialog rebuilt for 3.11?
 
Old 04-17-2024, 08:00 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
you most probably haven't installed slpkg python dependencies: on current you need python3-pythondialog.

EDIT: too slow!
 
Old 04-17-2024, 08:16 AM   #4
ZenwalkerGod
LQ Newbie
 
Registered: Apr 2023
Location: Portugal
Distribution: Zenwalk
Posts: 17

Rep: Reputation: 8
That error happened to me.

What i did was

Quote:
pip install slpkg
 
Old 04-17-2024, 08:23 AM   #5
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
I hadn't. but now:
Quote:
Package python3-pythondialog-3.5.3-x86_64-1_SBo.tgz installed.
and
Quote:
Package python3-build-1.2.1-x86_64-1_SBo.tgz installed.
but when I run slpkg update, i still get
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 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#
 
Old 04-17-2024, 08:29 AM   #6
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ZenwalkerGod View Post
That error happened to me.

What i did was
something happened but the outcome didn't change

Quote:
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#
 
Old 04-17-2024, 08:35 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by however View Post
I hadn't. but now:

and

but when I run slpkg update, i still get
probably you have issues with your locale settings, see this topic
https://www.linuxquestions.org/quest...ue-4175735100/
 
Old 04-17-2024, 08:50 AM   #8
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
probably you have issues with your locale settings, see this topic
https://www.linuxquestions.org/quest...ue-4175735100/
It seems that I don't! i followed the threat that you linked and all the outputs are correct, including the 'locale' and '/etc/profile.d/lang.sh'
 
Old 04-17-2024, 08:59 AM   #9
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
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?
 
Old 04-17-2024, 09:06 AM   #10
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
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'

Last edited by however; 04-17-2024 at 09:23 AM.
 
Old 04-17-2024, 09:36 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
what does these two commands (from the same shell) say
Code:
set | grep LANG
Code:
set | grep LC
 
Old 04-17-2024, 11:40 AM   #12
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
what does these two commands (from the same shell) say
Code:
set | grep LANG
bash-5.2# set | grep LANG
LANG=en_US.utf8
LANGUAGE=
bash-5.2#

Quote:
Code:
set | grep LC
bash-5.2# set | grep LC
LC_ALL=
LC_COLLATE=C
LC_MONETARY=en_MT.UTF-8
MAILCHECK=60
bash-5.2#


Thanks for helping.
 
Old 04-17-2024, 12:01 PM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by however View Post
LC_MONETARY=en_MT.UTF-8
There is no such locale: en_MT.UTF-8. (There is mt_MT.utf8).
 
Old 04-17-2024, 12:02 PM   #14
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
^--that
 
Old 04-17-2024, 12:05 PM   #15
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Code:
$ LC_MONETARY=en_MT.UTF-8 python
Python 3.11.9 (main, Apr  2 2024, 13:43:44) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, '')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.11/locale.py", line 627, in setlocale
    return _setlocale(category, locale)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
>>>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sbopkg_gui for current and g-slpkg a gui for slpkg rizitis Slackware 5 08-26-2023 04:38 PM
Slpkg New Slackware packaging tool dslackw Slackware 228 11-23-2022 02:04 AM
slpkg usage question: how to upgrade *installed* packages wireshark Slackware 8 11-16-2015 11:47 PM
confused about iojs installation using slpkg Sefid par Slackware 4 08-31-2015 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration