I can't see an item like this on the bug list. Perhaps the sky is falling, perhaps, not. I am reporting the problem here in case it is. It seems like something the "big guns" should be made aware of right away. The behavior seems to have changed since IPy 2.6, and if someone has indeed been working on "import" then we have a regression.<br>
<br>First.... here's CPython 2.7 -- I install the package and then import it from another directory...<br><console dump><br><span style="color: rgb(0, 0, 153);">C:\hg\adodbapi>py27 setup.py install</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\hg\adodbapi>c:\python27\python.exe setup.py install</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">adodbapi version="2.4.0.2"</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">running install</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">running build</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">running build_py</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">copying adodbapi.py -> build\lib\adodbapi</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">copying ado_consts.py -> build\lib\adodbapi</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">copying __init__.py -> build\lib\adodbapi</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">running install_lib</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">copying build\lib\adodbapi\adodbapi.py -> c:\python27\Lib\site-packages\adodbapi</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">running install_egg_info</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">Writing c:\python27\Lib\site-packages\adodbapi-2.4.0.2-py2.7.egg-info</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\hg\adodbapi>home</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\hg\adodbapi>C:</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\hg\adodbapi>cd \Users\vernon</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">C:\Users\vernon>py27</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\Users\vernon>c:\python27\python.exe</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">Type "help", "copyright", "credits" or "license" for more information.</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">>>> import adodbapi</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">>>> adodbapi.version</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">'adodbapi v2.4.0.2'</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"></console></span><br>................... The version attribute works<br><br>Now I try the same thing on an administrator console (I think that IronPython is correct in required the higher privilege here) <br>
and a big THANK YOU for having a working distutils! ........<br><console AS ADMINISTRATOR dump><br><span style="color: rgb(204, 0, 0);">C:\hg\adodbapi>ipy setup.py install</span><br style="color: rgb(204, 0, 0);">
<br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">C:\hg\adodbapi>"c:\program files\IronPython 2.7\ipy.exe" setup.py install</span><br style="color: rgb(204, 0, 0);"><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">adodbapi version="2.4.0.2"</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">running install</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">running build</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">running build_py</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">copying adodbapi.py -> build\lib\adodbapi</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">copying ado_consts.py -> build\lib\adodbapi</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">copying __init__.py -> build\lib\adodbapi</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">warning: build_py: byte-compiling is disabled, skipping.</span><br style="color: rgb(204, 0, 0);">
<br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">running install_lib</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">warning: install_lib: byte-compiling is disabled, skipping.</span><br style="color: rgb(204, 0, 0);">
<br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">running install_egg_info</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">Removing c:\program files\IronPython 2.7\Lib\site-packages\adodbapi-2.4.0.2-py2.</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">7.egg-info</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">Writing c:\program files\IronPython 2.7\Lib\site-packages\adodbapi-2.4.0.2-py2.7</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">.egg-info</span><br style="color: rgb(204, 0, 0);"><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">C:\hg\adodbapi>home</span><br style="color: rgb(204, 0, 0);">
<br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">C:\hg\adodbapi>C:</span><br style="color: rgb(204, 0, 0);"><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">C:\hg\adodbapi>cd \Users\vernon</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">C:\Users\vernon>ipy</span><br style="color: rgb(204, 0, 0);"><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">C:\Users\vernon>"c:\program files\IronPython 2.7\ipy.exe"</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">IronPython 2.7 Beta 2 (2.7.0.20) on .NET 4.0.30319.1</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">Type "help", "copyright", "credits" or "license" for more information.</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">>>> import adodbapi</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">>>> adodbapi.version</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">Traceback (most recent call last):</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);"> File "<stdin>", line 1, in <module></span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">AttributeError: 'module' object has no attribute 'version'</span><br>
</console><br>................. Where did the attribute go??????????????<br><br>Now I hand copy the adodbapi folder from IronPython 2.7 site-packages into IronPython 2.6 site packages (because 2.6 distutils will not work) and continue with the same admin console...<br>
<console dump continues><br><span style="color: rgb(0, 0, 153);">>>> exit()</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\Users\vernon>ipy26</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">C:\Users\vernon>"c:\program files\Ironpython 2.6\ipy.exe"</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.4206</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">Type "help", "copyright", "credits" or "license" for more information.</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">>>> import adodbapi</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">>>> adodbapi.version</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">'adodbapi v2.4.0.2'</span><br></console><br>........................ so it seems to me that "import" is badly broken. I am unable to test adodbapi.<br>
<br>The code I am testing is at:<br>hg clone <a href="http://adodbapi.hg.sourceforge.net:8000/hgroot/adodbapi/adodbapi#main">http://adodbapi.hg.sourceforge.net:8000/hgroot/adodbapi/adodbapi#main</a><br><br>Is there anything I should do?<br>
--<br>Vernon<br><br>