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

Sharepoint path.name returning all lower case causing a conflict with conditional to book_name #1813

Closed
jreyenga opened this issue Feb 6, 2022 · 1 comment
Labels
Milestone

Comments

@jreyenga
Copy link

jreyenga commented Feb 6, 2022

OS (e.g. Windows 10 or macOS Sierra)

Win 10

Versions of xlwings, Excel and Python (e.g. 0.11.8, Office 365, Python 3.7)

0.26.1, Excel 2201, Python 3.8.8

Describe your issue (incl. Traceback!)

Similar but different to issue #1810
I found that when in our sharepoint environment (previous issue was in our onedrive environment that ended in .us) despite defining path in xlconfig, it could not find the workbook. It appears that "path.name" in utils.py was returning a bookname all in lower case and comparing to a bookname that had capitalization.

I was able to fix by modifying line 480 in my code (479 in the unmodified 0.26.1 version) to convert both strings to ".lower()"

After this fix and issue #1810 fix I'm able to use XLwings in both our onedrive and sharepoint environments.
Capture

@fzumstein fzumstein added this to the 0.26.2 milestone Feb 7, 2022
fzumstein added a commit that referenced this issue Feb 7, 2022
@fzumstein
Copy link
Member

Good catch and thanks for submitting both issues! Good to see that this crazy hack sort of works. Both fixes will be in 0.26.2.

@fzumstein fzumstein added the bug label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants