Ticket #2168 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

IO Error after installing on Windows

Reported by: hbogaards Assigned to: cdevienne
Priority: normal Component: PageToOdtPlugin
Severity: normal Keywords:
Cc: hbogaards@gmail.com, Yaniv.Mordekhay@bigbandnet.com Trac Release: 0.10

Description

I installed the PageToOdtPlugin under Trac 0.10.4 running in Apache on a Windows machine. After installation I created the PageToOdtStyles wikipage and attached the empty.odt.

But when I tested it, I got the following the following Python Traceback:

Python Traceback

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python24\Lib\site-packages\trac\wiki\web_ui.py", line 134, in process_request
    page.text, format, page.name)
  File "C:\Python24\Lib\site-packages\trac\mimeview\api.py", line 605, in send_converted
    content, selector)
  File "C:\Python24\Lib\site-packages\trac\mimeview\api.py", line 385, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "build\bdist.win32\egg\pagetoodt\pagetoodt.py", line 42, in convert_content
  File "build\bdist.win32\egg\pagetoodt\pagetoodt.py", line 90, in wiki_to_odtcontent
IOError: [Errno 2] No such file or directory: '/tmp/raw.xml'

What's wrong?

Attachments

Change History

11/09/07 15:55:41 changed by hbogaards

  • cc set to hbogaards@gmail.com.

03/03/08 08:32:51 changed by Yaniv.Mordekhay@bigbandnet.com

I experience this problem too. I see that this problem was filed four months ago. Is there any updates on this issue? Thank you.

(follow-up: ↓ 4 ) 03/03/08 11:16:52 changed by cdevienne

  • status changed from new to assigned.
  • cc changed from hbogaards@gmail.com to hbogaards@gmail.com, Yaniv.Mordekhay@bigbandnet.com.

It looks like I used a hard-coded path for a temporary file, and this path is not windows-friendly. Moreover, after a quick look at the code, it's only usefull for debegging purpose. Try changing line 20 in pagetoodt.py from :

dump_contents = True

to :

dump_contents = False

If that allows you to use the plugin on win32 I'll commit the patch.

(in reply to: ↑ 3 ) 03/05/08 10:17:09 changed by anonymous

I've applied the change but got a different error:

TypeError: __init__() got an unexpected keyword argument 'req'

Here's the traceback:

File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\web\main.py", line 398, in  _dispatch_request  
File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\web\main.py", line 195, in  dispatch  
File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\wiki\web_ui.py", line 157, in  process_request  
File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\mimeview\api.py", line 829, in  send_converted  
File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\mimeview\api.py", line 559, in  convert_content  
File "build\bdist.win32\egg\pagetoodt\pagetoodt.py", line 43, in  convert_content  
File "build\bdist.win32\egg\pagetoodt\pagetoodt.py", line 93, in  wiki_to_odtcontent  
File "build\bdist.win32\egg\pagetoodt\odtformatter.py", line 126, in  wiki_to_odt  
File "build\bdist.win32\egg\pagetoodt\odtformatter.py", line 8, in  __init__ 

03/05/08 22:21:21 changed by cdevienne

  • status changed from assigned to closed.
  • resolution set to fixed.

I think this other problem is trac-0.11 related, not win32 related. See #1950, which I did not review yet.

03/06/08 13:28:55 changed by cdevienne

(In [3314]) Disable a debugging purpose feature which make win32 deployment fail. This fix #2168.


Add/Change #2168 (IO Error after installing on Windows)




Change Properties
Action