Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13096 closed defect (worksforme)

Issue at Installing Plugin under trac 1.2

Reported by: klaus.dobbler@… Owned by: Ryan J Ollos
Priority: normal Component: SensitiveTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

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)

trac.log (22.4 KB) - added by klaus.dobbler@… 8 years ago.
trac-log
trac.2.log (22.7 KB) - added by klaus.dobbler@… 8 years ago.
trac.log after deleting egg-file
pip freeze.txt (1.5 KB) - added by klaus.dobbler@… 8 years ago.
pip freeze output

Download all attachments as: .zip

Change History (24)

comment:1 Changed 8 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from Daniel Kahn Gillmor to Ryan J Ollos
Status: newaccepted

comment:2 Changed 8 years ago by Ryan J Ollos

Possible duplicate of #13008. Did you install from the 1.2 branch?

comment:3 Changed 8 years ago by Ryan J Ollos

Assuming you have the correct version installed, please check the logs next.

comment:4 Changed 8 years ago by Ryan J Ollos

Resolution: worksforme
Status: acceptedclosed

Please reopen if this is not an InstallationIssue and you can provide the logs.

comment:5 Changed 8 years ago by anonymous

Resolution: worksforme
Status: closedreopened

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 Jun Omae

Resolution: worksforme
Status: reopenedclosed

Please reopen if this is NOT an wiki:InstallationIssue.

comment:7 in reply to:  5 Changed 8 years ago by Ryan J Ollos

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 anonymous

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:9 Changed 8 years ago by Ryan J Ollos

In 16299:

TracSensitiveTickets 1.2.0: Prepare for release

Refs #13096.

comment:10 Changed 8 years ago by Ryan J Ollos

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 klaus.dobbler@…

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 in reply to:  10 Changed 8 years ago by anonymous

Replying to Ryan J Ollos:

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

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

Last edited 8 years ago by Ryan J Ollos (previous) (diff)

comment:13 Changed 8 years ago by Ryan J Ollos

Which version of Trac are you running on the new server?

comment:14 Changed 8 years ago by Ryan J Ollos

In 16333:

1.2.1dev: Only require Trac 1.0

Refs #13096.

comment:15 in reply to:  13 Changed 8 years ago by anonymous

Replying to Ryan J Ollos:

Which version of Trac are you running on the new server?

I'm running Trac-1.2-0

comment:16 Changed 8 years ago by Ryan J Ollos

You'll need to check the logs.

Changed 8 years ago by klaus.dobbler@…

Attachment: trac.log added

trac-log

comment:17 Changed 8 years ago by klaus.dobbler@…

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] --------------------------------
Last edited 8 years ago by Ryan J Ollos (previous) (diff)

comment:18 Changed 8 years ago by 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 in permission_policies: SensitiveTicketsPlugin@29.

comment:19 in reply to:  18 ; Changed 8 years ago by anonymous

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 in permission_policies: SensitiveTicketsPlugin@29.

Hi Ryan,

I've deleted the file - the related errors in trac.log disappeared, but configuration error still remains.

Last edited 8 years ago by Ryan J Ollos (previous) (diff)

Changed 8 years ago by klaus.dobbler@…

Attachment: trac.2.log added

trac.log after deleting egg-file

Changed 8 years ago by klaus.dobbler@…

Attachment: pip freeze.txt added

pip freeze output

comment:20 in reply to:  19 Changed 8 years ago by Ryan J Ollos

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.

Last edited 8 years ago by Ryan J Ollos (previous) (diff)

comment:21 Changed 8 years ago by Ryan J Ollos

Please also try:

$ pip uninstall TracSensitiveTickets
$ pip install TracSensitiveTickets

Make sure to restart the webserver after those operations.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.