Modify ↓
#12862 closed defect (fixed)
check_catalog command failing
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.2 |
| Component: | i18n | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: |
Fix |
||
Description
$ make check-ja
check-ja: python setup.py check_catalog -l ja check_catalog_js -l ja check_catalog_tracini -l ja
running check_catalog
checking catalog trac/locale/ja/LC_MESSAGES/messages.po
Traceback (most recent call last):
File "setup.py", line 158, in <module>
**extra
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/src/tracdev/git/trac/dist.py", line 458, in run
log.warning('%s:%d: %s', filename, message.lineno,
AttributeError: 'module' object has no attribute 'warning'
make: *** [check-ja] Error 1
Attachments (0)
Change History (4)
comment:1 by , 8 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , 8 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Committed in [16115].
comment:4 by , 6 years ago
Note:
See TracTickets
for help on using tickets.



That line has been changed in [15327].
The
login trac.dist isdistutils.log, notlogging.Logger.distutils.loghaswarnmethod notwarningmethod. I think that naming in Python library is not consistent…It might be good to rename to
distlogfromlog, to prevent replacing withlog.warninglike this:trac/dist.py
log.info('generating messages javascript %r to %r',mo_file, js_file)log.info('checking catalog %s', filename)log.warning('%s:%d: %s', filename, message.lineno,error)