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
With version 0.7.2, I get this error when I attempt to xlwings.Workbook.caller() #498
Comments
Does this happen when you call the script via |
When I call RunPython. |
When you download and unzip the fibonacci Lite sample from the homepage, do you get the same behavior? |
I have not tried that. It used to work fine with prior version I think 0.6.4. When I upgraded to 0.7.2 it stopped. May be I'll just go back. What could be causing this type of issue? |
Make sure to also upgrade the xlwings VBA module... |
I did that too. |
it's hard to tell what's going on. Knowing if a clean fibonacci sample works would help. Also, what version of Excel are you using? |
Hi Guys We get the same issue. However, in our case, there is only 3 command line arguments:
I have created a little workaround for now. In file main.py Class Workbook I have edited the caller(cls) class method and added lines as follows:
I believe this is a bug. As the code clearly expect more command line paramters which are not being provided. Looking forward to it being fixed. Kind Regards |
are you sure you're running the same version of the VBA module as the Am 19.07.2016 2:48 nachm. schrieb "nerdnum" notifications@github.com:
|
Will get back to you. On 19 July 2016 at 19:54, Felix Zumstein notifications@github.com wrote:
|
Deleted and reimported xlwings.bas and it is now working without my mod. Thanks On 20 July 2016 at 09:51, Louis Becker louis.h.becker@gmail.com wrote:
|
I downloaded fibonaci sample from the home page and got the same error message:ErrorTraceback (most recent call last): File "", line 1, in File "c:\users\test\downloads\fibonacci.py", line 28, in xl_fibonacci
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings\main.py", line 236, in caller
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings_xlwindows.py", line 142, in get_open_workbook
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings_xlwindows.py", line 124, in get_duplicate_fullnames
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings_xlwindows.py", line 96, in get_xl_apps
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings_xlwindows.py", line 73, in get_xl_app_from_hwnd
File "C:\Users\test\AppData\Local\Continuum\Anaconda2\lib\site-packages\win32com\client\dynamic.py", line 527, in getattr
AttributeError: .Application Press Ctrl+C to copy this message to the clipboard.OK |
@ededovic do you have v0.7.2 installed?
|
Closing this due to inactivity. feel free to reopen. |
Thanks for attending to the issue. I think the new version 0.9+ has somehow addressed this issue. I've been using it for the past several weeks, and it works fine. |
I have that issue when I got some ghosts excel instances. |
I am having this issue after updated the version to 15. My other computer had 11.8 and it is working fine. |
@idahopotato1 please run "xlwings runpython install" if you are on mac to fix this. |
I am on windows. |
Can you please share code and traceback? |
I tried the fibonacci sample and got the same thing. ErrorTraceback (most recent call last): File "", line 1, in File "...\downloads\fibonacci\fibonacci.py", line 28, in xl_fibonacci
File "...\AppData\Local\Continuum\anaconda3\lib\site-packages\xlwings\main.py", line 570, in caller
Exception: Workbook.caller() must not be called directly. Call through Excel or set a mock caller first with Book.set_mock_caller(). Press Ctrl+C to copy this message to the clipboard.OK |
is there anyway I can go back to 11.8 version? Thank you so much. I have a lot of things in the work and really need this to work for now. :) |
|
sorry about all the troubles. But it says the following. Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1056)'))': /packages/64/27/4068e0abbc2753a13fa0d7eccb502f61b80128c449e501018d2af20eeb70/xlwings-0.11.8.tar.gz |
this is a pip issue, download from pypi directly, then say |
I was able to go back with conda install xlwings==0.11.8 |
Everything works now. Thank you so much for your quick response. I really like your product. |
I am not aware of an issue with the latest version. was the add-in the same version as the python package? |
I did try xlwings addin update a couple of times. Now I know how to fix the problem, I can try a few different things to reproduce it if that helps. |
2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)]
xlwings version: 0.7.2, path: 'C:\Users\hidden\AppData\Local\Continuum\Anaconda2\lib\site-packages\xlwings'
This is trace back of the error:
Error
OK
The text was updated successfully, but these errors were encountered: