djhenderson / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

Can't install win32-py2.6 as of 2.1.9 update as Non-Admin #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download pyodbc-2.1.9.win32-py2.6.exe
2. Try to install as Non-Admin

What is the expected output? What do you see instead?
Up until 2.1.8, it was possible to install pyodbc into 
<pypath>\Lib\site-packages\ without admin rights. 
As of 2.1.9, I get the "Run As" / credentials dialog and can't proceed.

What version of the product are you using? On what operating system?
pyodbc-2.1.9.win32-py2.6.exe on Win XP SP3 32bit

Please provide any additional information below.
I'm working as an external consultant in corporate environments and depend on 
tools that work without requiring administrator rights to install and maintain.

Original issue reported on code.google.com by oliver.s...@gmail.com on 3 Aug 2011 at 11:24

GoogleCodeExporter commented 9 years ago
I made a fix so it wouldn't crash on Vista/Windows 7 that I'll need to revisit.

If you have Visual Studio installed, rebuilding is easy.

You can manually copy the pyodbc.pyd file into your 
<python-install>\lib\site-packages directory.  The exe has a zipfile on the 
end, so you can use winzip or unzip.exe and extract PLATLIB/pyodbc.pyd.  You 
can also try renaming the .exe to .zip.

Original comment by mkleehammer on 3 Aug 2011 at 9:27

GoogleCodeExporter commented 9 years ago
http://docs.python.org/distutils/builtdist.html

Vista User Access Control (UAC)

I have set the user-access-control option to 'auto', so it should only ask for 
elevation if Python was installed for all users.  One work around is to install 
Python just for yourself.

Unfortunately I can't remove the option since it literally crashes otherwise.

I'm going to close this for now since I can't fix it, but will try to work with 
distutils and see if there is a better solution for all Python packages.

Original comment by mkleehammer on 18 Dec 2011 at 11:23