Modify

Opened 7 years ago

Closed 21 months ago

#2605 closed defect (wontfix)

Import Error in Trac 0.11b1 Data Mover plugin

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

Description (last modified by rjollos)

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 7 years ago by anonymous

  • Summary changed from Import Error in Trac Data Mover plugin to Import Error in Trac 0.11b1 Data Mover plugin

comment:2 Changed 7 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 follow-up: Changed 7 years ago by fermulator@…

  • Cc coderanger added; anonymous removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

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 6 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 follow-up: Changed 6 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 6 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 21 months ago by rjollos

  • Description modified (diff)
  • Resolution set to wontfix
  • Status changed from reopened to closed

This plugin is deprecated. Please use the TracMigratePlugin.

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.