-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Allow different versions of xlwings to coexist (regarding dll) #743
Comments
If you set your interpreter to the path of a virtual/conda env, it should be using the dlls that are part of that environment so it should work without renaming. Or are you doing sth differently? |
Xlwings is used in addition to another addin relying on xlwings and if the
version of xlwings differs this issue occurs (even in different venv of
course).
…On Wed, Aug 23, 2017, 21:11 Felix Zumstein ***@***.***> wrote:
If you set your interpreter to the path of a virtual/conda env, it should
be using the dlls that are part of that environment so it should work
without renaming. Or are you doing sth differently?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#743 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHPX_cr-cY3gRQ5AzguSDwfHAaEpfNmNks5sbHlXgaJpZM4O_tif>
.
|
what stops you from upgrading xlwings across the board? I don't think there were a lot of breaking changes from 0.10 to 0.11 |
It is indeed planned and we have a workaround for now but I think it would
be nice to be able to use different version of xlwings addin side by side.
…On Wed, Aug 23, 2017, 21:54 Felix Zumstein ***@***.***> wrote:
what stops you from upgrading xlwings across the board? I don't think
there were a lot of breaking changes from 0.10 to 0.11
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#743 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHPX_d5nUhtt-GK-iUq3Fu1U7N0AMTg0ks5sbIOMgaJpZM4O_tif>
.
|
Moreover, in previous versions the xlwings module was in the workbook. Hence i you have lot of copies of the workbook that you want to be able to reopen occasionally but are not worth to migrate, it should be possible to isolate xlwings, i.e. the loaded dll as the rest (vba module and Python env/code) is already isolated, across workbooks.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Colin Bounouar <notifications@github.com>
Date: 8/23/17 21:59 (GMT+01:00)
To: ZoomerAnalytics/xlwings <xlwings@noreply.github.com>
Cc: "de Menten Sébastien (Electrabel)" <sebastien.dementen@engie.com>, Author <author@noreply.github.com>
Subject: Re: [ZoomerAnalytics/xlwings] Allow different versions of xlwings to coexist (regarding dll) (#743)
It is indeed planned and we have a workaround for now but I think it would
be nice to be able to use different version of xlwings addin side by side.
On Wed, Aug 23, 2017, 21:54 Felix Zumstein ***@***.***> wrote:
what stops you from upgrading xlwings across the board? I don't think
there were a lot of breaking changes from 0.10 to 0.11
-
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#743 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHPX_d5nUhtt-GK-iUq3Fu1U7N0AMTg0ks5sbIOMgaJpZM4O_tif>
.
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#743 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABPpdvc4foO3B2InNyM1n-DLAC4gXZ2pks5sbIShgaJpZM4O_tif>.
ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/
|
I have a hard time to follow. can you describe in details the simplest setup that leads to a conflict? |
To reproduce the issue:
So, my conclusion (may be wrong) is that we need to differentiate the name of the DLL per version to avoid the issue with Excel "caching" the DLL by name. I have tested this fix by renaming both the dll in the folder and the dll in the xlwings.bas module and it solves the issue. Is it clearer ? |
yes makes sense now, will look into it. |
Tx a lot Felix! |
Currently, having workbooks using different versions of xlwings is not possible due to xlwingsNN.dll that are different per versions but share the same name (error = "BAD DLL convention...")
Could it be possible to version the dll so that it is possible to use different workbooks with each their own virtual/conda env using different versions of xlwings ?
versioning in the sense: xlwings32.dll => xlwings32.0.10.4.dll
Would this solve the issue ? would this create other issues ?
The text was updated successfully, but these errors were encountered: