#13096 closed defect (worksforme)
Issue at Installing Plugin under trac 1.2
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | SensitiveTicketsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description (last modified by )
Hi,
I'm encountering a problem at installing the sensitiveticket-plugin for trac 1.2: SensitiveTicketsPlugin
In order to install the plugin i builded the .egg file with python and copied it to the plugins-folder of the trac-environment.
Also i did the configurations in the trac.ini file:
[trac] permission_policies=SensitiveTicketsPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy [components] sensitivetickets.*=enabled
After restarting the apache webserver the trac-startpage says:
configuration error: Cannot find implementation(s) of the IPermissionPolicy interface named SensitiveTicketsPolicy. Please check that the Component is enabled or update the option [trac] permission_policies in trac.ini.
any hints appreciated,
best regards
Attachments (3)
Change History (24)
comment:1 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Daniel Kahn Gillmor to Ryan J Ollos |
Status: | new → accepted |
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
Assuming you have the correct version installed, please check the logs next.
comment:4 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | accepted → closed |
Please reopen if this is not an InstallationIssue and you can provide the logs.
comment:5 follow-up: 7 Changed 8 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Hi,
probably it is an installation issue...
Am I right to try to install sensitive-plugin-files from Tickets 16162, 16163 in order to run the plugin with trac 1.2.0?
Regards
Klaus
comment:6 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Please reopen if this is NOT an wiki:InstallationIssue.
comment:7 Changed 8 years ago by
Replying to anonymous:
Hi,
probably it is an installation issue...
Am I right to try to install sensitive-plugin-files from Tickets 16162, 16163 in order to run the plugin with trac 1.2.0?
Regards
Klaus
Install from the 1.2 branch:
$ pip uninstall sensitivetickets $ pip install svn+https://trac-hacks.org/svn/sensitiveticketsplugin/1.2/
comment:8 Changed 8 years ago by
Hi,
thanks for your support.
If i do the install command i get the rorr: Cannot find command 'svn'.
I executed pip install svn and this worked, but the install of sensitiveticketsplugin from svn does not work yet.
How can I solve this?
Thanks in advance.
Klaus
comment:10 follow-up: 12 Changed 8 years ago by
That may be due to using an older version of pip
. What does the following give?:
$ pip --version
You can upgrade pip
using:
$ pip install -U pip
I published the plugin to pypi:TracSensitiveTickets, so now you can just run:
$ pip install TracSensitiveTickets
comment:11 Changed 8 years ago by
Thanks a lot...
pip was already in version 9.0.1, pip install -U pip said: requirement already up-to-date.
I did the installation by pip install TracSensitiveTickets.
After that i had to upgrade the project environment and now finally it works! :)
Thank you!!!
comment:12 Changed 8 years ago by
Replying to Ryan J Ollos:
That may be due to using an older version of
pip
. What does the following give?:$ pip --versionYou can upgrade
pip
using:$ pip install -U pip
I published the plugin to pypi:TracSensitiveTickets, so now you can just run:
$ pip install TracSensitiveTickets
Hi Ryan,
I have again an issue with the SensitiveTickets Plugin.
I set up a new Server with Linux Cent OS 7.1. and followed the instructions for installing the plugin:
pip install TracSensitiveTickets
did work.
I added
[trac] permission_policies=SensitiveTicketsPolicy,DefaultPermissionPolicy,LegacyAttachmentPoli [components] sensitivetickets.*=enabled
into trac.ini and upgraded the project environment with trac-admin.
Although this procedure worked a few days ago on a Windows machine, I get the configuration error when calling trac.
Warning: Error with navigation contributor "AdminModule" Error with navigation contributor "SearchModule" Error with navigation contributor "RoadmapModule" Error with navigation contributor "QueryModule" Error with navigation contributor "ReportModule" Error with navigation contributor "TicketModule" Error with navigation contributor "TimelineModule" Error with navigation contributor "BrowserModule" Error with navigation contributor "LoginModule" Error with navigation contributor "WikiModule" Configuration Error Cannot find implementation(s) of the IPermissionPolicy interface named SensitiveTicketsPolicy. Please check that the Component is enabled or update the option [trac] permission_policies in trac.ini.
Any help appreciated,
BR Klaus
comment:13 follow-up: 15 Changed 8 years ago by
Which version of Trac are you running on the new server?
comment:15 Changed 8 years ago by
Replying to Ryan J Ollos:
Which version of Trac are you running on the new server?
I'm running Trac-1.2-0
comment:17 Changed 8 years ago by
Hi Ryan,
i found in the log:
2017-03-16 16:16:47,354 Trac[loader] DEBUG: Adding plugin sensitivetickets 1.2.0 from /home/fosterkent/trac-1.2-0/apps/trac/trac_projects/MotionMixes/plugins/sensitivetickets-1.2.0-py2.7.egg 2017-03-16 16:16:47,497 Trac[loader] DEBUG: Loading sensitivetickets from /home/fosterkent/trac-1.2-0/apps/trac/trac_projects/MotionMixes/plugins/sensitivetickets-1.2.0-py2.7.egg 2017-03-16 16:16:47,503 Trac[loader] ERROR: Skipping "sensitivetickets = sensitivetickets": Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs entry.load(require=True) File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2229, in load return self.resolve() File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ImportError: No module named sensitivetickets 2017-03-16 16:16:47,946 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: The 'textile>=2.0' distribution was not found and is required by the application" not found) 2017-03-16 16:16:48,048 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect 2017-03-16 16:16:48,282 Trac[main] WARNING: [192.168.1.199] HTTPInternalError: 500 Configuration Error (Cannot find implementation(s) of the <code>IPermissionPolicy</code> interface named <code>SensitiveTicketsPolicy</code>. Please check that the Component is enabled or update the option <code>[trac] permission_policies</code> in trac.ini.) 2017-03-16 16:16:48,282 Trac[chrome] DEBUG: Prepare chrome data for request 2017-03-16 16:16:48,285 Trac[chrome] WARNING: Error with navigation contributor AdminModule 2017-03-16 16:16:48,286 Trac[chrome] WARNING: Error with navigation contributor SearchModule 2017-03-16 16:16:48,287 Trac[chrome] WARNING: Error with navigation contributor RoadmapModule 2017-03-16 16:16:48,287 Trac[chrome] WARNING: Error with navigation contributor QueryModule 2017-03-16 16:16:48,288 Trac[chrome] WARNING: Error with navigation contributor ReportModule 2017-03-16 16:16:48,289 Trac[chrome] WARNING: Error with navigation contributor TicketModule 2017-03-16 16:16:48,289 Trac[chrome] WARNING: Error with navigation contributor TimelineModule 2017-03-16 16:16:48,359 Trac[svn_fs] DEBUG: Subversion bindings imported 2017-03-16 16:16:48,363 Trac[chrome] WARNING: Error with navigation contributor BrowserModule 2017-03-16 16:16:48,365 Trac[chrome] WARNING: Error with navigation contributor LoginModule 2017-03-16 16:16:48,366 Trac[chrome] WARNING: Error with navigation contributor WikiModule 2017-03-16 16:16:48,450 Trac[chrome] ERROR: Error during check of EMAIL_VIEW: ConfigurationError: Cannot find implementation(s) of the <code>IPermissionPolicy</code> interface named <code>SensitiveTicketsPolicy</code>. Please check that the Component is enabled or update the option <code>[trac] permission_policies</code> in trac.ini. 2017-03-16 16:16:48,582 Trac[chrome] ERROR: Error during check of EMAIL_VIEW: ConfigurationError: Cannot find implementation(s) of the <code>IPermissionPolicy</code> interface named <code>SensitiveTicketsPolicy</code>. Please check that the Component is enabled or update the option <code>[trac] permission_policies</code> in trac.ini. 2017-03-16 16:16:51,956 Trac[env] INFO: -------------------------------- environment startup [Trac 1.2] --------------------------------
comment:18 follow-up: 19 Changed 8 years ago by
Please delete the file: /home/fosterkent/trac-1.2-0/apps/trac/trac_projects/MotionMixes/plugins/sensitivetickets-1.2.0-py2.7.egg
.
Please also send along the output of pip freeze
.
Unrelated, you'll probably want to include ReadonlyWikiPolicy
as shown in permission_policies
: SensitiveTicketsPlugin@29.
comment:19 follow-up: 20 Changed 8 years ago by
Replying to Ryan J Ollos:
Please delete the file:
/home/fosterkent/trac-1.2-0/apps/trac/trac_projects/MotionMixes/plugins/sensitivetickets-1.2.0-py2.7.egg
.Please also send along the output of
pip freeze
.Unrelated, you'll probably want to include
ReadonlyWikiPolicy
as shown inpermission_policies
: SensitiveTicketsPlugin@29.
Hi Ryan,
I've deleted the file - the related errors in trac.log disappeared, but configuration error still remains.
comment:20 Changed 8 years ago by
Replying to anonymous:
Hi Ryan,
I've deleted the file - the related errors in trac.log disappeared, but configuration error still remains.
Did you restart your web server?
Is the output from pip freeze
after you removed the egg and restarted the webserver? The issue now is that TracSensitiveTickets
is not loading.
comment:21 Changed 8 years ago by
Please also try:
$ pip uninstall TracSensitiveTickets $ pip install TracSensitiveTickets
Make sure to restart the webserver after those operations.
Possible duplicate of #13008. Did you install from the 1.2 branch?