Opened 6 years ago

Closed 5 years ago

Last modified 3 years ago

#5019 closed defect (cant-reproduce)

make fails without pybabel

Reported by: ayleph Owned by:
Priority: major Milestone: 0.8.0
Component: infrastructure Keywords: make, babel
Cc: Christopher Allan Webber Parent Tickets:


Trying to compile a fresh install of latest master results in an error if pybabel isn't installed on the system.

(mediagoblin-0.8.0) ~/mediagoblin-0.8.0 $ make
./devtools/ line 40: pybabel: command not found
Makefile:118: recipe for target 'i18n' failed
make: *** [i18n] Error 127


Change History (7)

comment:1 Changed 6 years ago by ayleph

To get around this, I executed the following command from within my virtualenv.

(mediagoblin-0.8.0) ~/mediagoblin-0.8.0 $ pip install Babel

And in case it matters, I ran the fresh install as:

~ $ mkdir mediagoblin-0.8.0
~ $ cd mediagoblin-0.8.0/
~/mediagoblin-0.8.0 $ git clone .
~/mediagoblin-0.8.0 $ virtualenv2 --system-site-packages .
~/mediagoblin-0.8.0 $ source bin/activate
(mediagoblin-0.8.0) ~/mediagoblin-0.8.0 $ ./
(mediagoblin-0.8.0) ~/mediagoblin-0.8.0 $ ./configure --without-virtualenv
(mediagoblin-0.8.0) ~/mediagoblin-0.8.0 $ make

comment:2 Changed 6 years ago by ayleph

Cc: Christopher Allan Webber added

This is an interesting issue. lists as a requirement Babel>=1.3; however, make calls after i18n, which wants to use pybabel to build the translations. Can we change the order of operations in Makefile?

comment:3 Changed 5 years ago by Christopher Allan Webber

Good sleuthing, ayleph! Should be possible. I'll look at that now.

comment:4 Changed 5 years ago by Christopher Allan Webber

Hm, so ./configure && make should install ./bin/pybabel, though it won't if you ran --without-virtualenv, in which case it'll expect one to be on the $PATH. Did you use --without-virtualenv?

comment:5 Changed 5 years ago by Christopher Allan Webber

Okay my last comment was dumb, I didn't notice that you *did* say --without-virtualenv, but also had properly sourced your own virtualenv.

I'll give such a setup a try.

comment:6 Changed 5 years ago by Christopher Allan Webber

Resolution: worksforme
Status: newclosed

Now that I think about it, this isn't surprising behavior. --without-virtualenv means that the system isn't setting up a virtualenv or etc for you, it's up to *you* to provide the dependencies. pybabel is such a dependency.

Maybe we can do something to improve warnings if --without-virtualenv is run so that it more stringently checks for system packages in the ./configure step, though I'm not entirely sure how to go about that.

comment:7 Changed 3 years ago by Atlas

This is very useful thanking you and appreciate your works, As we know to free eshop codes is use to play nintendo games.

Note: See TracTickets for help on using tickets.