0 votes
We have just installed 2.5.12 and get an error when changing the language.

My team member can't change to Arabic.

I uninstalled and reinstalled and can't change to English, it automatically chose the first language, Arabic.

The error is

Traceback (most recent call last):
  File "ptxprint.py", line 381, in <module>
AttributeError: 'GtkViewModel' object has no attribute 'configId'

PTXprint Version 2.5.12

Then again from Unhandled exception in script

Failed to execute script 'ptxprint' due to unhandled exception:
'GtkViewModel' object has no attribute 'configId'

Traceback (most recent call last):
  File "ptxprint.py", line 381, in <module>
AttributeError: 'GtkViewModel' object has no attribute 'configId'
PTXprint by (211 points)

3 Answers

0 votes
Well... I can confirm the bug. I'll put in a bug report on github.
There's a work-around to setting it, if you can figure out where ptxprint_user.cfg is stored on your machines (On linux, it's in ~/.config/ptxprint/ptxprint_user.cfg), that's a text file and you're looking for the line which starts lang=

e.g. on mine it says "lang=en.UTF-8" for English, I guess ar.UTF-8 for Arabic.
Needless to say, make a backup of the file first!
by (733 points)
0 votes
I had exactly the same problem, when trying to change to French UI on version 2.5.12. I have now updated to version 2.6.1 and it works as expected.

Note, however, that sometimes when I click on the language button, the menu that appears only shows Arabic and Chinese. When that happens, usually the other languages show up a bit later, sometimes even without clicking again.

Jeff
by (1.3k points)
0 votes
We are once again having this problem with the latest version, 2.6.10. In a Paratext class of 15, it happened for (at least) 2 students. For one, we tried a few more times, and it eventually worked. For the other, it continues to give the error, which is slightly different than the original error:

File "ptxprint.py", line 384, in <module>
'NoneType' object has no attribute 'prjid'

In our case, we are always trying to change the UI language from English to French.
by (1.3k points)
Well, after X times trying (where X is some arbitrarily large integer...), someone else tried again and it worked. And for the previous user with the problem, someone else tried several times, and when I tried, it worked. So the trick is having one person try it, and then having another person try it again?! Anyway, immediate problem is solved, but there is some sort of fragility in the code there that might merit a bit of attention.

Related questions

0 votes
2 answers
0 votes
1 answer
0 votes
4 answers
0 votes
1 answer
0 votes
2 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
2,633 questions
5,375 answers
5,046 comments
1,420 users