Pycharm error: module must not be null? Follow
Hi all
I am getting this error on my pycharm community addition:
Build #PC-222.4345.23, built on October 10, 2022
Runtime version: 17.0.4.1+7-b469.62 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
It is a simple python web scraping script but it won't run.
Below is the error and my run config:
This is my code, it runs on my ubuntu laptop with pycharm: https://github.com/jzoudavy/webScrap_Selenium/blob/main/test.py
I am not sure what's missing here.
Thanks
Error running 'test': Argument for @NotNull parameter 'module' of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
Please sign in to leave a comment.
hi can someone approve this post pls?
issue resolved by restarting pycharm
I am getting the same error trying to run a python script in IntelliJ. Restarting IntelliJ did not resolve the issue.
I was able to fix this by switching to a different python interpreter in my run configuration which could run the desired script, running the script, and then switching back to the original python interpreter. I have no idea why that worked
Hi,
Can someone please provide steps to reproduce the issue or a code sample? The link from the first post is not working anymore.
I had the same problem, i resolved it : Go on Run -> edit configuration -> on the right side find where is "paramaters" and fill it by one of the options given by Pycharm This is how it looks like
You need to select the execution method ( you can select 1st option). else the tool doesn't know where to get this executed.