You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I've been getting an error while trying to run your project on my old MacBook Air A1466 (Intel CPU).
Code:
from API import XTB
login = xxxxxxx (7 digits, without quotes - on Windows PC it works even when login is in quotes)
haslo = "mypassword"
API = XTB(ID=login, PSW=haslo)
list = API.get_Candles("M1", "AUDUSD", qty_candles=10)
API.logout()
Error:
File "/Users/xxxxxxx/PycharmProjects/FX/API.py", line 573, in send
self.ws.send(msg)
^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'send'
It works perfectly on 3 different Windows laptops. Any ideas on what might be an issue?
The text was updated successfully, but these errors were encountered:
Got it. Seems like my error was due to a common SSL certificate verification issue on macOS when using Python. This happens because Python on macOS might not be able to locate or trust the root certificates that verify the SSL connection's authenticity.
How to fix that:
Locate the Install Certificates.command. This script should be included with your Python installation likely in the Applications/Python folder.
B3ndek
changed the title
Can your project run on macOS?
Can your project run on macOS? (self solved)
Mar 26, 2024
Hi there! I've been getting an error while trying to run your project on my old MacBook Air A1466 (Intel CPU).
Code:
Error:
It works perfectly on 3 different Windows laptops. Any ideas on what might be an issue?
The text was updated successfully, but these errors were encountered: