Opened 9 years ago

Closed 9 years ago

#5078 closed defect (fixed)

Debian Jessie: ImportError: No module named babel.messages.frontend

Reported by: Jim Campbell Owned by:
Priority: blocker Milestone: 0.8.0
Component: programming Keywords: Babel
Cc: Parent Tickets:

Description

Encountered an issue with pybabel when trying to do the ./bootstrap.sh step. python-babel is installed in the proper directory (not necessarily as
part of the site packages

mediagoblin@jessie:/srv/mediagoblin.chicagolug.org/mediagoblin$ ./bin/pip install Babel
Requirement already satisfied (use --upgrade to upgrade): Babel in ./lib/python2.7/site-packages/Babel-1.3-py2.7.egg

Here's the error output

mediagoblin@jessie:/srv/mediagoblin.chicagolug.org/mediagoblin$ ./bootstrap.sh && ./configure && make
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
checking for python2.7... python2.7
checking for virtualenv... virtualenv
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mediagoblin/_version.py
./devtools/update_extlib.sh
./devtools/compile_translations.sh
Traceback (most recent call last):

File "./bin/pybabel", line 9, in <module>

load_entry_point('mediagoblin==0.8.0.dev', 'console_scripts', 'pybabel')()

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point

return ep.load()

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load

__name__)

ImportError: No module named babel.messages.frontend
Makefile:118: recipe for target 'i18n' failed
make: * [i18n] Error 1

Change History (2)

comment:1 by Christopher Allan Webber, 9 years ago

I see... there was a very, very strange line in setup.py where "pybabel" was one of the console scripts entry points. I've removed this in c704d18.

Jim, I think this fixes it; could you do a git pull then try "make distclean && ./bootstrap.sh && ./configure && make" again? Reopen this bug if still broken.

comment:2 by Christopher Allan Webber, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.