0 वोट
39 व्यूज़

नमस्ते!
Ubuntu 24.04.2 LTS पर, मेरे पास PTXprint है, कल की संस्करण (python3-ptxprint/noble,noble,now 2.8.20-0~20250709~ubuntu24.04.1 all [installed]) और यह शुरू होने से इनकार कर रहा है। एक हफ्ते पहले यह समस्या शुरू हुई। मेरे सिस्टम पर usfmtc फ़ाइल नहीं है।

pc@pc:~/Dokumenti/GitHub/SloKJV/PTXprint$ ptxprint
Traceback (most recent call last):
  File "/usr/bin/ptxprint", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/dist-packages/ptxprint/main.py", line 145, in main
    from ptxprint.gtkview import GtkViewModel, getPTDir, reset_gtk_direction
  File "/usr/lib/python3/dist-packages/ptxprint/gtkview.py", line 29, in <module>
    from ptxprint.view import ViewModel, Path, VersionStr, GitVersionStr
  File "/usr/lib/python3/dist-packages/ptxprint/view.py", line 3, in <module>
    from ptxprint.texmodel import TexModel, Borders, _periphids
  File "/usr/lib/python3/dist-packages/ptxprint/texmodel.py", line 7, in <module>
    from ptxprint.usxutils import Usfm, Sheets
  File "/usr/lib/python3/dist-packages/ptxprint/usxutils.py", line 2, in <module>
    import usfmtc
ModuleNotFoundError: No module named 'usfmtc'

pip से इंस्टॉल करने से कोई मदद नहीं होती (Python 3.12.3)

pc@pc:~/Dokumenti/GitHub/SloKJV/PTXprint$ python3 -m pip install usfmtc
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.


    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.


    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.


    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

मैं इसे GitHub - sillsdev/ptx2pdf: XeTeX based macro package for typesetting USFM formatted (Paratext output) scripture files
https://github.com/sillsdev/ptx2pdf/tree/master पर नहीं ढूंढ पा रहा हूँ

लगता है कि /usr/lib/python3/dist-packages/ptxprint/usxutils.py इसका उपयोग कर रहा है

==========usxutils.py=======
import re, regex, logging, os, time
import usfmtc
from usfmtc.reference import Ref, RefList
from usfmtc.usfmparser import Grammar
from ptxprint.utils import universalopen, runChanges
from usfmtc.xmlutils import ParentElement, hastext, isempty
from usfmtc.usxmodel import iterusx, addesids
from ptxprint.changes import readChanges
from ptxprint.ptsettings import PTEnvironment
from copy import deepcopy
...
===========================

English से मशीन-अनुवादित
PTXprint में द्वारा (104 अंक)
संपादित द्वारा | 39 व्यूज़

1 उत्तर

0 वोट
हमें इसमें बेहतर करना चाहिए, शायद usfmtc को पैकेज करके। इस बीच, कमांड लाइन विकल्प का उपयोग करके या /usr/lib/python3.12/EXTERNALLY-MANAGED (या इसी तरह की किसी फ़ाइल) का नाम बदलकर इस लॉक को तोड़ना सुरक्षित है। इससे पैकेज की इंस्टॉलेशन की अनुमति मिलेगी।
English से मशीन-अनुवादित
द्वारा (656 अंक)

अब यह काम कर रहा है। धन्यवाद।

root@pc:/usr/lib/python3.12# oot@pc:/usr/lib/python3.12# mv EXTERNALLY-MANAGED EXTERNALLY-MANAGED_RENAMED
root@pc:/usr/lib/python3.12# python3 -m pip install usfmtc
Collecting usfmtc
  Downloading usfmtc-0.3.12-py3-none-any.whl.metadata (1.2 kB)
Collecting rply (from usfmtc)
  Downloading rply-0.7.8-py2.py3-none-any.whl.metadata (4.2 kB)
Requirement already satisfied: regex in /usr/lib/python3/dist-packages (from usfmtc) (2022.10.31)
Requirement already satisfied: appdirs in /usr/lib/python3/dist-packages (from rply->usfmtc) (1.4.4)
Downloading usfmtc-0.3.12-py3-none-any.whl (83 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.7/83.7 kB 1.2 MB/s eta 0:00:00
Downloading rply-0.7.8-py2.py3-none-any.whl (16 kB)
Installing collected packages: rply, usfmtc
Successfully installed rply-0.7.8 usfmtc-0.3.12
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@pc:/usr/lib/python3.12# root@pc:/usr/lib/python3.12# mv EXTERNALLY-MANAGED_RENAMED EXTERNALLY-MANAGED
English से मशीन-अनुवादित

संबंधित प्रश्न

0 वोट
1 उत्तर 21 व्यूज़
मैं Ubuntu 25.04 चला रहा हूँ, और मैंने ptxprint इस प्रकार इंस्टॉल किया: sudo apt install python3-ptxprint जब ... में pathlib में _posix_flavour विशेषता (attribute) नहीं होती है।
bit 495 पूछा गया अक्टूबर 8, 2025
PTXprint में
0 वोट
1 उत्तर 114 व्यूज़
मेरे पास एक लेक्शनरी बाइबल मॉड्यूल है, जिसमें अपने \s# शीर्षक हैं। मॉड्यूल में "\inc s" नहीं है, क्योंकि मैं चाहता/चाहती ... है कि क्या मैं कहीं कोई सेटिंग मिस कर रहा/रही हूँ?
beve 128 पूछा गया अप्रैल 10, 2025
0 वोट
2 उत्तर 70 व्यूज़
एक लेक्शनरी बाइबल मॉड्यूल में, हमारे पास पवित्र ग्रंथ संदर्भों के साथ शीर्षक हैं। उदाहरण के लिए: \s1 $(JER 33:14-18) ... आउटपुट वही है। मैं संस्करण 2.7.29 का उपयोग कर रहा हूँ।
beve 128 पूछा गया अप्रैल 16, 2025
0 वोट
1 उत्तर 126 व्यूज़
मेरे पास एक लेक्शनरी बाइबल मॉड्यूल है, और PTXPrint में, कुछ \ref टेक्स्ट गायब हैं, और कुछ \ref लाइन द्वारा निर्दिष्ट श्लोकों ... मैं छूट रहा हूँ, पैराग्राफ या कुछ और के बारे में?
beve 128 पूछा गया अप्रैल 10, 2025
0 वोट
1 उत्तर 59 व्यूज़
हम एक बाइबल मॉड्यूल पर काम कर रहे हैं और PDF में फुटनोट दिखने के लिए v 2.5.6 में अपग्रेड किया। अब फुटनोट आ ... वही समस्या है - सेक्शन हेडिंग नहीं दिखतीं, हालाँकि फुटनोट दिखते हैं।)
anon399461 123 पूछा गया नवंबर 20, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,046 प्रश्न
6,006 उत्तर
5,671 टिप्पणियाँ
2,026 उपयोगकर्ता