img-extract.py

Web version of freeciv at play.freeciv.org
Orisson
Posts: 5
Joined: Sat Mar 03, 2018 12:46 pm

img-extract.py

Postby Orisson » Fri May 11, 2018 11:17 pm

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?

Orisson
Posts: 5
Joined: Sat Mar 03, 2018 12:46 pm

Re: img-extract.py

Postby Orisson » Sat May 12, 2018 4:47 pm

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