Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError #7

Open
Emilza07 opened this issue Oct 11, 2021 · 10 comments
Open

ModuleNotFoundError #7

Emilza07 opened this issue Oct 11, 2021 · 10 comments

Comments

@Emilza07
Copy link

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?

@bitagoras
Copy link
Owner

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".

@Emilza07
Copy link
Author

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

@bitagoras
Copy link
Owner

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?

@Emilza07
Copy link
Author

WDYM undo command? ctrl + z?

@Emilza07
Copy link
Author

Emilza07 commented Oct 20, 2021

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

@bitagoras
Copy link
Owner

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
Copy link
Owner

Yes, this undo Ctrl + z

@Emilza07
Copy link
Author

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?

@bitagoras
Copy link
Owner

It should work in any folder.

@Emilza07
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants