Page 1 of 1

Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Tue 16. May 2017, 11:28
by merl_em
I can't run a fresh installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe . Installation has been done on drive C:, however, Python is already installed on drive D: .
I had chosen the full installation, that is, including FIFE. There had been no error messages during installation.
However, if I double-click the desktop icon now, I get a Windows command window, telling me:

Starting Unknown Horizons
output will be written to logfile "unknownhorizons-DATETIME.log"
Drücken Sie eine beliebige Taste . . .
After pressing Enter, the window closes, and that's all.


The logfile contains the following (I only removed the path to the user directory in line 7):
Failed to find and/or load FIFE.

Unknown Horizons has crashed.

We are very sorry for this and want to fix the underlying error.
In order to do this, we need the information from the logfile:
...\My Games\unknown-horizons\log\unknown-horizons-2017-05-16_13-06-40.log
Please give it to us via IRC or our forum, for both see http://unknown-horizons.org .
:\\Programme\\Unknown-Horizons\\python\\lib\\lib-tk', 'C:\\Programme\\Unknown-Horizons\\python', 'C:\\Programme\\Unknown-Horizons\\python\\lib\\site-packages']
PATHSEP: ";" SEP: "\"
LD_LIBRARY_PATH: <undefined>
PATH: D:\Programme\Python34\;D:\Programme\Python34\Scripts;D:\Programme\NVIDIA Corporation\PhysX\Common;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;;C:\Programme\Unknown-Horizons\python\Lib\site-packages\fife
PYTHONPATH <undefined>
Python version: sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0)
Platform: Windows-XP-5.1.2600-SP3
Failed to use FIFE from <module 'fife' from 'C:\Programme\Unknown-Horizons\python\lib\site-packages\fife\__init__.py'>
No module named _fife
Traceback (most recent call last):
File "run_uh.py", line 380, in <module>
main()
File "run_uh.py", line 173, in main
init_environment(True)
File "run_uh.py", line 364, in init_environment
setup_fife()
File "run_uh.py", line 346, in setup_fife
exit_with_error('Failed to find and/or load FIFE', 'Failed to find and/or load FIFE.')
File "run_uh.py", line 60, in exit_with_error
window = Tkinter.Tk()
File "C:\Programme\Unknown-Horizons\python\lib\lib-tk\Tkinter.py", line 1820, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: Can't find a usable init.tcl in the following directories:
C:/Programme/Unknown-Horizons/python/lib/tcl8.5 C:/Programme/Unknown-Horizons/lib/tcl8.5 C:/Programme/lib/tcl8.5 C:/Programme/Unknown-Horizons/library C:/Programme/library C:/Programme/tcl8.5.15/library C:/tcl8.5.15/library



This probably means that Tcl wasn't installed properly.

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Tue 16. May 2017, 15:47
by LinuxDonald
I see that you have installed an own version of python.
We need the python (C:\Programme\Unknown-Horizons\python\pythonw.exe)
You could try to edito run_uh.bat an replace:

..\python\pythonw.exe with C:\Programme\Unknown-Horizons\python\pythonw.exe

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Tue 16. May 2017, 17:17
by merl_em
Thanks for the advice!
Unfortunately, after four replacements in run_uh.bat, nothing changed; the logfile is still the same except another timpe stamp.

EDIT:
I wonder... The logfile lists seven locations where it tries to find an init.tc:
C:/Programme/Unknown-Horizons/python/lib/tcl8.5
C:/Programme/Unknown-Horizons/lib/tcl8.5
C:/Programme/lib/tcl8.5
C:/Programme/Unknown-Horizons/library
C:/Programme/library
C:/Programme/tcl8.5.15/library
C:/tcl8.5.15/library

None of these folders exists actually.

C:/Programme/Unknown-Horizons/ exists after installation.
It has two subfolders: python and unknown-horizons.
C:/Programme/Unknown-Horizons/python has four subfolders: DLLs, include, Lib and libs.

A folder named tcl8.5 indeed exists: C:/Programme/Python27/tcl/tcl8.5
So, I decided to copy it manually at a location where UH searchs for it, namely I made a lib folder in C:/Programme/ and filled it with the content of C:/Programme/Python27/tcl (6 folders and 5 files).
At least I got another logfile now:
Failed to find and/or load FIFE.
ajor=2, minor=7, micro=13, releaselevel='final', serial=0)
Platform: Windows-XP-5.1.2600-SP3
SYS.PATH: ['C:\\Programme\\Unknown-Horizons\\unknown-horizons', 'C:\\Programme\\Unknown-Horizons\\python\\python27.zip', 'C:\\Programme\\Unknown-Horizons\\python\\DLLs', 'C:\\Programme\\Unknown-Horizons\\python\\lib', 'C:\\Programme\\Unknown-Horizons\\python\\lib\\plat-win', 'C:\\Programme\\Unknown-Horizons\\python\\lib\\lib-tk', 'C:\\Programme\\Unknown-Horizons\\python', 'C:\\Programme\\Unknown-Horizons\\python\\lib\\site-packages']
PATHSEP: ";" SEP: "\"
LD_LIBRARY_PATH: <undefined>
PATH: D:\Programme\Python34\;D:\Programme\Python34\Scripts;D:\Programme\NVIDIA Corporation\PhysX\Common;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;;C:\Programme\Unknown-Horizons\python\Lib\site-packages\fife
PYTHONPATH <undefined>
Python version: sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0)
Platform: Windows-XP-5.1.2600-SP3
Failed to use FIFE from <module 'fife' from 'C:\Programme\Unknown-Horizons\python\lib\site-packages\fife\__init__.pyc'>
No module named _fife
Again, the search is done on a non-exisiting path. \site-packages\fife is a subfolder of Lib, not lib.

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Wed 17. May 2017, 14:42
by LinuxDonald
Lib or lib is not an problem under Windows OS.
How many Python version do you have installed?

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Wed 17. May 2017, 17:19
by merl_em
Including or not including those that comes with other programs like UH?
I have now at least 2.7 on drive C, and 3.4 on drive D and drive F, with different external modules. But that will change from time to time, depending on the things I'm trying and their particular needs. Then there is one included in UH 2014.1 and one in UH 2017.2. I'm not absolutely sure whether there may be other programs that also are shipped with own python versions, but a fast search didn't reveal any.
If a quite old portable one on an external drive doesn't count, it's a total of five at the moment. However, as I said, that's only a 'snapshot'.

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Thu 18. May 2017, 13:35
by LinuxDonald
Try to run UH 2017.2 with Admin rights please.

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Fri 19. May 2017, 09:07
by merl_em
I do so always ;-) .

(By the way, UH 2014.1 is still running all the time, regardless of other python installations.)

Re: Installation of Unknown-Horizons-2017.2.147-Setup-VC14-x86.exe failed

Posted: Mon 22. May 2017, 04:37
by LinuxDonald
At the moment we dont now why it dont start. When i find something i will post it here.