Page 1 of 1

[ solved] PDFArranger

PostPosted: Sep 30th, '20, 18:00
by Sigurd
Hello,
with the order "sudo dnf install pdfarranger" I have installed the PDF Arranger. Now it is installed and I have it in the start menu. But it does not start. When I try to start it in the konsole I'll get the follwoing text:
"
Code: Select all
[sigurd@localhost ~]$ pdfarranger
Traceback (most recent call last):
  File "/usr/bin/pdfarranger", line 11, in <module>
    load_entry_point('pdfarranger==1.1.1', 'console_scripts', 'pdfarranger')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/pdfarranger/pdfarranger.py", line 58, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python3.7/locale.py", line 608, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
[sigurd@localhost ~]$
"

What is wrong? What can I do to make it run?
Kind regards,
Sigurd

Re: PDFArranger

PostPosted: Sep 30th, '20, 18:19
by Dlrobin874
couldn't read properly on mobile, don't mind me

Re: PDFArranger

PostPosted: Sep 30th, '20, 18:20
by doktor5000
Sigurd wrote:locale.Error: unsupported locale setting


As mentioned in another thread, this is an issue with your locale settings. Please post the output of
Code: Select all
locale

Re: PDFArranger

PostPosted: Sep 30th, '20, 23:47
by Sigurd
Hi doktor5000,
here is the output of locale:

Code: Select all
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_DE.UTF-8)
bash: warning: setlocale: LC_TIME: cannot change locale (en_DE.UTF-8): No such file or directory
[sigurd@localhost ~]$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
[sigurd@localhost ~]$

Re: PDFArranger

PostPosted: Oct 1st, '20, 00:19
by doktor5000
What's the intention behind those locale settings ? Not sure how you set those, but en_DE is not a valid locale that we ship, nor does it really make sense.

Either you set it to something valid like e.g. LC_MESSAGES=en_GB.UTF-8 and the rest to de_DE.UTF-8, or you need to create your own custom locale definition.
You can check what locales you have installed via
Code: Select all
locales -a

Re: PDFArranger

PostPosted: Oct 1st, '20, 11:09
by Sigurd
Hi doktor5000,

sorry, but you are wrong. "Germany - English (en_DE)" is a usual setting (System Settings - Regional Settings - Formats - Region) that comes with Mageia too.
And sorry again. Your order "locales -a" is wrong too. Here are the settings for "locale -a":

Code: Select all
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_DE.UTF-8)
bash: warning: setlocale: LC_TIME: cannot change locale (en_DE.UTF-8): No such file or directory
[sigurd@localhost ~]$ locales -a
bash: locales: command not found
[sigurd@localhost ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
CP1251
ISO-8859-1
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-5
ISO-8859-7
ISO-8859-9
KOI8-R
KOI8-U
POSIX
UTF-8
de_AT
de_AT.UTF-8
de_AT.iso88591
de_AT.utf8
de_AT@euro
de_BE
de_BE.UTF-8
de_BE.iso88591
de_BE.utf8
de_BE@euro
de_CH
de_CH.UTF-8
de_CH.iso88591
de_CH.utf8
de_DE
de_DE.UTF-8
de_DE.iso88591
de_DE.utf8
de_DE@euro
de_IT
de_IT.UTF-8
de_IT.iso88591
de_IT.utf8
de_LI.UTF-8
de_LI.utf8
de_LU
de_LU.UTF-8
de_LU.iso88591
de_LU.utf8
de_LU@euro
en_AG
en_AG.utf8
en_AU
en_AU.UTF-8
en_AU.iso88591
en_AU.utf8
en_BE
en_BE.UTF-8
en_BE.iso88591
en_BE.utf8
en_BE@euro
en_BW
en_BW.UTF-8
en_BW.iso88591
en_BW.utf8
en_CA
en_CA.UTF-8
en_CA.iso88591
en_CA.utf8
en_DK
en_DK.UTF-8
en_DK.iso88591
en_DK.utf8
en_GB
en_GB.UTF-8
en_GB.iso88591
en_GB.utf8
en_HK
en_HK.UTF-8
en_HK.iso88591
en_HK.utf8
en_IE
en_IE.UTF-8
en_IE.iso88591
en_IE.utf8
en_IE@euro
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ
en_NZ.UTF-8
en_NZ.iso88591
en_NZ.utf8
en_PH
en_PH.UTF-8
en_PH.iso88591
en_PH.utf8
en_SC.UTF-8
en_SC.utf8
en_SG
en_SG.UTF-8
en_SG.iso88591
en_SG.utf8
en_US
en_US.UTF-8
en_US.iso88591
en_US.utf8
en_ZA
en_ZA.UTF-8
en_ZA.iso88591
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW
en_ZW.UTF-8
en_ZW.iso88591
en_ZW.utf8
[sigurd@localhost ~]$

I will try it with all changed to Germany.
Kind regards,
Sigurd

Re: PDFArranger

PostPosted: Oct 1st, '20, 11:17
by isadora
And also try next time, placing command-output in between code-tags.

For a great overview of existing BB-codes of which code-tags are part of, have a look at:
https://en.wikipedia.org/wiki/BBCode

Re: PDFArranger

PostPosted: Oct 1st, '20, 11:33
by Sigurd
Why should I look at any codes?
"Germany - English (en_DE)" is a usual option not only in Mageia. But in Mageia it does not work! I would like to wish that you will fix it in the next version of Mageia.

For me I found a solution that works in Mageia. The problem is solved and PDF Arranger is working.

Thank you for the help,
Sigurd

Re: PDFArranger

PostPosted: Oct 1st, '20, 19:11
by doktor5000
That does not change the fact, that en_DE is not a locale that we ship, hence the warnings you got

And when you only change regional settings to "Germany - English (en_DE)" in systemsettings, that only thing that changes is that LANG is being set to en_DE.UTF-8
Which does not produce any warnings at all.

Sigurd wrote:I would like to wish that you will fix it in the next version of Mageia.

You can request that with a bugreport: https://wiki.mageia.org/en/How_to_report_a_bug_properly

Apart from that, you don't mention what your solution is ?

Re: [ solved] PDFArranger

PostPosted: Oct 2nd, '20, 11:39
by Sigurd
The only solution that is possible is to change it in de_DE. But I would like to have English menues.
What do you mean with "en_DE" is a locale that we do not ship"? It is fact that it is a locale that came with Mageia.
Kind regards
Sigurd

Re: [ solved] PDFArranger

PostPosted: Oct 2nd, '20, 16:21
by doktor5000
You don't seem to understand. en_DE is not a locale for which we ship locale definitions.
It's basically telling the system to display english messages, but keep regional settings like currency, collation, date format etc. in german.
It's still using german locale definitions for that but does not display german messages. It's only a setting in systemsettings, but not an actual locale.

Hence you've got the error messages as your locale setup was totally mixed up. As I mentioned, when you only change regional settings to "Germany - English (en_DE)" in systemsettings, that only thing that changes is that LANG is being set to en_DE.UTF-8
Which does not produce any warnings at all. So you have messed up your locale settings in some way or another.

Re: [ solved] PDFArranger

PostPosted: Oct 2nd, '20, 17:10
by Sigurd
Hi,
I finally was thinking about Mageia. Many things do not work in the way I am used to it (see en_DE). The mouse works slow depending on the program surface and so on. Mageia is not bad. But I am back to Kubuntu even if the new LTS version has big bugs. But all together for me it is still the better choice. Sorry and thank you for your patience with me.
Kind regards,
Sigurd

Re: [ solved] PDFArranger

PostPosted: Oct 5th, '20, 10:19
by jibz
en_DE ? I didn't know that a part of Germany was speaking english !
The schema is "language_country", you will find a lot of "en_UK", "en_US", "en_CA", but all this countries are actualy english-speaker countries.
And, AFAIK, english is not a local dialect in gernany.

I believe you didn't get the use of all this local variables, you can set (what you want) to en_UK, for example to have the english menues, and de_DE for other things you wish.

> "Germany - English (en_DE)" is a usual option not only in Mageia.
Can you tell us which linux distribution ship an english language in germany ?

I see here (https://askubuntu.com/questions/710955/ ... s-warnings) that maybe the kde interface is trying to generate a string for such local (en_DE) prior a special configuration, that might be a KDE-upstream-bug.

Your current deficient setting is :
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

Would you try to redefine this variables :
LANG=en_UK.UTF-8
LC_CTYPE=en_UK.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8
LC_MESSAGES=en_UK.UTF-8

LC_TIME for german date/time format,
CTYPE for text conversion (uppercase to lowercase) (if I get it correctly)
COLLATE for triage (is 'S' before 'ß' ?) in german
MESSAGES in english.

Re: [ solved] PDFArranger

PostPosted: Oct 5th, '20, 17:32
by doktor5000
FWIW, this thread seems to be a lost cause, as mentioned in last comment by OP and the [solve] marking.

jibz wrote:I see here (https://askubuntu.com/questions/710955/ ... s-warnings) that maybe the kde interface is trying to generate a string for such local (en_DE) prior a special configuration, that might be a KDE-upstream-bug.


systemsettings does something pretty simple. If you select "Germany - English (en_DE)" in systemsettings it exports LANG=en_DE.UTF-8 via ~/.config/plasma-locale-settings.sh
LANG should override all individual LC_ settings, and that also works without issues and does not generate errors as posted by OP.

OP had some weird mixup in his locale settings, but does not seem to tell us how to reproduce that.

Re: [ solved] PDFArranger

PostPosted: Oct 22nd, '20, 11:43
by kajosim
Be aware of 2 different settings :
In MCC you can manage Localization .
Using Plasma in System Settings you can change Regional Settings for eg. numbers, time, dates and currency.

It makes a difference where you make the change.