Page 1 of 1

img-extract.py

Posted: Fri May 11, 2018 11:17 pm
by Orisson
Hello,

while installing :
Parsing ../../freeciv/freeciv/data/amplio2/terrain1.spec
Traceback (most recent call last):
File "img-extract.py", line 192, in <module>
config = config_read(file);
File "img-extract.py", line 147, in config_read
with open (file, "r") as myfile:
FileNotFoundError: [Errno 2] No such file or directory: '../../freeciv/freeciv/data/amplio2/terrain1.spec'
Freeciv-img-extract failed!
Related with my last post, i think the reason of my problems is that i have a problem with git installation: reading SH files, i understand that repo is downloaded in freeciv/freeciv path, but first time i executed, i had to run
git init
and later rerun the install, so the repo were downloaded in freeciv/freeciv/freeciv.

To avoid early errors, i modified the scripts so they worked with the <<freeciv>> additional, but now it appears the error in img-extract.py.

what i am doing wrong with Git?

Re: img-extract.py

Posted: Sat May 12, 2018 4:47 pm
by Orisson
My solution: edit dl_freeciv.sh, adding:
git init
and updating
git read-tree --prefix=freeciv/ --index-output=.freeciv_index $1
instead of
git read-tree --prefix=freeciv/freeciv/ --index-output=.freeciv_index $1