<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi All,<div><br></div><div>I ran into an issue trying to execute dsitribute_setup.py. I used both the -X:Frames and -X:FullFrames but I am getting an error message sys module does not contain <span style="font-size: 12pt;">'_getframe'. Here is the output </span></div><div><br></div><div><div>c:\Users\Daniel\Downloads>c:\IronPython27\ipy.exe -X:Frames distribute_setup.py</div><div>Extracting in c:\users\daniel\appdata\local\temp\tmpje5fjs</div><div>Now working in c:\users\daniel\appdata\local\temp\tmpje5fjs\distribute-0.6.49</div><div>Installing Distribute</div><div>Before install bootstrap.</div><div>Scanning installed packages</div><div>No setuptools distribution found</div><div>running install</div><div>Traceback (most recent call last):</div><div> File "setup.py", line 147, in <module></div><div> File "c:\IronPython27\Lib\distutils\core.py", line 151, in setup</div><div> File "c:\IronPython27\Lib\distutils\dist.py", line 952, in run_commands</div><div> File "c:\IronPython27\Lib\distutils\dist.py", line 971, in run_command</div><div> File "c:\users\daniel\appdata\local\temp\tmpje5fjs\distribute-0.6.49\setuptools\command\install.py", line 63, in</div><div>run</div><div>AttributeError: 'module' object has no attribute '_getframe' Something went wrong during the installation.</div><div>See the error message above.</div></div><div><br></div><div><br></div><div>I thought passing -X:Frames (which I do almost all the time) as an argument would enable sys module to have sys._getframe?</div><div><br></div><div>I tracked in the distribute_setup.py where the issue is occurring. It is happening in the _python_cmd function</div><div>def _python_cmd(*args):</div><div> args = (sys.executable,) + args</div><div><span style="font-size: 12pt;"> return subprocess.call(args) == 0</span> </div><div><br></div><div>I don't think the -X:Frames is being passed along to the subprocess? I'm not sure to handle this without changing the script?</div><div><br></div><div>Danny</div><div><br></div><div><br></div> </div></body>
</html>