-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiKTeX.Session could not be initialized error in a normal miktex #41
Comments
Unfortunately, I haven't been able to reproduce the issue yet. Could you check if your Windows registry contains the COM class "MiKTeX.Session"? There should be an entry Classes\MiKTeX.Session\CLSID with the value If you installed MiKTeX without admin access, I suppose the installer wasn't able to register the COM class. Since the bundled utilities that come with MiKTeX don't rely on the the COM interface, this usually doesn't matter. As a third-party application, dvisvgm can interact with MiKTeX only via this interface, though. |
I can't find a MiKTeX.Session entry in the registry. Is this only a problem of a missing key (which I could add) or does this means that some interface component is missing? In the first case in which registry branch should the key go? (I did found Classes in HCU/Software and HLM/Software.) |
I don't know much about the details how the MiKTeX installer works and what components are skipped if it gets restricted permissions only. Maybe Christian Schenk can shed some light on this. There are many entries related to the MiKTeX COM interface spread over my Windows registry (below HKCR and HKLM/Software) . So I guess, it's not enough to add a single value to get a properly working environment. |
OK. I will ask on the miktex site. It is not very pressing: I do have a Texlive and can use its dvisvgm. I actually only wanted to test the newest dvisvgm because this question: http://tex.stackexchange.com/questions/194126/did-one-manage-to-get-the-new-dvisvgm-driver-from-pgf-3-0-to-work (where the edits regarding the viewbox sounds as if the problem could be also be seen with older dvisvgm) |
Thanks for your feedback and the context. I had a look into the example file posted at TeX.SX. The SVG file generated with the latest PGF package looks fine. However, the global bounding box doesn't enclose the graphics portion inserted by the PGF driver. Thus, there's probably a dvisvgm:bbox \special missing in the driver's code. |
After a year I made another effort to get it working and found with the help of Christian Schenk a way to register the COM-interface in a single user installation (https://sourceforge.net/p/miktex/bugs/2376/):
|
Thank you for your further investigations and the feedback about the solution that fixes the issue. I'll add these information to the FAQ page of the dvisvgm website. |
Note: these commands may need to be adapted depending on the MiKTeX version.
|
Three years later, there is again some adaption needed.
I just opened #282 where I requested to change the outdated FAQ topic on this issue. |
I downloaded today dvisvgm-1.8-win32.zip and unpacked it in a folder. When I tried
dvisvgm --help I get the error message "MiKTeX.Session could not be initialized".
I don't have a portable miktex.
It is a 32-bit miktex, installed as a single user installation in a normal user account (without admin rights) in D:\miktex2.9. on a 64bit windows 7.
The text was updated successfully, but these errors were encountered: