xlwingsをMac用のExcel 2016(バージョン15.23.2)でMac(10.11.5)に使用しようとしていますが、かなり早く立ち往生します。xlwings runpythonのインストールに失敗しました
私は xlwingsが をインストールrunpython実行すると、私は次のエラーを取得する:
$ xlwings runpython install
Traceback (most recent call last):
File "/usr/local/bin/xlwings", line 7, in <module>
from xlwings.command_line import main
File "/Library/Python/2.7/site-packages/xlwings/command_line.py", line 22, in <module>
hfs_to_posix_path(app('Microsoft Excel').properties().get(k.templates_path))))
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 577, in __getattr__
selectortype, code = self.AS_appdata.referencebyname()[name]
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 259, in referencebyname
self.connect()
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 225, in connect
t = self._target = self._aemapplicationclass(**kargs)
File "/Library/Python/2.7/site-packages/aeosa/aem/__init__.py", line 76, in __init__
self._address = aemconnect.localapp(path, newinstance, hide)
File "/Library/Python/2.7/site-packages/aeosa/aem/aemconnect.py", line 187, in localapp
desc = _launchapplication(path, _runevent, newinstance, hide)
File "/Library/Python/2.7/site-packages/aeosa/aem/aemconnect.py", line 55, in _launchapplication
raise CantLaunchApplicationError(err.args[0], path)
aem.aemconnect.CantLaunchApplicationError: Can't launch application at u'/Applications/Microsoft Excel.app': The executable file is missing or has an unusable format. (-10827)
続行する方法上の任意のアイデア?
バージョン: のPython 2.7.10 xlwings(0.7.2) psutil(4.3.0) appscript(1.0.1)
私はMac上のオフィスのパス構造がWindowsと異なると思う。 – WombatPM
問題は解決された。私はxlwingsをrunpython installとして実行しようとしていたユーザーと関係があった。 – mccalm