How to install in Win7

323 views
Skip to first unread message

Docfxit

unread,
Dec 4, 2014, 8:59:06 PM12/4/14
to win...@googlegroups.com
I'm getting an error when I try to run:
C:\python32\scripts\winpdb simple.py
wxPython was not found.
wxPython 2.6 or higher is required to run the winpdb GUI.
wxPython is the graphical user interface toolkit used by Winpdb.
You can find more information on wxPython at http://www.wxpython.org/
The Unicode version of wxPython is recommended for Winpdb.
To use the debugger without a GUI, run rpdb2.

I have the following folders:
C:\Python32
C:\winpdb-1.4.8
C:\wxWidgets

What did I do wrong?

Thank you,

Docfxit

Bluebird

unread,
Dec 5, 2014, 5:30:11 AM12/5/14
to win...@googlegroups.com
Hi Docfxit,

I have not tested Winpdb on Windows 8 but it should run fine.

Winpdb uses WxWidgets for its graphical interface. The Winpdb core supports Python 3 (with a few modifications) but the WxWidget is at this time not available for Python 3 (see project Pheonix about progresses : http://wiki.wxpython.org/ProjectPhoenix ).

Your options are :
1. switch your project to Python 2 and enjoy the graphical interface of winpdb.
2. launch the graphical interface of Winpdb with Python 2 and launch your program with Python 3 

For option 2, you need to use my fork of Winpdb on Github ( https://github.com/bluebird75/winpdb ) because the official Winpdb does not support Python 3.

To get it working :
- clone my winpdb at Github
- install Python 2.7 and WxWdigets for Python 2.7
- launch Windpb with Python 2.7  : python27 winpdb.py 
- Use the menu File / Launch to start your program
- in the launch dialog, specify the program to debug and the python interpreter to use (it will default to Python 2.7, just adjust it to Python 3.2 in your case)

And that's it.

Don't hesitate to come back here if you need more help.

cheers,

Philippe

Docfxit

unread,
Dec 5, 2014, 11:49:58 AM12/5/14
to win...@googlegroups.com
Thank you Philippe,

I would like to try option 2.  I'm not familiar with how to "- clone my winpdb at Github"
After I go to the link am I supposed to select "Clone in Desktop" and install Github in Win7?

Thank you,

Docfxit

Philippe Fremy

unread,
Dec 5, 2014, 3:31:32 PM12/5/14
to win...@googlegroups.com
Just use the link "Download ZIP" on the right. It should be sufficient to get Winpdb on your desktop.

cheers,

Philippe
--
You received this message because you are subscribed to the Google Groups "Winpdb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winpdb+un...@googlegroups.com.
To post to this group, send email to win...@googlegroups.com.
Visit this group at http://groups.google.com/group/winpdb.
For more options, visit https://groups.google.com/d/optout.

Docfxit

unread,
Dec 5, 2014, 4:40:47 PM12/5/14
to win...@googlegroups.com
I downloaded the Zip.
I UnZipped it.
I copied the folder to C:\winpdb-winpdb
I installed Python 2.7.8
In C:\winpdb-winpdb
I ran:
C:\Python27\python.exe setup.py install

In:
C:\winpdb-winpdb
C:\Python27\python.exe winpdb.py

I received an error:

I do have C:\wxWidgets
installed from before.


What did I do wrong?

Thanks,

Docfxit




Philippe Fremy

unread,
Dec 6, 2014, 7:38:14 AM12/6/14
to win...@googlegroups.com
Hi,

You need to install WxPython for Python 2.7.  Download it from WxPython website : http://www.wxpython.org/download.php#msw

cheers,

Philippe

Philippe Fremy

unread,
Dec 6, 2014, 10:50:53 AM12/6/14
to win...@googlegroups.com

And to start winpdb, from any directory, you can just do :

    c:\Python27\python.exe -m winpdb your_program.py

cheers,

Philippe

jd

unread,
Dec 6, 2014, 11:24:31 AM12/6/14
to win...@googlegroups.com
As Bluebird already answered, you have to install wxpython *before* running WinPdb.

To verify that wxpython is correctly installed, start your Python shell and execute

    import wx

if it doesn't print any error message, then everything should be fine.

Jorge

Docfxit

unread,
Dec 6, 2014, 12:00:58 PM12/6/14
to win...@googlegroups.com
Thank you all for the replies...

I installed WxPython for Python 2.7
I ran:
In:
C:\winpdb-winpdb
C:\Python27\python.exe winpdb.py

I'm getting an error saying:

C:\Scratch01>C:
C:\Scratch01>cd "\winpdb-winpdb"
C:\winpdb-winpdb>Set PYTHONHOME=c:\python27
C:\winpdb-winpdb>c:\python27\python.exe -m WINPDB simple.py
c:\python27\python.exe: No module named WINPDB

Do I need to add winpdb-winpdb to the path?

When I run this:
In:
C:\winpdb-winpdb
C:\Python27\python.exe winpdb.py

I do get the graphical interface.

When I run this:
import wx

It doesn't print any error message.

What am I doing wrong?

Thank you,

Docfxit

Docfxit

unread,
Dec 9, 2014, 8:38:46 PM12/9/14
to win...@googlegroups.com
winpdb.py is located in:       -same version
C:\Python27\Lib\site-packages
C:\winpdb-winpdb

winpdb   is located in:
C:\winpdb-winpdb

Is winpdb supposed to be in c:\python27?

If it is, how is it supposed to get there?  (Some install?)

Thanks,

Docfxit

Bluebird

unread,
Dec 14, 2014, 8:46:30 PM12/14/14
to win...@googlegroups.com
I have updated the README on github to explain that better.

To sum-up :

- you can use winpdb without installing it, you don't even need to be in winpdb directory to do that. Just use its expclicit path :
    python /path/to/winpdb/winpdb.py your_program.py

- it's recommended to install winpdb with python setup.py install . Once you have done that, you can invoke winpdb at any time
by simply calling :

   python -m winpdb your_program.py

cheers,

Philippe
Reply all
Reply to author
Forward
0 new messages