ccgreen13 / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

Unable to uninstall pywin32 #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the package manager
2. Try to install (by dragging a package) or uninstall by selecting a package 
from the appropriate windows in the package manager.
3. The package I tried to install is PyWin32 217 and the package I tried to 
install is Pywin32 213.

What is the expected output? What do you see instead?
I expected to install/uninstall the packages. However, I get the following 
error in both cases:

Error message:
[Error 5] Access is denied: 
'C:\\EXECUTABLES&PROGRAMS\\WinPython\\WinPython-32bit-2.7.3.1\\python-2.7.3\\Lib
\\site-packages\\win32\\win32gui.pyd'

What version of the product are you using? On what operating system?
WinPython version: WinPython-32bit-2.7.3.1
Operating system: Windows 7 64-bit

Please provide any additional information below.
Also, following the error, I am unable to launch the package manager ever again.

Original issue reported on code.google.com by indranil...@gmail.com on 12 Oct 2012 at 1:39

GoogleCodeExporter commented 9 years ago
When you chose the title of this Issue ("Unable to install/uninstall 
packages"), you were very pessimistic :)

Actually the problem here is only that you are unable to uninstall pywin32. As 
a consequence, you are unable to upgrade or downgrade this package.

The reason is that pywin32 is used by the WinPython Control Panel... so it 
can't uninstall a package that is required for it to run properly.

I have to take this into account and warn the user that if he wants to 
uninstall a package that is required by WinPython Control Panel, he must do it 
from the command line.

For now the command line counterpart of WinPython Control Panel is not ready 
yet. It's really nothing to do, it's just that I was waiting for the day when I 
would be forced to implement it. All the background code is already there, I 
only have to write a tiny script to allow the user to install/uninstall 
packages from the command line.

Original comment by pierre.raybaut on 13 Oct 2012 at 8:06

GoogleCodeExporter commented 9 years ago
That's interesting, and it makes sense (I should have tried some other 
package). Looking forward to the command line counterpart of WinPython Control 
Panel. I really feel that this can be a great tool (and I shall recommend it to 
anyone) starting out with Python for scientific problems. Kudos to you for 
this. (By the way, I also use Spyder regularly and I feel it is a great tool). 

Thank you very much,
Indranil.

P.S. Just for information, I need to uninstall pywin32 217 and install pywin32 
213 as the DDE module in pywin32 is broken since build 214  
[http://sourceforge.net/mailarchive/forum.php?thread_name=From_noreply%40sourcef
orge.net_Wed_Oct_19_18%3A10%3A35_2011&forum_name=pywin32-bugs]. 

Original comment by indranil...@gmail.com on 14 Oct 2012 at 11:48

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 9849cb631123.

To test this new command line interface, just type 'wppm --help' inside the
WinPython command window (which may be opened by executing the launcher named
'Command prompt.exe'). Upgrading a package (i.e. uninstall the existing version
and install a new one) like pywin32 should now be possible by entering one of
the following equivalent commands:

wppm pywin32-217.win32-py2.7.exe
wppm -i pywin32-217.win32-py2.7.exe
wppm --install pywin32-217.win32-py2.7.exe

Original comment by pierre.raybaut on 15 Oct 2012 at 8:27