PyPadPlusPlus icon indicating copy to clipboard operation
PyPadPlusPlus copied to clipboard

ModuleNotFoundError

Open Emilza07 opened this issue 4 years ago • 10 comments

Hi, I use Python 3.10, but cannot set it to work with PyPadPlusPlus : When I try to use pyPadExecute or pyPadExecuteFix it's give me this error:

Traceback (most recent call last):
  File "C:\Program Files\Notepad++\plugins\PythonScript\scripts\plugins\config\PythonScript\scripts\pyPadExecuteFix.py", line 7, in <module>
    try: Npp.pypad != None
NameError: name 'Npp' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Notepad++\plugins\PythonScript\scripts\plugins\config\PythonScript\scripts\pyPadExecuteFix.py", line 8, in <module>
    except: from pyPadStart import *
ModuleNotFoundError: No module named 'pyPadStart'

IDK why it's showing that, I set the pythonPath correct. so why?

Emilza07 avatar Oct 11 '21 13:10 Emilza07

Did you maybe specify the path with backslashes? Then try it with double backslashes or set an r in front of the string, such as r"C:\Program Files\Ananaconda".

bitagoras avatar Oct 19 '21 07:10 bitagoras

I wrote pythonPath = r"C:\Users\emilz\AppData\Local\Programs\Python\Python310\pythonw.exe"...

Emilza07 avatar Oct 20 '21 04:10 Emilza07

At the moment I cannot try to reproduce this error. So far, I did not use Python 3.10 with it. The problem is that the error occurs Inside the subprocess and is not shown. When you click inside the output window and press the undo command can you see some more information, such as the Python 3.10 version information?

bitagoras avatar Oct 20 '21 07:10 bitagoras

WDYM undo command? ctrl + z?

Emilza07 avatar Oct 20 '21 12:10 Emilza07

Ok, I reinstalled, now it's

Traceback (most recent call last):
  File "C:\Program Files\Notepad++\plugins\PythonScript\scripts\PyPadPlusPlus-1.3.0\pyPadExecute.py", line 8, in <module>
    except: from pyPadStart import *
ImportError: No module named pyPadStart

Emilza07 avatar Oct 20 '21 12:10 Emilza07

Now it seems that your are not using the bundled version. Is this correct? You have to use the plugins/config folder, as you did above.

bitagoras avatar Oct 20 '21 12:10 bitagoras

Yes, this undo Ctrl + z

bitagoras avatar Oct 20 '21 12:10 bitagoras

Should I use this version? Npp8.1_32bit_PyPadPlusPlus1.3.0_PythonScript3.0.7.zip if yes, in what folder hould I put it? in program files, or in users?

Emilza07 avatar Oct 20 '21 13:10 Emilza07

It should work in any folder.

bitagoras avatar Oct 20 '21 16:10 bitagoras

Hmmm, It's doesn't work and undo do nothing...

Emilza07 avatar Oct 20 '21 19:10 Emilza07