issue 5
(Broken 0.2.1 release on pypi - missing README.md) reported by p...@openplans.org
- What steps will reproduce the problem?
pip install xml2dict
OR
easy_install xml2dict
What is the expected output?
It should get installed.
What do you see instead?
From pip:
Downloading/unpacking xml2dict
Downloading XML2Dict-0.2.1.tar.gz
Storing download in cache at /home/pw/tmp/pip-download-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FX%2FXML2Dict%2FXML2Dict-0.2.1.tar.gz
Running setup.py egg_info for package xml2dict
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pw/builds/openblock/builds/20120104/build/xml2dict/setup.py", line 14, in <module>
long_description=open('README.md').read())
IOError: [Errno 2] No such file or directory: 'README.md'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pw/builds/openblock/builds/20120104/build/xml2dict/setup.py", line 14, in <module>
long_description=open('README.md').read())
IOError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/pw/.pip/pip.log
From easy_install:
$ easy_install xml2dict
Searching for xml2dict
Reading http://pypi.python.org/simple/xml2dict/
Reading https://github.com/mcspring/XML2Dict
Best match: XML2Dict 0.2.1
Downloading http://pypi.python.org/packages/source/X/XML2Dict/XML2Dict-0.2.1.tar.gz#md5=a0b1e5f5e8ca4ee724feabfc20253d85
Processing XML2Dict-0.2.1.tar.gz
Running XML2Dict-0.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wp3Us5/XML2Dict-0.2.1/egg-dist-tmp-hErFdR
error: README.md: No such file or directory
What version of the product are you using? On what operating system?
0.2.1 on Linux.
What steps will reproduce the problem?
pip install xml2dict
OR
easy_install xml2dict
What is the expected output?
It should get installed.
What do you see instead?
From pip:
Downloading/unpacking xml2dict
Downloading XML2Dict-0.2.1.tar.gz
Storing download in cache at /home/pw/tmp/pip-download-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FX%2FXML2Dict%2FXML2Dict-0.2.1.tar.gz
Running setup.py egg_info for package xml2dict
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pw/builds/openblock/builds/20120104/build/xml2dict/setup.py", line 14, in <module>
long_description=open('README.md').read())
IOError: [Errno 2] No such file or directory: 'README.md'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pw/builds/openblock/builds/20120104/build/xml2dict/setup.py", line 14, in <module>
long_description=open('README.md').read())
IOError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/pw/.pip/pip.log
From easy_install:
$ easy_install xml2dict
Searching for xml2dict
Reading http://pypi.python.org/simple/xml2dict/
Reading https://github.com/mcspring/XML2Dict
Best match: XML2Dict 0.2.1
Downloading http://pypi.python.org/packages/source/X/XML2Dict/XML2Dict-0.2.1.tar.gz#md5=a0b1e5f5e8ca4ee724feabfc20253d85
Processing XML2Dict-0.2.1.tar.gz
Running XML2Dict-0.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wp3Us5/XML2Dict-0.2.1/egg-dist-tmp-hErFdR
error: README.md: No such file or directory
What version of the product are you using? On what operating system?
0.2.1 on Linux.
Older
Apr 23, 2009
issue 4
(如果值的内容为空,会报异常) Status changed by nkchenz
- 已修复,见
http://github.com/nkchenz/xml2dict/commit/df70326ba02172233cc85362666793c86b37fa21
ideer@chenz:~/workspace/xml2dict> python
Python 2.6 (r26:66714, Dec 3 2008, 10:55:18)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml2dict
>>> x = xml2dict.XML2Dict()
>>> d = x.fromstring('<PseudoCode></PseudoCode>')
>>> d
{'PseudoCode': {'value': None}}
>>> print d.PseudoCode
None
if node.text:
tree.value = node.text.strip()
当值为空时,node.text为None,value就不会被设置。当node.text为''时,也会发生错误。
这是一个很典型的问题,None, 0, '', [], {}都是False。如果想判断a不是None,应该使用显式
的判断方法 'if a is not None'。
hongshan, 谢谢你的报告!
Status: Fixed
已修复,见
http://github.com/nkchenz/xml2dict/commit/df70326ba02172233cc85362666793c86b37fa21
ideer@chenz:~/workspace/xml2dict> python
Python 2.6 (r26:66714, Dec 3 2008, 10:55:18)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml2dict
>>> x = xml2dict.XML2Dict()
>>> d = x.fromstring('<PseudoCode></PseudoCode>')
>>> d
{'PseudoCode': {'value': None}}
>>> print d.PseudoCode
None
if node.text:
tree.value = node.text.strip()
当值为空时,node.text为None,value就不会被设置。当node.text为''时,也会发生错误。
这是一个很典型的问题,None, 0, '', [], {}都是False。如果想判断a不是None,应该使用显式
的判断方法 'if a is not None'。
hongshan, 谢谢你的报告!
r7
(the right way to deal with dict children
) committed by nkchenz
- the right way to deal with dict children
the right way to deal with dict children
Oct 26, 2008
r6
(Trivial. You can use OODict substitute object_dict directly ...) committed by nkchenz
- Trivial. You can use OODict substitute object_dict directly
Trivial. You can use OODict substitute object_dict directly
Oct 26, 2008
r5
(OODict: new version of object_dict
) committed by nkchenz
- OODict: new version of object_dict
OODict: new version of object_dict
Oct 07, 2008
issue 3
(a small typo in README) Status changed by nkchenz
-
Status: Fixed
Status: Fixed
Oct 07, 2008
r4
(typo in README
) committed by nkchenz
- typo in README
typo in README
Oct 06, 2008
issue 3
(a small typo in README) reported by sleytr
- line 10 of README file:
r = xml2dcit.fromstring('string')
dcit > dict
line 10 of README file:
r = xml2dcit.fromstring('string')
dcit > dict