runtime-error

Basic python login failing due to runtime error

Basic python login failing due to runtime error Question: When running the below code, the error RuntimeError: can’t re-enter readline keeps appearing (line 6 – ‘username = input…’). I am trying to create a basic pop-up login window that closes when the details entered match the stored value. If the entered details are incorrect, the …

Total answers: 1

SSL error unsafe legacy renegotiation disabled

SSL error unsafe legacy renegotiation disabled Question: I am running a Python code where I have to get some data from HTTPSConnectionPool(host=’ssd.jpl.nasa.gov’, port=443). But every time I try to run the code I get the following error. I am on MAC OS 12.1 raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host=’ssd.jpl.nasa.gov’, port=443): Max retries exceeded with url: /api/horizons.api?format=text&EPHEM_TYPE=OBSERVER&QUANTITIES_[…]_ …

Total answers: 6

RuntimeError when installing rioxarray

RuntimeError when installing rioxarray Question: As I tried to install rioxarray by: pip install rioxarray I got the following error: RuntimeError: The current Numpy installation (…) fails to pass a sanity check due to a bug in the windows runtime. A bit of search ended me up here which suggests downgrading numpy to 1.19.3. But …

Total answers: 3

Learning Python: RuntimeError: wrapped C/C++ object of type StaticBitmap has been deleted

Learning Python: RuntimeError: wrapped C/C++ object of type StaticBitmap has been deleted Question: I’m currently learning to program with Python, I got this example code for a simple image viewer (see below), which produces the following error message when I close the app, run it again and open any directory to browse the images in …

Total answers: 2

pymongo.errors.ServerSelectionTimeoutError:localhost:27017:[WinError 10061] No connection could be made because the target machine actively refused it

pymongo.errors.ServerSelectionTimeoutError:localhost:27017:[WinError 10061] No connection could be made because the target machine actively refused it Question: I am following the Python tutorial from W3Schools. I just started the MongoDB chapter. I installed MongoDB and checked it with: import pymongo without getting an error. But as soon as I enter the following code: import pymongo myclient = …

Total answers: 5

in Vscode, RuntimeError: 'path' must be None or a list, not <class '_frozen_importlib_external._NamespacePath'>

in Vscode, RuntimeError: 'path' must be None or a list, not <class '_frozen_importlib_external._NamespacePath'> Question: I use Ubuntu and Vscode. In my Django project, I’ve tried to run python manage.py process_tasks command and I got this error below. Traceback (most recent call last): File “manage.py”, line 21, in <module> main() File “manage.py”, line 17, in main …

Total answers: 2

TypeError: takes 0 positional arguments but 1 was given

TypeError: takes 0 positional arguments but 1 was given Question: Help me what am I making wrong here since am getting the below error, TypeError: fizz_buzz() takes 0 positional arguments but 1 was given class FizzBuzz: def __init__(self, number_value): self.number_value = number_value def fizz_buzz(): if number_value % 3 == 0 and number_value % 5 == …

Total answers: 6

"RuntimeError: generator raised StopIteration" every time I try to run app

"RuntimeError: generator raised StopIteration" every time I try to run app Question: I am trying to run this code: import web urls = ( ‘/’, ‘index’ ) if __name__ == “__main__”: app = web.application(urls, globals()) app.run() But it gives me this error everytime C:UsersaidkeDesktop>python app.py Traceback (most recent call last): File “C:UsersaidkeAppDataLocalProgramsPythonPython37-32libsite-packageswebutils.py”, line 526, in …

Total answers: 7