Skip to content

Commit

Permalink
switch to use multiprocess to avoid awkward initialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgolec committed Jul 5, 2024
1 parent 5a68b16 commit a896e62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schwab/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import httpx
import json
import logging
import multiprocessing
import multiprocess
import os
import psutil
import queue
Expand Down Expand Up @@ -303,9 +303,9 @@ def client_from_login_flow(api_key, app_secret, callback_url, token_path,
callback_port = parsed.port if parsed.port else 443
callback_path = parsed.path if parsed.path else '/'

output_queue = multiprocessing.Queue()
output_queue = multiprocess.Queue()

server = multiprocessing.Process(
server = multiprocess.Process(
target=__run_client_from_login_flow_server,
args=(output_queue, callback_port, callback_path))

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'authlib',
'flask',
'httpx',
'multiprocess',
'prompt_toolkit',
'psutil',
'python-dateutil',
Expand Down

0 comments on commit a896e62

Please sign in to comment.