Message10518

Author teeohhem
Recipients teeohhem
Date 2015-12-08.17:06:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449594376.22.0.958350920065.issue2441@psf.upfronthosting.co.za>
In-reply-to
Content
'NoneType' is not iterable in _nt_quote_args in spawn.py when setup() is called. This was tested using Jython 2.7.1b2. 

Here is a stacktrace:

08:42:12   File "setup.py", line 25, in <module>
08:42:12     setup(
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/core.py", line 152, in setup
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/core.py", line 152, in setup
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/dist.py", line 953, in run_commands
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/dist.py", line 972, in run_command
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/command/install.py", line 589, in run
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/cmd.py", line 326, in run_command
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/dist.py", line 972, in run_command
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/command/install_lib.py", line 101, in run
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/command/install_lib.py", line 140, in byte_compile
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/util.py", line 528, in byte_compile
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/spawn.py", line 40, in spawn
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/spawn.py", line 158, in _spawn_java
08:42:12   File "/jenkins_data/jenkins/workspace/Util_OpsCenterBuild_Faster/ripcord/opscenterd/lib/jvm/com/datastax/opscenter/jython/2.7.1-rc2/jython-2.7.1-rc2.jar/Lib/distutils/spawn.py", line 57, in _nt_quote_args
08:42:12 TypeError: 'NoneType' object is not iterable

And here is a patch: https://github.com/jythontools/jython/pull/26

Explanation: This arguments list eventually gets joined via a ' '.join([arguments]) and there is a None in that list. Obviously you can't join None to a string. I'm not sure *how* the arguments list has a None value, but I ran into this.
History
Date User Action Args
2015-12-08 17:06:16teeohhemsetrecipients: + teeohhem
2015-12-08 17:06:16teeohhemsetmessageid: <1449594376.22.0.958350920065.issue2441@psf.upfronthosting.co.za>
2015-12-08 17:06:16teeohhemlinkissue2441 messages
2015-12-08 17:06:15teeohhemcreate