Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kunt-dev opened this issue Jul 2, 2023 · 2 comments
Labels

Comments

@Kunt-dev
Copy link

Kunt-dev commented Jul 2, 2023

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 Kunt-dev added the bug label Jul 2, 2023
@welcome
Copy link

welcome bot commented Jul 2, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

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! 👋

Welcome to the Jupyter community! 🎉

@JasonWeill
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants