Closed JonDoyle closed 4 years ago
Duplicate of #138
So the obvious workaround is: make sure that package iftex
is installed.
The problem does not seem to be that the iftex package is not installed. It was installed (and had been for years) at the time the error occurred, and as my error report stated, when I checked the iftex directory, iftex.sty was not in it (though some others were there).
Just to be sure, I ran the package installer via the MiKTeX console only to discover it listed iftex as uninstalled. I (re)installed it, observed that it put the missing files back in the iftex directory. I then reran pdflatex, but the error reoccurred, invoking the on-the-fly package installer. But when I check the iftex directory after this, only two of the files placed there by the installer are still there, and iftex.sty is one of the missing ones.
So something is going wrong somewhere. I am only doing ordinary things, with nothing changing in my installation (regularly updated). Unless there is some Windows 10 change that might be causing this.
Thank you for any help you can offer.
Jon Doyle
Contents of iftex directory after error: ifetex.sty, ifluatex.sty
Error report during pdflatex (in an Emacs shell)
starting package maintenance... installation directory: "C:\Program Files\MiKTeX2.9" package repository: https://mirror.koddos.net/CTAN/systems/win32/miktex/tm/packages/ package repository digest: 760a08f296ffde4cc78f15181f77d735 going to download 240321 bytes going to install 10 file(s) (1 package(s)) downloading https://mirror.koddos.net/CTAN/systems/win32/miktex/tm/packages/iftex.tar.lzma. .. 0.24 MB, 2.12 Mbit/s extracting files from iftex.tar.lzma...
! LaTeX Error: File `iftex.sty' not found.
Type X to quit or
Corresponding contents of C:\Users\Doyle\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
2019-11-11 07:44:36,914-0500 INFO pdflatex - starting with command line: pdflatex interaction 2019-11-11 07:44:36,914-0500 INFO pdflatex - allowing known shell commands 2019-11-11 07:44:36,914-0500 INFO pdflatex - enabling input (output) from (to) processes 2019-11-11 07:44:37,130-0500 INFO pdflatex - installing package iftex triggered by tex/latex/iftex\iftex.sty 2019-11-11 07:44:40,161-0500 INFO pdflatex - mpm: starting package maintenance... 2019-11-11 07:44:40,161-0500 INFO pdflatex - mpm: installation directory: "C:\Program Files\MiKTeX2.9" 2019-11-11 07:44:40,161-0500 INFO pdflatex - mpm: package repository: https://mirror.koddos.net/CTAN/systems/win32/miktex/tm/packages/ 2019-11-11 07:44:40,339-0500 INFO pdflatex - mpm: package repository digest: 760a08f296ffde4cc78f15181f77d735 2019-11-11 07:44:41,188-0500 INFO pdflatex - mpm: going to download 240321 bytes 2019-11-11 07:44:41,188-0500 INFO pdflatex - mpm: going to install 10 file(s) (1 package(s)) 2019-11-11 07:44:41,822-0500 INFO pdflatex - mpm: downloading https://mirror.koddos.net/CTAN/systems/win32/miktex/tm/packages/iftex.tar.lzma. .. 2019-11-11 07:44:42,721-0500 INFO pdflatex - mpm: 0.24 MB, 2.12 Mbit/s 2019-11-11 07:44:42,759-0500 INFO pdflatex - mpm: extracting files from iftex.tar.lzma... 2019-11-11 07:44:42,806-0500 FATAL pdflatex - Windows API error 32: The process cannot access the file because it is being used by another process.
2019-11-11 07:44:42,806-0500 FATAL pdflatex - Info: ="path="C:\Program Files\MiKTeX2.9\tex\generic\iftex\ifluatex.sty"" 2019-11-11 07:44:42,806-0500 FATAL pdflatex - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp 2019-11-11 07:44:42,806-0500 FATAL pdflatex - Line: 321 2019-11-11 07:44:53,922-0500 INFO pdflatex - finishing with exit code 0
As in my original report, this happens even after a reboot with nothing but Emacs running, so I have no idea what other process might be causing the Windows API error.
On Mon, Nov 4, 2019 at 9:57 AM Christian Schenk notifications@github.com wrote:
So the obvious workaround is: make sure that package iftex is installed.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MiKTeX/miktex-packaging/issues/140?email_source=notifications&email_token=AIRNVWPLDVX6URWV53HM2ULQSAZ37A5CNFSM4JIT3DL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7Q5GI#issuecomment-549392025, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRNVWMQB66BRJJ62QXSKXLQSAZ37ANCNFSM4JIT3DLQ .
@JonDoyle Sometimes a simple update does not refresh the package database that is used for on-the-fly installation. This is especially true on an Admin-&-User system.
Just to be sure that no command is hogging the files you may want to reboot your machine before you go through with the following. Don't start any other TeX-related software before or while going through these steps - only use the MikTeX Console.
Update MikTeX via the MikTeX Console in Admin mode and in User mode. Then open the Console in Admin mode and run Tasks > Update package database, repeat this step in User mode as well.
Cross your fingers and hope that this works. If it does not, remove iftex
and all other older if...tex
packages in both Admin and User mode (if installed) and re-install only iftex
in either Admin or User mode (but not in both).
Thanks very much, I'll try this.
On Tue, Nov 12, 2019 at 1:42 AM moewew notifications@github.com wrote:
@JonDoyle https://github.com/JonDoyle Sometimes a simple update does not refresh the package database that is used for on-the-fly installation. This is especially true on an Admin-&-User system.
Just to be sure update MikTeX via the MikTeX Console in Admin mode and in User mode. Then open the Console in Admin mode and run Tasks > Update package database, repeat this step in User mode as well.
Cross your fingers and hope that this works. If it does not, remove iftex and all other older if...tex packages in both Admin and User mode (if installed) and re-install only iftex in either Admin or User mode (but not in both).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MiKTeX/miktex-packaging/issues/140?email_source=notifications&email_token=AIRNVWP47OCY3EJDZR2JEWDQTJF6PA5CNFSM4JIT3DL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZGUAY#issuecomment-552757763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRNVWKHOX7QCC7PGDZUT3LQTJF6PANCNFSM4JIT3DLQ .
Yes, it worked! Thank you very much again for the help.
Jon Doyle
On Tue, Nov 12, 2019 at 1:42 AM moewew notifications@github.com wrote:
@JonDoyle https://github.com/JonDoyle Sometimes a simple update does not refresh the package database that is used for on-the-fly installation. This is especially true on an Admin-&-User system.
Just to be sure update MikTeX via the MikTeX Console in Admin mode and in User mode. Then open the Console in Admin mode and run Tasks > Update package database, repeat this step in User mode as well.
Cross your fingers and hope that this works. If it does not, remove iftex and all other older if...tex packages in both Admin and User mode (if installed) and re-install only iftex in either Admin or User mode (but not in both).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MiKTeX/miktex-packaging/issues/140?email_source=notifications&email_token=AIRNVWP47OCY3EJDZR2JEWDQTJF6PA5CNFSM4JIT3DL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZGUAY#issuecomment-552757763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRNVWKHOX7QCC7PGDZUT3LQTJF6PANCNFSM4JIT3DLQ .
Hi @JonDoyle, Could you please outline the steps you performed that made it work?
It has been over a year since I had this trouble, so my memory might be slightly off. But as best I recall following the steps recommended by moewew as follows worked.
I run an Admin+User installation, and sometimes for that one apparently needs to refresh the package database for both the Admin and the user accounts.
Hope it works for you.
Jon Doyle
Moewew's suggestion:
@JonDoyle https://github.com/JonDoyle Sometimes a simple update does not refresh the package database that is used for on-the-fly installation. This is especially true on an Admin-&-User system.
Just to be sure update MikTeX via the MikTeX Console in Admin mode and in User mode. Then open the Console in Admin mode and run Tasks > Update package database, repeat this step in User mode as well.
Cross your fingers and hope that this works. If it does not, remove iftex and all other older if...tex packages in both Admin and User mode (if installed) and re-install only iftex in either Admin or User mode (but not in both).
On Mon, Feb 8, 2021 at 6:30 PM fahadijaz notifications@github.com wrote:
Hi @JonDoyle https://github.com/JonDoyle, Could you please outline the steps you performed that made it work?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MiKTeX/miktex-packaging/issues/140#issuecomment-775533376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRNVWK74IAVES4NJ4LCOIDS6BXYLANCNFSM4JIT3DLQ .
After updating my packages, it appears that the file iftex.sty loaded by ifluatex.sty has disappeared.
In my installation files, iftex.sty does not appear under tex/generic/iftex, nor under tex/latex/iftex.
Every attempt to recompile my file, in which none of the packaging information has changed, instigates an attempt to download the package. Across numerous attempts, the result is the same, no matter what mirror is used. The MiKTeX log file refers to some other program having use of the file, but this happens even when compilation takes place after rebooting my machine and with no prior invocations.
My MWE, trial.tex attached, does nothing but load the package.
trial.txt trial-initexmf.txt trial-logwindow.txt trial-report.txt