[wxPython] difficulty installing

I want to try out wxPython. The machine I will try it on is running
Win2k and Python 2.0. When I try to run the wxPython installer, I
selectetd a directory to install in. (Does wxPython need to be
installed under the python directory?) When I clicked "Next" to begin
the installation, I got an error message :

The file C:\WINNT\System32\Msvcirt.dll could not be opened.

with the suggestion to make sure the disk isn't full.

The installer then terminates abruptly with no messages (looks like it
crashed, but windows didn't give any such message) and no files
created.

I checked the directory and (using cygwin):

$ pwd
//c/WINNT/system32

$ ls msvc*.dll
msvcirt.dll msvcp50.dll msvcrt.dll msvcrt20.dll msvcrt40.dll

What should I do to fix this?
-D

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

No responses ...

Would anyone like to offer any suggestions? Any suggestions are very
welcome.

-D

···

On Thu, Feb 08, 2001 at 02:12:13PM -0500, D-Man wrote:

I want to try out wxPython. The machine I will try it on is running
Win2k and Python 2.0. When I try to run the wxPython installer, I
selectetd a directory to install in. (Does wxPython need to be
installed under the python directory?) When I clicked "Next" to begin
the installation, I got an error message :

The file C:\WINNT\System32\Msvcirt.dll could not be opened.

with the suggestion to make sure the disk isn't full.

The installer then terminates abruptly with no messages (looks like it
crashed, but windows didn't give any such message) and no files
created.

I checked the directory and (using cygwin):

$ pwd
//c/WINNT/system32

$ ls msvc*.dll
msvcirt.dll msvcp50.dll msvcrt.dll msvcrt20.dll msvcrt40.dll

What should I do to fix this?
-D

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

> selectetd a directory to install in. (Does wxPython need to be
> installed under the python directory?)

No, but the directory that contains wxPython needs to be on the PYTHONPATH.

> When I clicked "Next" to begin
> the installation, I got an error message :
>
> The file C:\WINNT\System32\Msvcirt.dll could not be opened.
>

WISE should do a version check on the file, and then only try to install a
new copy if the existing one is an older version. If it's unable to write
to the file it should prompt to reboot and do it then. I'm not sure what
would cause it to misbehave like this...

Are you able to view the version number on the file? (Right click in
explorer, select Properties, then the Version tab.) What is the file
version? Are you able to copy it to some other directory? How about moving
it? If you get errrors on any of these then it might give a clue as to what
is wrong with msvcirt.dll if anything.

If all else fails, try closing all apps and taskbar items and then
installing wxPython again.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

> > selectetd a directory to install in. (Does wxPython need to be
> > installed under the python directory?)

No, but the directory that contains wxPython needs to be on the PYTHONPATH.

Ok, I installed it in d:\lib\wxPython.

Should I have d:\lib or d:\lib\wxPython in PYTHONPATH? (First I tried
the latter, and imported 'wx' at the interactive prompt, but I needed
the former to run the demo program).

BTW, did I need to install wxMSW first? I "installed" (unpacked the
zip file) to d:\lib\wxWindows, but I didn't have to tell wxPython
where it was. Now I'm thinking that maybe your installer has wxMSW
bundled with it.

> > When I clicked "Next" to begin
> > the installation, I got an error message :
> >
> > The file C:\WINNT\System32\Msvcirt.dll could not be opened.
> >

WISE should do a version check on the file, and then only try to install a
new copy if the existing one is an older version. If it's unable to write
to the file it should prompt to reboot and do it then. I'm not sure what
would cause it to misbehave like this...

Are you able to view the version number on the file? (Right click in
explorer, select Properties, then the Version tab.) What is the file
version? Are you able to copy it to some other directory? How about moving
it? If you get errrors on any of these then it might give a clue as to what
is wrong with msvcirt.dll if anything.

The version is 6.something and I can copy it to somewhere else. (I did
to be on the safe side).

If all else fails, try closing all apps and taskbar items and then
installing wxPython again.

This didn't change anything (even disabling Norton AntiVirus).

It turned out that installing as Administrator solved the problem
(even though I could do all of the above as a normal user).

Thanks for the reply! It is working now and I can start learning. :slight_smile:
-D

···

On Mon, Feb 12, 2001 at 04:14:23PM -0800, Robin Dunn wrote:

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

> > > selectetd a directory to install in. (Does wxPython need to be
> > > installed under the python directory?)
>
> No, but the directory that contains wxPython needs to be on the

PYTHONPATH.

Ok, I installed it in d:\lib\wxPython.

Should I have d:\lib or d:\lib\wxPython in PYTHONPATH? (First I tried
the latter, and imported 'wx' at the interactive prompt, but I needed
the former to run the demo program).

The former. wxPython is a "Python package", which basically means that the
directory name is part of the namespace, and that the directory needs to be
on the search path. So in other words, you should "import wxPython.wx" not
"import wx" and the "wxPython" part of it really means the wxPython
directory.

BTW, did I need to install wxMSW first? I "installed" (unpacked the
zip file) to d:\lib\wxWindows, but I didn't have to tell wxPython
where it was. Now I'm thinking that maybe your installer has wxMSW
bundled with it.

Correct. It's all in wx22_5.dll.

It turned out that installing as Administrator solved the problem
(even though I could do all of the above as a normal user).

Oh yeah, I didn't even think about admin vs. normal users. It's second
nature to me to always do stuff like this as admin so I assume everybody
else does too...

···

On Mon, Feb 12, 2001 at 04:14:23PM -0800, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

No responses ...

Would anyone like to offer any suggestions? Any suggestions are very
welcome.

-D

Some installers have troubles with locked files, try closing running
applications.

mak

···

On Thu, Feb 08, 2001 at 02:12:13PM -0500, D-Man wrote:
>
> I want to try out wxPython. The machine I will try it on is running
> Win2k and Python 2.0. When I try to run the wxPython installer, I
> selectetd a directory to install in. (Does wxPython need to be
> installed under the python directory?) When I clicked "Next" to begin
> the installation, I got an error message :
>
> The file C:\WINNT\System32\Msvcirt.dll could not be opened.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Does Windows have a su/sudo equivalent?

It's really annoying to have to logout, then login (as admin), then
install, then logout, then login (as user), then realize you set the
environment wrong, then logout, then login (as admin), then fix it,
then logout, then login (as user), now it works, cool! At least I
didn't have to reboot that many times. :wink:

Thanks,
-D

···

On Mon, Feb 12, 2001 at 04:51:15PM -0800, Robin Dunn wrote:

> It turned out that installing as Administrator solved the problem
> (even though I could do all of the above as a normal user).
>

Oh yeah, I didn't even think about admin vs. normal users. It's second
nature to me to always do stuff like this as admin so I assume everybody
else does too...

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I think part of what you desire can be accomplished by granting admin
priveleges to the user you usually log in as. On NT4 one does this by
logging on as administrator, and going to Programs | Administrative Tools |
User Manager.

-- at least i think that's how i did it, i don't want to close everything i
have open and log on as administrator to verify it :-]

  good luck,
    ~c

···

On Mon, Feb 12, 2001 at 04:51:15PM -0800, Robin Dunn wrote:

> It turned out that installing as Administrator solved the problem
> (even though I could do all of the above as a normal user).
>

Oh yeah, I didn't even think about admin vs. normal users. It's second
nature to me to always do stuff like this as admin so I assume everybody
else does too...

Does Windows have a su/sudo equivalent?

It's really annoying to have to logout, then login (as admin), then
install, then logout, then login (as user), then realize you set the
environment wrong, then logout, then login (as admin), then fix it,
then logout, then login (as user), now it works, cool! At least I
didn't have to reboot that many times. :wink:

Thanks,
-D

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Does Windows have a su/sudo equivalent?

I seem to remember seeing some command line tool somewhere that let you run
a command as a different user, but I can't seem to find it now.

But as Charlie mentioned, if you don't mind running everything with admin
rights then the easiest thing is to add yourself to the Administrators
group. You could try the PowerUsers group instead to be a little more
secure, but some installs may still require admin rights...

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Ugh. The purpose of having a user account it to prevent shooting
myself in the foot by rm -fr / (equivalents). I could just login as
Admin all the time too ...

So Windows is as weak as I thought ... <wink>

Thanks for the response anyways.

-D

···

On Thu, Feb 15, 2001 at 02:16:30PM -0500, Charlie Derr wrote:

I think part of what you desire can be accomplished by granting admin
priveleges to the user you usually log in as. On NT4 one does this by
logging on as administrator, and going to Programs | Administrative Tools |
User Manager.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users