Good on you for persevering - a very worthwhile exercise.<div><br></div><div>I had wondered if it involved something Pythonish that had been installed and now was not there (thinking path and dlls), but didn't realise there would be environment variable(s) automatically added to the User, with out the User ticking something in the Python application install.</div>
<div><br></div><div>Does TeXworks need to even use that variable if it supplies everything - or does any kind of Python always look for that kind of environment variable?</div><div><br></div><div>Paul</div><div><br></div>
<div><br><br><div class="gmail_quote">On 29 October 2011 14:01, K. Frank <span dir="ltr"><<a href="mailto:kfrank29.c@gmail.com">kfrank29.c@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello All!<br>
<br>
Problem solved. A bogus PYTHONHOME environment variable was<br>
defined.<br>
<br>
I had installed an application that used python on a removable drive.<br>
It was one of those download-and-run a small web-installer application,<br>
so I never really knew what the install process entailed. It defined<br>
PYTHONHOME pointing to the generally absent removable drive, a<br>
detail I hadn't noticed.<br>
<br>
Anyway, I removed (renamed, actually) the PYTHONHOME variable,<br>
and TeXworks launches properly now.<br>
<br>
I suppose that the python-enabled TeXworks uses the following logic:<br>
Check if PYTHONHOME is defined. If not, run correctly, but without<br>
python. If it is defined properly, run with python enabled. If it is defined<br>
improperly, exit silently.<br>
<br>
Further minor comments appear below:<br>
<div class="im"><br>
On Fri, Oct 14, 2011 at 7:40 PM, K. Frank <<a href="mailto:kfrank29.c@gmail.com">kfrank29.c@gmail.com</a>> wrote:<br>
> Hello Stefan!<br>
><br>
> On Fri, Oct 14, 2011 at 5:36 AM, Stefan Löffler <<a href="mailto:st.loeffler@gmail.com">st.loeffler@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> Am 2011-10-04 19:05, schrieb K. Frank:<br>
>>> Again, thanks to you and everyone else who helped out. I'm happy<br>
>>> to offer myself up as a sacrificial lamb to keep trying to diagnose this<br>
>>> problem, if anyone would find that helpful.<br>
>><br>
>> Thanks for that (very generous!) offer. I definitely want to investigate<br>
>> this further, however I have little time to do so right now, unfortunately.<br>
>><br>
>> Could you try running the latest version of Tw under a new user? Does it<br>
>> work there?<br>
><br>
> Yes, TeXworks launches for a new user.<br>
<br>
</div>The bogus PYTHONHOME environment variable was a user, rather than<br>
a system variable, explaining why the problem didn't occur for the new<br>
<div class="im">user.<br>
<br>
> Just to recap my situation:<br>
><br>
> I have TeX Live installed, and I have two versions of TeXworks "installed" (in<br>
> addition to the TeXworks that came bundled with TeX Live). By "installed"<br>
> I mean that I unzipped the TeXworks download into a directory I set up for it.<br>
><br>
> My two versions are r932 (recent, if not the latest, and the one I've been<br>
> having trouble with) and r466 (one that was suggested earlier in this thread,<br>
> and is perhaps pre-python, and that seems to be working fine for me).<br>
<br>
</div>All my versions of TeXworks now launch and seem to run correctly:<br>
the free-standing version (r932), the version that came bundled with<br>
TeX Live (r858), and the pre-python version (r466).<br>
<div class="im"><br>
> I launch TeXworks by clicking on TeXworks.exe in windows explorer.<br>
><br>
> First I checked my current status. r932 doesn't launch (it exits almost<br>
> immediately). r466 launches and appears to run correctly.<br>
><br>
> I then created a new user. Logged in as the new user, I can launch both<br>
> r932 and r466, and they appear to run (but I didn't try editing or typesetting<br>
> any files with them).<br>
><br>
> I then logged back in as my original user and verified that r932 still doesn't<br>
> launch, while r466 does.<br>
</div>> ...<br>
<div class="im">> So, presumably this means that the user configuration for TeXworks is<br>
> corrupted somehow. But in one of my earlier tests I had nuked the user<br>
> directory for TeXworks and that didn't clear things up.<br>
><br>
> Now, the new user does have a new-user path. But I had also tried<br>
> launching TeXworks from a null-path command prompt, so presumably<br>
> that test ruled out any path issues.<br>
<br>
</div>But, of course, I hadn't tried launching TeXworks from a null-PYTHONHOME<br>
command prompt...<br>
<div class="im"><br>
><br>
>> Cheers,<br>
>> Stefan<br>
><br>
> Thanks again for your help.<br>
><br>
> K. Frank<br>
<br>
</div>Thanks to all.<br>
<font color="#888888"><br>
<br>
K. Frank<br>
<br>
</font></blockquote></div><br></div>