Es ist eine grundlegende Frage, denke ich.
Ich kann mein Programm in Pycharm 2018.1 Python 3.6.5 ausführen. Wenn ich jedoch im Debug -Modus aussieht und die Python -Konsole öffne, erhalte ich diese Fehlermeldung, wenn ich versuche, in einem Python -Befehl zu tasten. < /p>
Ich verwende virtualenv und habe Interpreter in der Projekteinstellung hinzugefügt. < /p>
Ich frage mich, was mit meiner Konfiguration falsch ist.
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 362, in get_interpreter
interpreterInterface = getattr(__builtin__, 'interpreter')
AttributeError: module 'builtins' has no attribute 'interpreter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1443, in do_it
result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 467, in console_exec
need_more = exec_code(CodeFragment(expression), updated_globals, frame.f_locals, dbg)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 383, in exec_code
interpreterInterface = get_interpreter()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 364, in get_interpreter
interpreterInterface = InterpreterInterface(None, None, threading.currentThread())
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console.py", line 24, in __init__
self.interpreter = get_pydev_frontend(host, client_port)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 461, in get_pydev_frontend
_PyDevFrontEndContainer._instance = _PyDevFrontEnd()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 310, in __init__
self.ipython = PyDevTerminalInteractiveShell.instance()
File "/Users/hobart/envs/pys/lib/python3.6/site-packages/traitlets/config/configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "/Users/hobart/envs/pys/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 430, in __init__
super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
File "/Users/hobart/envs/pys/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 516, in __init__
self.init_completer()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 234, in init_completer
self.Completer = self._new_completer_500()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 196, in _new_completer_500
parent=self
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 87, in __init__
self.matchers.remove(self.python_matches)
ValueError: list.remove(x): x not in list
Es ist eine grundlegende Frage, denke ich. Ich kann mein Programm in Pycharm 2018.1 Python 3.6.5 ausführen. Wenn ich jedoch im Debug -Modus aussieht und die Python -Konsole öffne, erhalte ich diese Fehlermeldung, wenn ich versuche, in einem Python -Befehl zu tasten. < /p>
Ich verwende virtualenv und habe Interpreter in der Projekteinstellung hinzugefügt. < /p>
Ich frage mich, was mit meiner Konfiguration falsch ist.[code]Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 362, in get_interpreter interpreterInterface = getattr(__builtin__, 'interpreter') AttributeError: module 'builtins' has no attribute 'interpreter' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1443, in do_it result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg) File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 467, in console_exec need_more = exec_code(CodeFragment(expression), updated_globals, frame.f_locals, dbg) File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 383, in exec_code interpreterInterface = get_interpreter() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py", line 364, in get_interpreter interpreterInterface = InterpreterInterface(None, None, threading.currentThread()) File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console.py", line 24, in __init__ self.interpreter = get_pydev_frontend(host, client_port) File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 461, in get_pydev_frontend _PyDevFrontEndContainer._instance = _PyDevFrontEnd() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 310, in __init__ self.ipython = PyDevTerminalInteractiveShell.instance() File "/Users/hobart/envs/pys/lib/python3.6/site-packages/traitlets/config/configurable.py", line 412, in instance inst = cls(*args, **kwargs) File "/Users/hobart/envs/pys/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 430, in __init__ super(TerminalInteractiveShell, self).__init__(*args, **kwargs) File "/Users/hobart/envs/pys/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 516, in __init__ self.init_completer() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 234, in init_completer self.Completer = self._new_completer_500() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 196, in _new_completer_500 parent=self File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 87, in __init__ self.matchers.remove(self.python_matches) ValueError: list.remove(x): x not in list [/code]
Ich verwende FastAPI mit Redis und RQ für die Verarbeitung von Hintergrundaufgaben. Wenn ich versuche, den RQ-Worker mit dem folgenden Befehl zu starten:
rq worker --url task_queue
Ich mache den folgenden Code auf einem Windows -PC. Ich habe gelesen, dass Windows standardmäßig nur 64 Sockets in der Asyncio -Schleife verwenden kann. Ich weiß nicht, ob dies der Grund für den...
Ich habe ein Stück Code, das bis letzte Woche gut funktioniert hat, aber jetzt fehlschlägt es mit dem folgenden Fehler:
AttributeError: Modul 'Fiona' hat kein Attribut 'Path'
Ich habe...