View Issue Details

IDProjectCategoryView StatusLast Update
0002377Slicer4Core: Packagingpublic2012-08-21 09:47
Reporterfedorov Assigned Tojcfr  
PriorityurgentSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002377: no pyexpat on windows
Description

in my extension I am using xml.dom.minidom to parse an xml document.
Importing the needed functionality works on mac, but not on windows.

On Mac:

import xml
from xml.dom import expatbuilder

On Windows:

import xml
from xml.dom import expatbuilder
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Program Files (x86)\Slicer
4.1.0-2012-07-28\lib\Python\Lib\xml\dom\expatbuilder.py", line 32, in
<module>
from xml.parsers import expat
File "C:\Program Files (x86)\Slicer
4.1.0-2012-07-28\lib\Python\Lib\xml\parsers\expat.py", line 4, in
<module>
from pyexpat import *
ImportError: No module named pyexpat

TagsNo tags attached.

Activities

finetjul

finetjul

2012-07-30 05:32

administrator   ~0005446

As a side note, you can potentially use instead the XML classes from Qt: http://doc.qt.nokia.com/4.7-snapshot/xml-processing.html

fedorov

fedorov

2012-07-30 05:38

developer   ~0005447

Yes, thanks -- I am aware of this. This is one of the options.

pieper

pieper

2012-07-30 10:54

administrator   ~0005461

This fixes it for my windows build:

http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=20717

Andrey, can you confirm on tomorrow's nightly and if all is well close the bug.

Issue History

Date Modified Username Field Change
2012-07-29 19:39 fedorov New Issue
2012-07-29 19:39 fedorov Status new => assigned
2012-07-29 19:39 fedorov Assigned To => jcfr
2012-07-30 05:32 finetjul Note Added: 0005446
2012-07-30 05:38 fedorov Note Added: 0005447
2012-07-30 10:54 pieper Note Added: 0005461
2012-07-30 10:54 pieper Status assigned => resolved
2012-07-30 10:54 pieper Resolution open => fixed
2012-08-01 05:29 fedorov Status resolved => closed
2012-08-01 05:29 fedorov Fixed in Version => Slicer 4.1.2 - August
2012-08-21 09:45 jcfr Fixed in Version Slicer 4.1.2 - August => Slicer 4.2.0 - Feature freeze Sept 1st 2012
2012-08-21 09:47 jcfr Target Version => Slicer 4.2.0 - Feature freeze Sept 1st 2012