can't view html document: process no longer exists (pid=15308)

14 views
Skip to first unread message

Bruce Yoshiwara

unread,
Oct 8, 2025, 3:41:48 PMOct 8
to PreTeXt support
After another long break, I've tried to regenerate a textbook (Kathy's MFG) that contains  PreTexT authored WeBWorK exercises. 

Using the CLI the "build" seems to work (Success! Run `pretext view` to see the results), but when I try to view the book, I get 

INFO    : Now preparing local server to preview your project directory `C:\Users\byosh\mfg`.
INFO    :   (Reminder: use `pretext deploy` to deploy your built project to a public
INFO    :   GitHub Pages site that can be shared with readers who cannot access your
INFO    :   personal computer.)
INFO    :
INFO    : starting server ...
INFO    : setting up ...
INFO    : values set...
INFO    : adding server entry
INFO    : There are 10 or more servers on file. Cleaning up ...
INFO    : Terminating 28072
INFO    : Terminate failed for 28072.
ERROR   : process PID not found (pid=28072)
Traceback (most recent call last):
  File "C:\Users\byosh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pretext\server.py", line 68, in terminate
    psutil.Process(self.pid).terminate()
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\byosh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\psutil\__init__.py", line 315, in __init__
    self._init(pid)
  File "C:\Users\byosh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\psutil\__init__.py", line 361, in _init
    raise NoSuchProcess(pid, msg=msg) from None
psutil.NoSuchProcess: process PID not found (pid=28072)
ERROR   : process no longer exists (pid=15308)
INFO    :
----------------------------------------------------
INFO    : While running pretext, the following errors occurred:

INFO    : (see log messages above or in the 'logs' folder for more information)
INFO    : ----------------------------------------------------

(I'm running Windows on a Lenovo.) Any suggestions on what I should do differently?

Bruce

Oscar Levin

unread,
Oct 8, 2025, 7:10:54 PMOct 8
to pretext...@googlegroups.com
What version of the CLI are you using?

One way you should be able to fix this is to remove the ~/.ptx folder (the folder named .ptx in your home directory).  You could also try running `pretext view -s` and then `pretext view` again.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/5bdda1c2-de83-4077-9df3-ad09b55263f2n%40googlegroups.com.

Bruce Yoshiwara

unread,
Oct 9, 2025, 5:25:09 PMOct 9
to PreTeXt support
Thanks, deleting the ~/.ptx folder did the trick.
Reply all
Reply to author
Forward
0 new messages