cluster = MongoClient(my_string, serverSelectionTimeoutMS=5000)
코드 이거 딱 한줄인데
Exception in thread pymongo_server_monitor_thread:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1052, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 989, in run
self._target(*self._args, **self._kwargs)
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 133, in _run
if not self._target():
^^^^^^^^^^^^^^
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 61, in target
monitor._run() # type:ignore[attr-defined]
^^^^^^^^^^^^^^
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 213, in _run
self._start_rtt_monitor()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 167, in _start_rtt_monitor
self._rtt_monitor.open()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 87, in open
self._executor.open()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 95, in open
thread.start()
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 971, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown
Exception in thread pymongo_server_monitor_thread:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1052, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 989, in run
self._target(*self._args, **self._kwargs)
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 133, in _run
if not self._target():
Exception in thread pymongo_server_monitor_thread:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1052, in _bootstrap_inner
^ ^self.run()^^
^ File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 989, in run
^^^^^^^^^
self._target(*self._args, **self._kwargs) File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 61, in target
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 133, in _run
monitor._run() # type:ignore[attr-defined]
if not self._target():
^^^ ^ ^^^^^^^^^^^^^^^^
^ File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 61, in target
^^^^^ ^monitor._run() # type:ignore[attr-defined]^
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 213, in _run
^^^^^ self._start_rtt_monitor()
^ File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 167, in _start_rtt_monitor
^^^^^^^^ self._rtt_monitor.open()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 213, in _run
self._start_rtt_monitor() File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 87, in open
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 167, in _start_rtt_monitor
self._executor.open()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 95, in open
self._rtt_monitor.open()
thread.start()
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\monitor.py", line 87, in open
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 971, in start
self._executor.open()_start_new_thread(self._bootstrap, ())
File "c:\Users\user\Desktop\코딩\MongoDB\MongoDB\Lib\site-packages\pymongo\periodic_executor.py", line 95, in open
RuntimeError: can't create new thread at interpreter shutdown
thread.start()
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 971, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown
이런 에러 나왔음. thread가 씨발 어딨는데.
pymongoDB 내부 쓰레드랑 python 내부 쓰레드랑 충돌한건가? 이런건 들어보.지도 못한 에러임 도와달라...
나도 파임선에서 몽고디비 연결햇는데 저런에러 안뜨던데