Revision history  [back]

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

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

Package import under WingIDE debugger

Hello WingIDE community,

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

I'm 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 notebook.Basic details are:

  • OS Ubuntu 16.04 with Anaconda3 Python Python 3.6.0 distribution.

  • distribution. Wing Pro 6.0.5-1 with project properties setting the the Python executable to the Anaconda 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: exception:builtins.ModuleNotFoundError: No module named 'pfp.scripts'; 'pfp' is not a package

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

Any notebook.Any help greatly appreciated.

Cheers,

Peterappreciated.Cheers,Peter