wxPython 2.8 WIN32 binary installer not working as non administrator user

Dear wxPython users,

I am trying to deploy an application along with python and wxPython by
embedding python-2.5.msi and
wxPython2.8-win32-unicode-2.8.9.1-py25.exe into an NSIS installer.

I have no problems with the python-2.5.msi installer but the wxPython
inno setup installer has some issues when running as non admin since
it tries to write some registry stuff and also to write some
C:\Python25 files even if the application installation directory is
completely different: you can find some errors in the final part of
this e-mail.
At the present time I can complete the wxPython installation as non
admin by pressing about 20 times the ignore button only...

Do you have any suggestion on this issue and on python and wxPython
apps deploying in general?
Thank you very much for any help!

Regards,
Stefano Perticoni

...................some sample errors..............
some errors running the installer as non admin:
please note that installation directory is not C:\Python25.

2008-11-21 17:06:25 Message box (Abort/Retry/Ignore):
                      C:\Python25\unicows.dll

                      Error opening registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SharedDLLs

                      RegCreateKeyEx failed; code 5.
                      Access is denied.

                      Click Retry to try again, Ignore to skip this
file (not recommended), or Abort to cancel installation.
2008-11-21 17:06:26 User chose Ignore.

...........

2008-11-21 17:06:35 Message box (Abort/Retry/Ignore):
                      C:\Python25\python.exe.manifest

                      An error occurred while trying to replace the
existing file:
                      DeleteFile failed; code 5.
                      Access is denied.

                      Click Retry to try again, Ignore to skip this
file (not recommended), or Abort to cancel installation.
2008-11-21 17:06:36 User chose Ignore.

...........

2008-11-21 17:06:54 Message box (Abort/Retry/Ignore):
                      C:\Python25\Scripts\CreateBatchFiles.py

                      An error occurred while trying to replace the
existing file:
                      DeleteFile failed; code 5.
                      Access is denied.

                      Click Retry to try again, Ignore to skip this
file (not recommended), or Abort to cancel installation.
2008-11-21 17:08:57 User chose Ignore.

stefano perticoni wrote:

Dear wxPython users,

I am trying to deploy an application along with python and wxPython by
embedding python-2.5.msi and
wxPython2.8-win32-unicode-2.8.9.1-py25.exe into an NSIS installer.

I have no problems with the python-2.5.msi installer but the wxPython
inno setup installer has some issues when running as non admin since
it tries to write some registry stuff and also to write some
C:\Python25 files even if the application installation directory is
completely different: you can find some errors in the final part of
this e-mail.
At the present time I can complete the wxPython installation as non
admin by pressing about 20 times the ignore button only...

Do you have any suggestion on this issue and on python and wxPython
apps deploying in general?

Are your users going to be using Python and wxPython to develop applications or are they just going to be running your application? If the latter then just use py2exe to make a standalone application and don't bother installing Python and wxPython from your installer. If you really do need the raw wxPython installed for some reason then you can just skip using the installer and add the files in the wx-2.8-msw-*/wx folder in site-packages, and the wx.pth file to your NSIS installer script and it should work ok.

···

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

I removed an old version of python (2.5), installed the latest 2.6,
and tried both the ansi and unicode installations of wxPyhton 2.8.9.1,
and it installs, but I get:

import wx

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import wx
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
line 45, in <module>
    from wx._core import *
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 4, in <module>
    import _core_
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

I have tried reinstalling numerous times, but I get the same problem.

I do not have administrator rights on this computer. Is this a problem
with the installation process?

···

--
Josh English
Joshua.R.English@gmail.com

Josh,

I removed an old version of python (2.5), installed the latest 2.6,
and tried both the ansi and unicode installations of wxPyhton 2.8.9.1,
and it installs, but I get:

import wx
        

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import wx
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
line 45, in <module>
    from wx._core import *
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 4, in <module>
    import _core_
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

I have tried reinstalling numerous times, but I get the same problem.

I do not have administrator rights on this computer. Is this a problem
with the installation process?

As I recall, someone else posted with the exact same issue just a week or three ago. I think Robin said that there is some issue that won't be resolved until the next release and to just downgrade to 2.5.

I haven't messed with this myself, so I cannot currently confirm this behavior.

Mike

Thanks. I havne't been keeping up with the newsgroup, and I'm one of
those people who can't find things through a search box:

Google search: barack obama
...

0 hits.

Josh

···

On Tue, Dec 2, 2008 at 10:58 AM, Mike Driscoll <mike@pythonlibrary.org> wrote:

Josh,

I removed an old version of python (2.5), installed the latest 2.6,
and tried both the ansi and unicode installations of wxPyhton 2.8.9.1,
and it installs, but I get:

import wx

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
   import wx
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
line 45, in <module>
   from wx._core import *
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 4, in <module>
   import _core_
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

I have tried reinstalling numerous times, but I get the same problem.

I do not have administrator rights on this computer. Is this a problem
with the installation process?

As I recall, someone else posted with the exact same issue just a week or
three ago. I think Robin said that there is some issue that won't be
resolved until the next release and to just downgrade to 2.5.

I haven't messed with this myself, so I cannot currently confirm this
behavior.

Mike
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

--
Josh English
Joshua.R.English@gmail.com

Dear Robin,

thank you very much for your feedback,

Are your users going to be using Python and wxPython to develop applications
or are they just going to be running your application?

they are also using wxPython to develop: to better clarify myself we
are trying to solve python and wxPython version conflicts by using
application dir locally installed versions referred by python
executable full path.
I'm sure a better solution exists maybe something like virtualenv: any
suggestion is kindly appreciated!

If the latter then

just use py2exe to make a standalone application and don't bother installing
Python and wxPython from your installer.

Our software is a C++ scientific visualization app that is using
python for the network layer so it is calling plenty of python and
wxPython stuff via wxWidgets C++ wxExecute in sync and async way: do
you think this is still a good candidate for py2exe? if yes do we have
to generate several little executables one for for each module?
Thanks for any suggestion!
Anyway we found that having network layer python source code on the
customer machine during development is really helpful for debugging
communication stuff

  If you really do need the raw

wxPython installed for some reason then you can just skip using the
installer and add the files in the wx-2.8-msw-*/wx folder in site-packages,
and the wx.pth file to your NSIS installer script and it should work ok.

thank you very much, this seems an easy solution.

Regards,
Stefano Perticoni

···

On Tue, Dec 2, 2008 at 8:14 AM, Robin Dunn <robin@alldunn.com> wrote:

stefano perticoni wrote:

Dear Robin,

thank you very much for your feedback,

Are your users going to be using Python and wxPython to develop applications
or are they just going to be running your application?
    
they are also using wxPython to develop: to better clarify myself we
are trying to solve python and wxPython version conflicts by using
application dir locally installed versions referred by python
executable full path.
I'm sure a better solution exists maybe something like virtualenv: any
suggestion is kindly appreciated!

If the latter then
  

just use py2exe to make a standalone application and don't bother installing
Python and wxPython from your installer.
    
Our software is a C++ scientific visualization app that is using
python for the network layer so it is calling plenty of python and
wxPython stuff via wxWidgets C++ wxExecute in sync and async way: do
you think this is still a good candidate for py2exe? if yes do we have
to generate several little executables one for for each module?
Thanks for any suggestion!
Anyway we found that having network layer python source code on the
customer machine during development is really helpful for debugging
communication stuff
  

If you use py2exe (or better yet, GUI2Exe), then it will roll all the modules into one executable. I create applications with GUI2Exe that use wxPython, PyWin32, lxml and other 3rd party modules/packages and it just creates a nice executable for me (depending on what bundle option I use, of course). I personally don't recommend wrapping it all up in one executable as I seem to run into more issues doing it that way. Instead, I let it basically create a set of mostly *.pyd binary files and then use Inno Setup to create an installer that includes all those files.

Hopefully that wasn't confusing...

···

On Tue, Dec 2, 2008 at 8:14 AM, Robin Dunn <robin@alldunn.com> wrote:

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org