jupyterlab-desktop icon indicating copy to clipboard operation
jupyterlab-desktop copied to clipboard

JupyterLab does not prompt for permission to control other applications using xlwings on M2 mac

Open Kunt-dev opened this issue 2 years ago • 2 comments

Description

I am experiencing an issue where JupyterLab does not prompt for permission to control other applications when using xlwings on my M2 macbook pro. This issue prevents me from accessing and modifying other files through xlwings within JupyterLab. This issue does not occur, when using VS Code, which prompts the permission and allows to write "Hello world" in the first cell in excel. Screenshot 2023-07-02 at 21 16 05

Reproduce

To reproduce the issue, please follow these steps:

  1. Launch JupyterLab on macOS.
  2. Execute the following code snippet in a Jupyter notebook:
import xlwings as xw

# Start Excel
app = xw.App()

# Create a new workbook
wb = xw.Book()

# Add some data to the first cell of the first sheet
wb.sheets[0]['A1'].value = "Hello, world!"

# Save and close
wb.save('Test.xlsx')
wb.close()

# Quit Excel
app.quit()

Context

  • Operating System and version: Ventura 13.4.1 (M2 Pro)
  • JupyterLab-Desktop version:3.6.1
  • Installer: dmg
Troubleshoot Output
CommandError: Command failed:
		OSERROR: -1743
		MESSAGE: The user has declined permission.
		COMMAND: app(pid=4029).count(each=k.workbook)
Browser Output (required for interface issues after loading)
Paste the output from the DevTools JavaScript console here, if applicable.
Logs (required for issues with loading, server and startup)
Paste the logs from the `main.log` file here (optionally also from `renderer.log`).

Kunt-dev avatar Jul 02 '23 19:07 Kunt-dev

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Jul 02 '23 19:07 welcome[bot]

Related issue: #667 (JupyterLab Desktop doesn't ask for permission to access the camera).

JasonWeill avatar Jul 11 '23 16:07 JasonWeill