Modify

Opened 17 years ago

Closed 12 years ago

#2605 closed defect (wontfix)

Import Error in Trac 0.11b1 Data Mover plugin

Reported by: buvaneswari.chandran@… Owned by: Noah Kantrowitz
Priority: high Component: DatamoverPlugin
Severity: major Keywords:
Cc: Noah Kantrowitz Trac Release: 0.11

Description (last modified by Ryan J Ollos)

I installed the data mover plugin from "http://trac-hacks.org/browser/datamoverplugin/0.10" using easy_install

when i start the trac daemon, i get the following error in my Trac Log file and i dont get any "data mover" option in my Admin panel:

2008-02-19 14:28:11,605 Trac[loader] DEBUG: Loading datamover.ticket from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,605 Trac[loader] ERROR: Skipping "datamover.ticket = datamover.ticket": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,605 Trac[loader] DEBUG: Loading datamover.component from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,605 Trac[loader] ERROR: Skipping "datamover.component = datamover.component": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,605 Trac[loader] DEBUG: Loading datamover.wiki from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.wiki = datamover.wiki": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.enum from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.enum = datamover.enum": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.providers from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.providers = datamover.providers": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.milestone from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.milestone = datamover.milestone": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.web_ui from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.web_ui = datamover.web_ui": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.version from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.version = datamover.version": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.attachment from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.attachment = datamover.attachment": (can't import "cannot import name _open_environment")
2008-02-19 14:28:11,621 Trac[loader] DEBUG: Loading datamover.permission from c:\python24\lib\site-packages\tracdatamoverplugin-1.2-py2.4.egg
2008-02-19 14:28:11,621 Trac[loader] ERROR: Skipping "datamover.permission = datamover.permission": (can't import "cannot import name _open_environment")

Attachments (0)

Change History (7)

comment:1 Changed 17 years ago by anonymous

Summary: Import Error in Trac Data Mover pluginImport Error in Trac 0.11b1 Data Mover plugin

comment:2 Changed 17 years ago by anonymous

Resolution: fixed
Status: newclosed

In the data mover plug-in code, i changed "import _open_environment" to "import open_environment" and it works fine now

comment:3 Changed 17 years ago by Matt Callaghan

Cc: Noah Kantrowitz added; anonymous removed
Resolution: fixed
Status: closedreopened

Is this an official fix?

Just do a find and replace of import _open_environment to import open_environment for all files in the datamover directory?

It seems odd because there's other specific references to _open_environment in those files ... so simply fixing the imports doesn't seem entirely correct.

comment:4 in reply to:  3 Changed 16 years ago by wbranderson@…

Replying to fermulator@sympatico.ca:

Is this an official fix?

Just do a find and replace of import _open_environment to import open_environment for all files in the datamover directory?

It seems odd because there's other specific references to _open_environment in those files ... so simply fixing the imports doesn't seem entirely correct.

Any luck with trying this? I am having the same problem.

comment:5 Changed 16 years ago by anonymous

I have recently installed this plugin on Trac 0.11.

Simply replacing the import _open_environment did not work. You need to replace all instances, it then works fine (at least for wiki pages so far)

Hopefully this will be integrated into the next release of this plugin.

comment:6 in reply to:  5 Changed 16 years ago by sroussey@…

If using easy_install, how do you do that?

Replying to anonymous:

I have recently installed this plugin on Trac 0.11.

Simply replacing the import _open_environment did not work. You need to replace all instances, it then works fine (at least for wiki pages so far)

Hopefully this will be integrated into the next release of this plugin.

comment:7 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: wontfix
Status: reopenedclosed

This plugin is deprecated. Please use the TracMigratePlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.