apertium / apertium-spa-cat

Apertium translation pair for Spanish and Catalan
GNU General Public License v2.0
6 stars 4 forks source link

Makefile error in recursive-spa-cat branch #53

Closed jonorthwash closed 2 years ago

jonorthwash commented 2 years ago
python genvrdix.py cat .deps/spa-cat.dix >.deps/spa-cat.cat.dix
/bin/bash: line 1: python: command not found
make: *** [Makefile:865: .deps/spa-cat.cat.dix] Error 127

For recent distros of linux, you need to specify which version of python.

jonorthwash commented 2 years ago

What might be worse is that the script in question appears to require python2. Python2 hasn't been supported for 2½ years.

xavivars commented 2 years ago

That script was moved years ago to a shared place. So I guess the branch needs to be rebased on master

marcriera commented 2 years ago

Yes, the recursive-spa-cat branch was created in early 2020 and hasn't been updated since two years ago. The RTX-related commits don't modify the bidix, so it's just a matter of rebasing the branch.

marcriera commented 2 years ago

I've rebased the branch with master and it builds fine locally. @jonorthwash Could you please try if it works for you?

jonorthwash commented 2 years ago

Oof, I've gotten into really bad git states trying to pull this. Do you have any guidance on how I can get this branch? (I suppose I can always wipe it and make a fresh clone..)

marcriera commented 2 years ago

Rebasing rewrites history, so your local copy and GitHub have diverged. I'm sure there's a way to get your local copy in sync (especially if you don't have any pending local changes), but my git knowledge doesn't go that far. @xavivars?

xavivars commented 2 years ago

@jonorthwash , not sure if you still have this error, and in case you do, not sure if you also had local changes. But assuming you don't care about anything local, you can fix this with

git fetch
git reset --hard origin/recursive-spa-cat