[Ironpython-users] IronPython, Daily Digest 5/16/2014

CodePlex no_reply at codeplex.com
Sat May 17 09:22:51 CEST 2014


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New comment] types.FunctionType(...) raise NotImplementedError
2. [New comment] byte and string should be interchengable as arguments of string methods
3. [New comment] byte and string should be interchengable as arguments of string methods
4. [New comment] Error when write dicom file using IronPython
5. [Status update] Error when write dicom file using IronPython
6. [New issue] stack trace reported out of order by top level exception handler

----------------------------------------------

ISSUES

1. [New comment] types.FunctionType(...) raise NotImplementedError
http://ironpython.codeplex.com/workitem/35180
User paweljasinski has commented on the issue:

"<p>partial fix (only 34932) in b24c9301b3eb2f90a0fa9eaca9fb4bdc145dbe5f</p>"-----------------

2. [New comment] byte and string should be interchengable as arguments of string methods
http://ironpython.codeplex.com/workitem/35212
User paweljasinski has commented on the issue:

"<p>fixed in b24c9301b3eb2f90a0fa9eaca9fb4bdc145dbe5f</p>"-----------------

3. [New comment] byte and string should be interchengable as arguments of string methods
http://ironpython.codeplex.com/workitem/35212
User paweljasinski has commented on the issue:

"<p>oops, fixed in 83ea081cb8659c8589a87534d9b51f47f7daff4c</p>"-----------------

4. [New comment] Error when write dicom file using IronPython
http://ironpython.codeplex.com/workitem/35215
User paweljasinski has commented on the issue:

"<p>As I tried to explain (but failed to format), you have to <br>1. take dicom 0.9.8<br>2. Edit ```__init__.py```, replace:<br>```<br>in_py3 = sys.version_info[0] > 2<br>```<br>with<br>```<br>in_py3 = sys.version_info[0] > 2 or sys.platform == 'cli'<br>```<br>3. Use fix provided in https://ironpython.codeplex.com/workitem/35212<br>4. Use fix provided here: https://github.com/IronLanguages/main/pull/199</p><p>You can also wait a few days and very likely it will be in ipy-2.7-main branch</p>"-----------------

5. [Status update] Error when write dicom file using IronPython
http://ironpython.codeplex.com/workitem/35215
User paweljasinski has updated the issue:
Status has changed from Proposed to Closed.

-----------------

6. [New issue] stack trace reported out of order by top level exception handler
http://ironpython.codeplex.com/workitem/35230
User paweljasinski has proposed the issue:

"I have discovered it when playing with dicom. If I take dicom version 0.8.9 and try the following script:
import dicom
ds = dicom.read_file("CT_small.dcm")
ds.save_as("foo")

I get the following traceback reported:
Traceback (most recent call last):
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataset.py", line 285, in __getitem__
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 188, in convert_value
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 117, in <lambda$214>
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\valuerep.py", line 360, in __new__
  File "di.py", line 3, in <module>
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataset.py", line 467, in save_as
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\filewriter.py", line 344, in write_file
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\filewriter.py", line 196, in write_dataset
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataelem.py", line 338, in DataElement_fro                           m_raw
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 120, in convert_PN
TypeError: expected IList[Byte], got str

the di.py line reported in the middle make no sense.

However if I dump traceback myself, things look as expected:
import dicom
import traceback
try:
    ds = dicom.read_file("CT_small.dcm")
    ds.save_as("foo")
except:
    traceback.print_exc()

traceback:
Traceback (most recent call last):
  File "di.py", line 5, in <module>
    ds.save_as("foo")
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataset.py", line 467, in save_as
    dicom.write_file(filename, self, WriteLikeOriginal)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\filewriter.py", line 344, in write_file
    write_dataset(fp, dataset)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\filewriter.py", line 196, in write_dataset
    write_data_element(fp, dataset[tag], dataset_encoding)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataset.py", line 285, in __getitem__
    self[tag] = DataElement_from_raw(data_elem, character_set)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\dataelem.py", line 338, in DataElement_from_raw
    value = convert_value(VR, raw, encoding)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 188, in convert_value
    value = converter(byte_string, is_little_endian, encoding=encoding)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 120, in convert_PN
    return valtype(splitup[0])
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\values.py", line 117, in <lambda$214>
    valtype = lambda x: PersonName(x, *args)
  File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pydicom-0.9.8-py2.7.egg\dicom\valuerep.py", line 360, in __new__
    return super(PersonName, cls).__new__(cls, val)
TypeError: expected IList[Byte], got str
"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140517/5c06b51d/attachment.html>


More information about the Ironpython-users mailing list