Opened 17 years ago
Closed 12 years ago
#2605 closed defect (wontfix)
Import Error in Trac 0.11b1 Data Mover plugin
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | high | Component: | DatamoverPlugin |
Severity: | major | Keywords: | |
Cc: | Noah Kantrowitz | Trac Release: | 0.11 |
Description (last modified by )
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
Summary: | Import Error in Trac Data Mover plugin → Import Error in Trac 0.11b1 Data Mover plugin |
---|
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 follow-up: 4 Changed 17 years ago by
Cc: | Noah Kantrowitz added; anonymous removed |
---|---|
Resolution: | fixed |
Status: | closed → 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 Changed 16 years ago by
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: 6 Changed 16 years ago by
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 Changed 16 years ago by
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
Description: | modified (diff) |
---|---|
Resolution: | → wontfix |
Status: | reopened → closed |
This plugin is deprecated. Please use the TracMigratePlugin.
In the data mover plug-in code, i changed "import _open_environment" to "import open_environment" and it works fine now