Hello,
Not able to execute code on Mac due the Microsoft is not available. below is error.
kailashyadav@Kailashs-MacBook-Pro Dhancodebase % python3 Dhan_codebaseusage.py
Mibian requires scipy to work properly
-----Logged into Dhan-----
This BOT Is Picking New File From Dhan
Got the instrument file
Local application 'Microsoft Excel.app' not found.
Traceback (most recent call last):
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 15, in _findapp
return findapplicationforinfo(b'????', id, name)
aem.ae.MacOSError: -10814
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 47, in byname
name = _findapp(name)
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 18, in _findapp
raise ApplicationNotFoundError(name or id) from err
aem.findapp.ApplicationNotFoundError: Local application 'Microsoft Excel' not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 15, in _findapp
return findapplicationforinfo(b'????', id, name)
aem.ae.MacOSError: -10814
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/kailashyadav/Documents/Trading_automation/Dhan/Dhancodebase/Dhan_Tradehull.py", line 49, in __init__
self.wb = xw.Book("Websocket.xlsx")
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/xlwings/main.py", line 932, in __init__
app = App(add_book=False)
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/xlwings/main.py", line 312, in __init__
self.impl = engines.active.apps.add(
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/xlwings/main.py", line 211, in add
return App(impl=self.impl.add(**kwargs))
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/xlwings/_xlmac.py", line 158, in add
return App(spec=spec, add_book=add_book, visible=visible)
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/xlwings/_xlmac.py", line 176, in __init__
self._xl = appscript.app(
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/appscript/reference.py", line 821, in __call__
return self._appclass(*args, **kargs)
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/appscript/reference.py", line 756, in __init__
constructor, identifier = 'path', aem.findapp.byname(name)
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 51, in byname
name = _findapp(name + '.app')
File "/Users/kailashyadav/Library/Python/3.9/lib/python/site-packages/aeosa/aem/findapp.py", line 18, in _findapp
raise ApplicationNotFoundError(name or id) from err
aem.findapp.ApplicationNotFoundError: Local application 'Microsoft Excel.app' not found.
> /Users/kailashyadav/Documents/Trading_automation/Dhan/Dhancodebase/Dhan_codebaseusage.py(15)<module>()
-> tsl.get_intraday_data('ACC','NSE',1)