Skip to content

Can your project run on macOS? (self solved) #9

Description

@B3ndek

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions