0 votes
18 vues

I'm running Ubuntu 25.04, and I installed ptxprint like this:

sudo apt install python3-ptxprint

I experience this error when I attempt to launch ptxprint by running ptxprint:

/usr/lib/python3/dist-packages/ptxprint/pdfrw/objects/pdfstring.py:120: SyntaxWarning: invalid escape sequence '\('
  the latter case should be encoded "(\(Hello)"
/usr/lib/python3/dist-packages/ptxprint/pdfrw/objects/pdfstring.py:375: SyntaxWarning: invalid escape sequence '\['
  1. \[nrtbf\()]: simple escapes
Traceback (most recent call last):
  File "/usr/bin/ptxprint", line 20, in <module>
    from ptxprint.utils import saferelpath
  File "/usr/lib/python3/dist-packages/ptxprint/utils.py", line 585, in <module>
    class Path(pathlib.Path):
    ...<34 lines>...
                return self.as_posix()
  File "/usr/lib/python3/dist-packages/ptxprint/utils.py", line 587, in Path
    _flavour = pathlib._windows_flavour if os.name == "nt" else pathlib._posix_flavour
                                                                ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pathlib' has no attribute '_posix_flavour'

Ubuntu 25.04 ships with Python 3.13. pathlib in this version of Python does not have the _posix_flavour attribute.

PTXprint par (495 points) | 18 vues

1 Réponse

0 votes
Meilleure réponse

You're using an old version of ptxprint. Ubuntu's repositories do not include PTXprint. You must have installed the .deb from outside the Ubuntu repositories.

To install the latest version of PTXPrint on Ubuntu, run these commands:

sudo add-apt-repository ppa:silnrsi/ptxprint

sudo apt install python3-ptxprint

This will install PTXPrint from this PPA on Launchpad. This is the official PPA for PTXprint. You can verify this by visiting this download page on sil.org , it references this PPA.

par (495 points)
sélectionné par

Questions connexes

0 votes
1 réponse 27 vues
Bonjour ! Sous Ubuntu 24.04.2 LTS, j'ai PTXprint, version d'hier (python3-ptxprint/noble,noble,now 2.8.20-0~20250709~ubuntu24.04.1 all [installed ... .. ===========================
Marjan Šavli 104 posée juil. 10, 2025
0 votes
3 réponses 91 vues
We have just installed 2.5.12 and get an error when changing the language. My team member can't change ... module> AttributeError: 'GtkViewModel' object has no attribute 'configId'
anon703820 222 posée sept. 13, 2024
0 votes
2 réponses 673 vues
I'm using PTXprint to export my Paratext project text to PDF files. If I choose Multiple Books under the Basic , Project ... be tedious. Is there a way to do it in one step?
bit 495 posée juil. 4, 2022
0 votes
1 réponse 112 vues
I have a lectionary Bible module, which has its own \s# headings. There is no "\inc s" in the module, because ... . But I'm wondering if I'm missing some setting somewhere?
beve 128 posée avr. 10, 2025
0 votes
2 réponses 213 vues
Here is the error report I get. PTXprint Version 1.9 Please send to: [Email Removed] PTXprint [1.9] - Error! Failed to ... post a bug report References to check: 1.375 1.375 6.63
ace541611 123 posée août 23, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Dear friends, since God so loved us, we also ought to love one another.
1 John 4:11
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs