Demeter won't start in Windows 7
Hi everyone, My copy of Demeter on my Windows 7 machine stopped working at some point in the recent past, so I have re-installed it, but I still have the same problem - a command window and splash screen open briefly, before disappearing. In my Path variable I have bumped the perl addresses up above the MinGW one, as suggested in one of the common fixes, but this did not solve the problem. I had a good look through the mailing-list archive for similar problems to mine, but each seem to be different (the log file errors were different). I have commented out the appropriate lines in the batch files, but, predictably I guess, this only had the effect of removing the splash screen when the program attempts to start-up. I have also played around a little installing newer versions of Strawberry, but similarly to no avail. If time permits, would anyone mind helping me interpret my log file (attached)? I'm not really computer literate enough to understand what is written there! Grateful thanks in advance, William -- William Nash PhD Student, Experimental Petrology Earth Sciences Department Oxford University
Hi William, I don't know what went wrong but I had a problem showing similar symptoms on my Windows 8 machine. I did similar things as you: un-install and re-install Demeter, trying different versions, looking up in the mailing list, etc. but at the end all I had to do was to un-install, delete the demeter folder below, and re-install: C:\Users\<username>\AppData\Roaming\demeter This is the path where you find your dathena.log file. Not sure whether this would work for you though, but no harm in trying... Best wishes, Sin-Yuen Chang -----Original Message----- From: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] On Behalf Of willn Sent: 12 July 2015 11:44 To: ifeffit@millenia.cars.aps.anl.gov Subject: [Ifeffit] Demeter won't start in Windows 7 Hi everyone, My copy of Demeter on my Windows 7 machine stopped working at some point in the recent past, so I have re-installed it, but I still have the same problem - a command window and splash screen open briefly, before disappearing. In my Path variable I have bumped the perl addresses up above the MinGW one, as suggested in one of the common fixes, but this did not solve the problem. I had a good look through the mailing-list archive for similar problems to mine, but each seem to be different (the log file errors were different). I have commented out the appropriate lines in the batch files, but, predictably I guess, this only had the effect of removing the splash screen when the program attempts to start-up. I have also played around a little installing newer versions of Strawberry, but similarly to no avail. If time permits, would anyone mind helping me interpret my log file (attached)? I'm not really computer literate enough to understand what is written there! Grateful thanks in advance, William -- William Nash PhD Student, Experimental Petrology Earth Sciences Department Oxford University
Sin-Yuen, Thank you for getting in touch. I tried your suggestion, but I'm still encountering the same problem. As you said, worth a try. Thanks anyway, William On 12/07/2015 12:30, Sin Yuen Chang wrote:
Hi William,
I don't know what went wrong but I had a problem showing similar symptoms on my Windows 8 machine. I did similar things as you: un-install and re-install Demeter, trying different versions, looking up in the mailing list, etc. but at the end all I had to do was to un-install, delete the demeter folder below, and re-install:
C:\Users\<username>\AppData\Roaming\demeter
This is the path where you find your dathena.log file. Not sure whether this would work for you though, but no harm in trying...
Best wishes, Sin-Yuen Chang
-----Original Message----- From: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] On Behalf Of willn Sent: 12 July 2015 11:44 To: ifeffit@millenia.cars.aps.anl.gov Subject: [Ifeffit] Demeter won't start in Windows 7
Hi everyone,
My copy of Demeter on my Windows 7 machine stopped working at some point in the recent past, so I have re-installed it, but I still have the same problem - a command window and splash screen open briefly, before disappearing.
In my Path variable I have bumped the perl addresses up above the MinGW one, as suggested in one of the common fixes, but this did not solve the problem. I had a good look through the mailing-list archive for similar problems to mine, but each seem to be different (the log file errors were different). I have commented out the appropriate lines in the batch files, but, predictably I guess, this only had the effect of removing the splash screen when the program attempts to start-up. I have also played around a little installing newer versions of Strawberry, but similarly to no avail.
If time permits, would anyone mind helping me interpret my log file (attached)? I'm not really computer literate enough to understand what is written there!
Grateful thanks in advance, William
-- William Nash PhD Student, Experimental Petrology Earth Sciences Department Oxford University
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- William Nash PhD Student, Experimental Petrology Earth Sciences Department Oxford University
Hi William, As with the recent message about Demeter on Mac-with-Parallels, I suspect this is an issue with how the PATH is set. It looks to me like you don't have all the path locations set correctly, though it also appears that it is finding the DLL, just not recognizing it as a Win32 DLL That probably means some other DLL is interfering, but I'm not certain of that. I would suggest setting path explicitly to C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin; You could even try putting this at the top of dathena.bat (and dartemis.bat, etc): set Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem set Path=%PATH%;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin; Hope that helps -- and please let us know! --Matt
I'll add that something seems kind of broken on your computer: PATH: t Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\strawberry\c\bin\gnuplot\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\Lib\site-packages\vtk;C:\Python27\gnuplot\binary;C:\Python27\Lib\site-packages\osgeo;C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files (x86)\pythonxy\console;C:\Program Files (x86)\pythonxy\swig;C:\Program Files (x86)\pythonxy\gettext\bin;C:\Program Files (x86)\Skype\Phone\;C:\MinGW32-xy\bin Broken thing #1: The first item in the path is "t Shared\Windows Live" which is not a valid path. Broken thing #2: Demeter's installer puts three things in your path, all of which start with "C:\strawberry". None of them are in your path variable. I don't know how you got to this place and I don't know the best way to fix it, but it is certainly a situation that Demeter is not prepared for. Unless you explicitly fix something like how Matt suggested, there is a 0% chance that anything else you try will get Demeter working on your computer. I'd also like to point out that Demeter works just fine on Windows 7. I test every installer on Windows 7 machines. The problem here is that Demeter won't starting on *your* computer. B On 07/12/2015 12:47 PM, Matt Newville wrote:
Hi William,
As with the recent message about Demeter on Mac-with-Parallels, I suspect this is an issue with how the PATH is set. It looks to me like you don't have all the path locations set correctly, though it also appears that it is finding the DLL, just not recognizing it as a Win32 DLL That probably means some other DLL is interfering, but I'm not certain of that.
I would suggest setting path explicitly to
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin;
You could even try putting this at the top of dathena.bat (and dartemis.bat, etc):
set Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem set Path=%PATH%;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin;
Hope that helps -- and please let us know!
--Matt
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Hi Bruce,
On Sun, Jul 12, 2015 at 12:33 PM, Bruce Ravel
I'll add that something seems kind of broken on your computer:
PATH: t Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\strawberry\c\bin\gnuplot\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\Lib\site-packages\vtk;C:\Python27\gnuplot\binary;C:\Python27\Lib\site-packages\osgeo;C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files (x86)\pythonxy\console;C:\Program Files (x86)\pythonxy\swig;C:\Program Files (x86)\pythonxy\gettext\bin;C:\Program Files (x86)\Skype\Phone\;C:\MinGW32-xy\bin
Broken thing #1: The first item in the path is "t Shared\Windows Live" which is not a valid path.
Broken thing #2: Demeter's installer puts three things in your path, all of which start with "C:\strawberry". None of them are in your path variable.
I don't know how you got to this place and I don't know the best way to fix it, but it is certainly a situation that Demeter is not prepared for. Unless you explicitly fix something like how Matt suggested, there is a 0% chance that anything else you try will get Demeter working on your computer.
I'd also like to point out that Demeter works just fine on Windows 7. I test every installer on Windows 7 machines. The problem here is that Demeter won't starting on *your* computer.
Well, in fairness to William, he's not alone in having similar problems running Athena on Windows. It might be worthwhile having the batch files set PATH explicitly, rather than relying on a correctly managed PATH variable. Windows just does not expect (nor make it easy) for users to set the PATH -- just finding where to set this is a deep dive into the Control Panel, and the interface stinks. I'm definitely no expert in Windows batch files, but I believe magic variables %~dp0 and %~dpnx0 apparently point to the batch file being executed and its directory. That might be useful to set the PATH based on where ever the batch file is located. I don't quite understand where or how the batch files are created from the demeter source tree, and am away from a Windows computer myself to test this, but it would probably be pretty easy to make a batch file solution work. Another alternative might be to make all batch files just run a "wrapper" perl program that sets the environment variables and runs the right program. That could be more sophisticated, perhaps automatically checking for updates, sort of like the older ifeffit "runner.exe" did. --Matt
Matt/Bruce, The workaround of adding... "set Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem set Path=%PATH%;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin;" ...to the top of my dathena.bat file worked, and the software is now up and running once more. Thank you so much! This explains a lot! Even though I was editing the path as suggested, every time I ran Athena the batchfile was setting it back to the crippled one shown in the log file I sent you. I didn't realize that the batch files did this. Presumably this dodgy path was an artifact from one of my earlier attempts at installing, before I had made the appropriate changes. Thanks again for helping me so fast - I was barking up the wrong tree, convinced that the problem was a compatibility issue with Perl. Best wishes, and thanks again, William On 12/07/2015 17:47, Matt Newville wrote:
Hi William,
As with the recent message about Demeter on Mac-with-Parallels, I suspect this is an issue with how the PATH is set. It looks to me like you don't have all the path locations set correctly, though it also appears that it is finding the DLL, just not recognizing it as a Win32 DLL That probably means some other DLL is interfering, but I'm not certain of that.
I would suggest setting path explicitly to
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin;
You could even try putting this at the top of dathena.bat (and dartemis.bat, etc):
set Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem set Path=%PATH%;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;C:\strawberry\c\bin\gnuplot\bin;
Hope that helps -- and please let us know!
--Matt
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- William Nash PhD Student, Experimental Petrology Earth Sciences Department Oxford University
participants (4)
-
Bruce Ravel
-
Matt Newville
-
Sin Yuen Chang
-
willn