-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Don't require to set the PYTHONPATH when working with OneDrive #1275
Comments
Does a quickstart sample work? |
Strangely enough a new clean sheet starting with udfs from scratch does work. But any existing sheet does not. Also not the 4 xlwings examples. |
Do you have a value for |
I did some more testing and even a brand new workbook and .py file (with same name and location) gives me the same error message now. I have not done any updates to my Windows or Office that I am aware of. Are there other things I can do to help finding to find the source of this problem? |
What I actually meant is to doulbe check your config in the Ribbon and/or config files: https://docs.xlwings.org/en/stable/addin.html |
I have not changed my configuration in the Ribbon since I start using xlwings. I double checked but all locations are correct. UDFs used to work without specifying the UDF modules in the Ribbon. I did try to specify it explicitly but that didn't help. This is my .xlwings\xlwings.conf file if that helps: "C:\Users\rober\Anaconda3\python.exe","" |
Looks like I found the issue, it seems to have something to do with Onedrive. Since I've moved my files from Onedrive to my local C: drive, everything works fine again. After moving them back to Onedrive, same problems. This is quite annoying as I use Onedrive all the time to use files on both my laptop and desktop. Any idea what I need to change to Onedrive to get this fixed? |
Can you please check if you get the same behaviour with 0.18? You will need to upgrade both the add-in and the Python package. |
I've upgraded de add-in and tried to upgrade the package using pip. In
Pycharm I still see 0.17.1 though instead 0.18. Also installing xlwings
via Pycharm directly only gets me to 0.17.1. Got the below screen when
using pip:
![afbeelding](https://user-images.githubusercontent.com/47296978/76863760-4c088f80-6860-11ea-84aa-bd0ac6ad5bc8.png)
…------ Original Message ------
From: "Felix Zumstein" <notifications@github.com>
To: "xlwings/xlwings" <xlwings@noreply.github.com>
Cc: "RobertvanLoon" <robert@vanloon.training>; "Author"
<author@noreply.github.com>
Sent: 16/03/2020 22:00:15
Subject: Re: [xlwings/xlwings] Yesterday no problems, today
ModuleNotFoundError (#1275)
Can you please check if you get the same behaviour with 0.18? You will
need to upgrade both the add-in and the Python package.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI3DUTOV2GRIHH5W6TX36DRH2HN7ANCNFSM4LHI5MAA>.
|
you are on anaconda so might have installed xlwings previously via conda? best would be to clean up first via |
Ok that clean-up worked. Have 0.18 installed now. But the Onedrive issue
is still there unfortunately.
I'm trying out a couple different things to see if it works, but so far
no luck.
…------ Original Message ------
From: "Felix Zumstein" <notifications@github.com>
To: "xlwings/xlwings" <xlwings@noreply.github.com>
Cc: "RobertvanLoon" <robert@vanloon.training>; "Author"
<author@noreply.github.com>
Sent: 17/03/2020 15:07:05
Subject: Re: [xlwings/xlwings] Yesterday no problems, today
ModuleNotFoundError (#1275)
you are on anaconda so might have installed xlwings previously via
conda? best would be to clean up first via pip uninstall xlwings and
conda remove xlwings, then try again with conda install -c conda-forge
xlwings.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI3DURMF3TNWAQGV6GJLY3RH57YTANCNFSM4LHI5MAA>.
|
One thing I noticed is that your config file looks a bit funny, i.e. wrong e.g. with the PYTHONPATH. Can you cut it down to the following:
and try again? |
Looks like we're getting closer. But when I run xlwings I get error
messages from which it looks like I have to reinstall all my packages
like nump, scipy, matplotlib etc. Previously I have always installed
packages through Pycharm. And I still see those packages as installed in
Pycharm.
…------ Original Message ------
From: "Felix Zumstein" <notifications@github.com>
To: "xlwings/xlwings" <xlwings@noreply.github.com>
Cc: "RobertvanLoon" <robert@vanloon.training>; "Author"
<author@noreply.github.com>
Sent: 17/03/2020 15:50:47
Subject: Re: [xlwings/xlwings] Yesterday no problems, today
ModuleNotFoundError (#1275)
One thing I noticed is that your config file looks a bit funny, i.e.
wrong e.g. with the PYTHONPATH. Can you cut it down to the following:
"CONDA ENV","base"
"CONDA BASE","C:\Users\rober\Anaconda3"
and try again?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI3DUVEKM5QUMYKTUIMQDLRH6E4PANCNFSM4LHI5MAA>.
|
While you can install them with PyCharm, you will always install them into one of the conda environments. Are they installed in the |
A partial hurray! 0.18 is properly installed and working with files on
Onedrive works on my desktop now. But for some reason not on my laptop
yet where I have done the same upgrade to 0.18. Also have same links to
conda in the ribbon.
…------ Original Message ------
From: "Felix Zumstein" <notifications@github.com>
To: "xlwings/xlwings" <xlwings@noreply.github.com>
Cc: "RobertvanLoon" <robert@vanloon.training>; "Author"
<author@noreply.github.com>
Sent: 17/03/2020 17:10:38
Subject: Re: [xlwings/xlwings] Yesterday no problems, today
ModuleNotFoundError (#1275)
While you can install them with PyCharm, you will always install them
into one of the conda environments. Are they installed in the base
environment where you are pointing xlwings to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI3DUXZR554FKS6DB5QQBTRH6OH5ANCNFSM4LHI5MAA>.
|
Actually, for now you'll need to set the |
or if you are on business: |
Hooray! Everything is working fine again now. Thanks a lot for your help
and patience! Much appreciated.
…------ Original Message ------
From: "Felix Zumstein" <notifications@github.com>
To: "xlwings/xlwings" <xlwings@noreply.github.com>
Cc: "RobertvanLoon" <robert@vanloon.training>; "Author"
<author@noreply.github.com>
Sent: 18/03/2020 12:04:11
Subject: Re: [xlwings/xlwings] Yesterday no problems, today
ModuleNotFoundError (#1275)
Actually, for now you'll need to set the PYTHONPATH when you use
OneDrive to something like %ONEDRIVE%\yourproject.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI3DURXQTD3UNXRGT5P2ULRICTCXANCNFSM4LHI5MAA>.
|
I must have thought it's obvious when I fixed it, but it's obviously not - will try to document that soonish. |
Windows 10, xlwings 0.17.1, Office 365, Python 3.7
Until yesterday my xlwings was working perfectly fine. This morning when I opened up the same spreadsheet I worked on the night before I got this error message:
I did not change anything to any settings. The same issue appears on my desktop and my laptop. I've tried different sheets, all have the same problem. I am 100% sure the spreadsheet has the same name, and is in the same location, as the corresponding .py file.
Any idea what is going on? Help is much appreciated!
Thanks.
The text was updated successfully, but these errors were encountered: