[Ironpython-users] IronPython, Daily Digest 8/23/2013

CodePlex no_reply at codeplex.com
Sat Aug 24 09:19:16 CEST 2013


Hi ironpython,

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

In today's digest:ISSUES

1. [New issue] easy_install runs fail first time w/ locked file error
2. [New comment] easy_install runs fail first time w/ locked file error
3. [New issue] Setuptools 0.6c11 works, 1.0 does not
4. [New issue] pytest 2.3.5 crashes upon execution

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

ISSUES

1. [New issue] easy_install runs fail first time w/ locked file error
http://ironpython.codeplex.com/workitem/34404
User bc3tech has proposed the issue:

"Every time I try and do an easy_install of a package (in my case, pytest), I am met with the error:

error: The process cannot access the file because it is being used by another process

on the first run through the install.

In the case of PyTest, I get this error on the initial install of py.test
then I run it again and py.test installs, but fails on py
then I run it again and py succeeds, py.test skips, and all is right with the world.

I am running ipy64.exe at an elevated command prompt using 2.7.4rc1"-----------------

2. [New comment] easy_install runs fail first time w/ locked file error
http://ironpython.codeplex.com/workitem/34404
User bc3tech has commented on the issue:

"<p>Here is full output:</p><p>```<br>C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U pytest<br>Searching for pytest<br>Reading http://pypi.python.org/simple/pytest/<br>Best match: pytest 2.3.5<br>Downloading https://pypi.python.org/packages/source/p/pytest/pytest-2.3.5.tar.gz<br>#md5=18f150e7be96b5fe3c388b0e817b8087<br>Processing pytest-2.3.5.tar.gz<br>Running pytest-2.3.5\setup.py -q bdist_egg --dist-dir c:\users\brandon\appdata\l<br>ocal\temp\easy_install-lqnnta\pytest-2.3.5\egg-dist-tmp-9kiucv<br>warning: build_py: byte-compiling is disabled, skipping.</p><p>warning: install_lib: byte-compiling is disabled, skipping.</p><p>error: byte-compiling is disabled.</p><p>C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U pytest<br>Searching for pytest<br>Reading http://pypi.python.org/simple/pytest/<br>Best match: pytest 2.3.5<br>Processing pytest-2.3.5-py2.7.egg<br>pytest 2.3.5 is already the active version in easy-install.pth<br>Installing py.test script to C:\Program Files (x86)\IronPython 2.7\Scripts<br>Installing py.test-2.7 script to C:\Program Files (x86)\IronPython 2.7\Scripts</p><p>Using c:\program files (x86)\ironpython 2.7\lib\site-packages\pytest-2.3.5-py2.7<br>.egg<br>Processing dependencies for pytest<br>Searching for py>=1.4.13dev6<br>Reading http://pypi.python.org/simple/py/<br>Best match: py 1.4.15<br>Downloading https://pypi.python.org/packages/source/p/py/py-1.4.15.tar.gz#md5=b5<br>afc772d242d2dbcf7a2fcf3080a799<br>Processing py-1.4.15.tar.gz<br>Running py-1.4.15\setup.py -q bdist_egg --dist-dir c:\users\brandon\appdata\loca<br>l\temp\easy_install-nvv3ik\py-1.4.15\egg-dist-tmp-v3vecu<br>warning: build_py: byte-compiling is disabled, skipping.</p><p>warning: install_lib: byte-compiling is disabled, skipping.</p><p>error: The process cannot access the file because it is being used by another pr<br>ocess</p><p>C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U pytest<br>Searching for pytest<br>Reading http://pypi.python.org/simple/pytest/<br>Best match: pytest 2.3.5<br>Processing pytest-2.3.5-py2.7.egg<br>pytest 2.3.5 is already the active version in easy-install.pth<br>Installing py.test script to C:\Program Files (x86)\IronPython 2.7\Scripts<br>Installing py.test-2.7 script to C:\Program Files (x86)\IronPython 2.7\Scripts</p><p>Using c:\program files (x86)\ironpython 2.7\lib\site-packages\pytest-2.3.5-py2.7<br>.egg<br>Processing dependencies for pytest<br>Finished processing dependencies for pytest</p><p>C:\Program Files (x86)\IronPython 2.7><br>```</p>"-----------------

3. [New issue] Setuptools 0.6c11 works, 1.0 does not
http://ironpython.codeplex.com/workitem/34406
User bc3tech has proposed the issue:

"I am able to install packages (namely pytest) with Setuptools 0.6c11, but not with 1.0.

Here is output from command line with 0.6c11 as starting point for setuptools:
C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U pytest
Searching for pytest
Reading http://pypi.python.org/simple/pytest/
Best match: pytest 2.3.5
Processing pytest-2.3.5-py2.7.egg
pytest 2.3.5 is already the active version in easy-install.pth
Installing py.test script to C:\Program Files (x86)\IronPython 2.7\Scripts
Installing py.test-2.7 script to C:\Program Files (x86)\IronPython 2.7\Scripts

Using c:\program files (x86)\ironpython 2.7\lib\site-packages\pytest-2.3.5-py2.7
.egg
Processing dependencies for pytest
Finished processing dependencies for pytest

C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U setuptoo
ls
Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Reading https://pypi.python.org/pypi/setuptools
Reading http://peak.telecommunity.com/snapshots/
Best match: setuptools 1.0
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.0.
tar.gz#md5=3d196ffb6e5e4425daddbb4fe42a4a74
Processing setuptools-1.0.tar.gz
Running setuptools-1.0\setup.py -q bdist_egg --dist-dir c:\users\brandon\appdata
\local\temp\easy_install-uncnz3\setuptools-1.0\egg-dist-tmp-1ghhsz
C:\Program Files (x86)\IronPython 2.7\Lib\distutils\dist.py:1: UserWarning: Unkn
own distribution option: 'src_root'
  """distutils.dist
warning: no files found matching 'entries*' under directory 'setuptools\tests'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching 'indexsidebar.html' under directory 'docs'
warning: build_py: byte-compiling is disabled, skipping.

warning: install_lib: byte-compiling is disabled, skipping.

Removing setuptools 0.6c11 from easy-install.pth file
Adding setuptools 1.0 to easy-install.pth file
Installing easy_install script to C:\Program Files (x86)\IronPython 2.7\Scripts
Installing easy_install-2.7 script to C:\Program Files (x86)\IronPython 2.7\Scri
pts

Installed c:\program files (x86)\ironpython 2.7\lib\site-packages\setuptools-1.0
-py2.7.egg
Processing dependencies for setuptools
Finished processing dependencies for setuptools

C:\Program Files (x86)\IronPython 2.7>ipy64.exe Scripts\easy_install -U pytest
<string>:1: DeprecationWarning: object.__init__() takes no parameters for type K
eyedRef
Traceback (most recent call last):
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\pkg_resources.py", line 357, in load_entry_point
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\pkg_resources.py", line 2108, in load
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\setuptools\__init__.py", line 2, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\setuptools\extension.py", line 5, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\setuptools\dist.py", line 11, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\setuptools\compat.py", line 47, in <module>
  File "Scripts\easy_install", line 7, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\pkg_resources.py", line 2394, in load_entry_point
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\setuptools-1.0-p
y2.7.egg\setuptools\compat.py", line 38, in exec_
AttributeError: 'module' object has no attribute '_getframe'
C:\Program Files (x86)\IronPython 2.7>
"-----------------

4. [New issue] pytest 2.3.5 crashes upon execution
http://ironpython.codeplex.com/workitem/34407
User bc3tech has proposed the issue:

"When pytest is initializing, it's rolling through plugin and configuration parsing. It gets to this particular method w/in its 'config.py' file:
    def _setinitialconftest(self, args):
        # capture output during conftest init (#issue93)
        # XXX introduce load_conftest hook to avoid needing to know
        # about capturing plugin here
        capman = self.pluginmanager.getplugin("capturemanager")
        capman.resumecapture()
        try:
            try:
                self._conftest.setinitial(args)
            finally:
                out, err = capman.suspendcapture() # logging might have got it
        except:
            sys.stdout.write(out)
            sys.stderr.write(err)
            raise

In IronPython 2.7.4rc1, this method will crash with the error:
exceptions.UnboundLocalError occurred
Message: Local variable 'out' referenced before assignment.


After attaching the VS 2010 debugger and stepping through, what I watch it do is process
                self._conftest.setinitial(args)

and throw an exception. But here's the kicker. before the 'finally' block sets 'out' and 'err', the 'except' block which attempts to .write both of those to stdout/stderr executed.
Since this same pytest version works in Python 2.7.4, I assume this is an issue isolated to IP."
----------------------------------------------



----------------------------------------------
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/20130824/af08db29/attachment.html>


More information about the Ironpython-users mailing list