Opened 17 years ago
Closed 16 years ago
#5595 closed defect (fixed)
[PATCH] Errors in the log file for optional components
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | general | Version: | devel |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Trac's log files show errors because I don't have Textile or SilverCity installed. Textile support, unlike docutils support, is not even documented as being supported AFAIK. SilverCity is only used for backward compatibility with old plugins. Showing ERROR in the log for these is too alarming.
Attachments (1)
Change History (11)
follow-up: 2 comment:1 by , 17 years ago
Keywords: | mimeview added |
---|
comment:2 by , 17 years ago
Replying to cboos:
Are you sure you're having this issue with trunk?
Oh, yes. Very, very, very sure.
comment:3 by , 17 years ago
Ok, I checked a bit further: actually something must be wrong with your installation, as both Textile and SilverCity are now "extra" dependencies and the corresponding mimeview module should only be enabled if those dependencies are satisfied. Check source:trunk/setup.py.
comment:4 by , 17 years ago
Yes, that's what I'm using on two separate installations on different machines. And yet:
2007-06-27 07:33:24,505 Trac[__init__] ERROR: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile>=2.0" not found) ... 2007-06-27 07:33:24,533 Trac[__init__] ERROR: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not found)
These don't seem like they should be errors to me.
comment:5 by , 17 years ago
I'm working with Trac 0.11dev-r5762 installed directly from the trunk using easy_install http://svn.edgewall.com/repos/trac/trunk, and my trac.log has the same "errors":
2007-06-27 11:44:15,286 Trac[loader] ERROR: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("docutils≥0.3" not found)
2007-06-27 11:44:15,305 Trac[loader] ERROR: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity≥0.9.4" not found)
2007-06-27 11:44:15,752 Trac[loader] ERROR: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile≥2.0" not found)
So, it seems like the problem is not with setup.py
follow-up: 7 comment:6 by , 17 years ago
Keywords: | mimeview removed |
---|---|
Milestone: | 0.11.1 → 0.11 |
Summary: | Errors in the log file for optional components → [PATCH] Errors in the log file for optional components |
It's a trivial change, probably an oversight in the setuptools implementation. See PkgResources exceptions.
comment:7 by , 17 years ago
Replying to anonymous:
It's a trivial change, probably an oversight in the setuptools implementation. See PkgResources exceptions.
Please do not change the ticket summary when a patch is added.
comment:8 by , 17 years ago
Resolution: | → fixed |
---|---|
Severity: | normal → minor |
Status: | new → closed |
I think this deserves at least a warning, as we can't really know if the dependency is missing on purpose or not.
Fixed in [6121].
comment:9 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Ok, #7288 asked again for getting DEBUG level instead of WARNING, so I think we're going to lower it nevertheless.
Are you sure you're having this issue with trunk? Seems like it's an 0.10 issue which is already fixed…