img-extract.py

Web version of freeciv. Please mention the site you're using, if speaking things other than general freeciv-web codebase.
Post Reply
Orisson
Posts: 7
Joined: Sat Mar 03, 2018 12:46 pm

img-extract.py

Post 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?
Orisson
Posts: 7
Joined: Sat Mar 03, 2018 12:46 pm

Re: img-extract.py

Post 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
Post Reply