I don't have any experience with PyCharm, or using a debugger with PyQt apps in Windows... but as a guess, maybe debug mode is trying to load debug symbols or perform extended import operations that non-debug mode doesn't do. And that maybe it isn't using a properly configured environment to find the PATH to the dlls? Can you check whatever env configuration PyCharm provides for its debug mode and ensure you are adding in the location of the PyQt DLLs?
On Sat, Mar 7, 2015 at 4:56 AM Benjam901 <[email protected]> wrote: > Hello all, > > I am having a bit of trouble with the Pycharm debugger and I cannot wrap > my head around it. > > My application uses PyQt4 and when I import and run the program regularly > all is well and the dialog pops up and things populate etc. > > But when I run it in debug mode I get the following error: > > Traceback (most recent call last): > File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition > 139.1485\helpers\pydev\pydevd.py", line 2217, in <module> > globals = debugger.run(setup['file'], None, None) > File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition > 139.1485\helpers\pydev\pydevd.py", line 1643, in run > pydev_imports.execfile(file, globals, locals) # execute the script > File "D:/projects/Tools/UnitManager/scripts/__main__.py", line 13, in > <module> > from PyQt4 import QtGui > ImportError: DLL load failed: The specified procedure could not be found. > > I am quite confused since everything runs as expected when I run the > application normally. > > Has anyone encountered this issue with PyCharm debugger or perhaps another > application. > > PyCharm uses pydev to do its debugging by the looks of it > > Cheers, > > Ben > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/c8064e40-47d7-4213-a39e-0f4e010f610d%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/c8064e40-47d7-4213-a39e-0f4e010f610d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1dLCMtmWzUihrnwc3dcbFBx%2BEnM4s-YcSkRv0Ww5kqEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
