Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whenever i Try to login to my trading account i got error result expired ... But it actually log me in To mt5 #22

Open
umerweb opened this issue Sep 11, 2024 · 4 comments

Comments

@umerweb
Copy link

umerweb commented Sep 11, 2024

Traceback (most recent call last):
File "/home/mehar-umer/PycharmProjects/pythonProject1/bot.py", line 14, in
initialize = mt5.initialize(login=account_no,password=password,server=server)
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/mt5linux/init.py", line 464, in initialize
return self.__conn.eval(code)
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/rpyc/core/netref.py", line 239, in call
return syncreq(self, consts.HANDLE_CALL, args, kwargs)
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/rpyc/core/protocol.py", line 744, in sync_request
return async_res.value
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/rpyc/core/async
.py", line 109, in value
self.wait()
File "/home/mehar-umer/PycharmProjects/pythonProject1/venv/lib/python3.8/site-packages/rpyc/core/async
.py", line 55, in wait
raise AsyncResultTimeout("result expired")
TimeoutError: result expired

@EKivutha
Copy link

Getting the same error on initialize

mt5.initialize()
Traceback (most recent call last):
File "", line 1, in
File "/config/.local/lib/python3.9/site-packages/mt5linux/init.py", line 464, in initialize
return self._conn.eval(code)
File "/config/.local/lib/python3.9/site-packages/rpyc/core/netref.py", line 240, in call
return syncreq(self, consts.HANDLE_CALL, args, kwargs)
File "/config/.local/lib/python3.9/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
File "/config/.local/lib/python3.9/site-packages/rpyc/core/protocol.py", line 473, in sync_request
return self.async_request(handler, *args, timeout=timeout).value
File "/config/.local/lib/python3.9/site-packages/rpyc/core/async
.py", line 100, in value
self.wait()
File "/config/.local/lib/python3.9/site-packages/rpyc/core/async
.py", line 49, in wait
raise AsyncResultTimeout("result expired")
TimeoutError: result expired

@umerweb
Copy link
Author

umerweb commented Sep 15, 2024

did you find any solution?

@EKivutha
Copy link

Use this
mt5.initialize(login=account_no,password=password,server=server)
don't equate to anything

@umerweb
Copy link
Author

umerweb commented Sep 28, 2024

It also didn't worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants