First time here? Check out the FAQ!

Peter Isaac's profile - activity

2019-10-03 06:25:42 -0500 received badge Famous Question (source)
2019-10-03 06:25:42 -0500 received badge Notable Question (source)
2019-03-14 15:04:54 -0500 received badge Popular Question (source)
2019-03-07 07:49:35 -0500 marked best answer Package import under WingIDE debugger

Hello WingIDE community,

First post, so respect to those who have gone before and thanks for the help and support.

I'm having trouble importing a package I am developing when running code in Wing's debug mode (Debug/Start/Continue).  The package is installed using pip and shows up correctly under "pip list".  I can also import the package and associated modules correctly using vanilla Python (including the Python shell in the Wing IDE) and the Jupyter notebook.

Basic details are:

  • OS Ubuntu 16.04 with Anaconda3 Python 3.6.0 distribution.
  • Wing Pro 6.0.5-1 with project properties setting the Python executable to the Anaconda installation.

Running in debug mode, the package imports OK using "import pfp" but any attempt to import modules from the package using e.g. "from pfp.scripts import pfp_compliance" results in the exception:

builtins.ModuleNotFoundError: No module named 'pfp.scripts'; 'pfp' is not a package

And yet, as outlined above, the same lines work fine in the WingIDE Python shell, vanilla Python and the Jupyter notebook.

Any help greatly appreciated.

Cheers,

Peter

2019-03-07 07:49:33 -0500 received badge Student (source)
2017-10-17 17:22:00 -0500 commented answer Package import under WingIDE debugger

Hi Wingware Support,Many thanks for the quick response!  The tyranny of time zones (I'm in Melbourne, Australia) meant I

2017-10-17 02:57:00 -0500 asked a question Package import under WingIDE debugger

Package import under WingIDE debugger Hello WingIDE community,First post, so respect to those who have gone before and t