Skip to content

Your Conda version seems to be too old for the Conda Settings. Use the Interpreter setting instead. #1389

@zxcvb2000

Description

@zxcvb2000

Windows 10
xlwings 0.20.2
Excel 2019
Python 3.8.5

Hi, I've just done a new install of xlwings. I ran the standard "xlwings addin install" and "xlwings quickstart myproject". When I open "myproject" and click "Run Main" it works fine and "Hello xlwings!" appears.

However, when I run "Import Function" I get the Microsoft Excel error: "Your Conda version seems to be too old for the Conda Settings. Use the Interpreter setting instead."

This laptop has never had Conda installed. I've tried restarting and re-installing and modifying Interpreter paths and UDF Modules etc.

Thanks for your help

image

import xlwings as xw

@xw.sub  # only required if you want to import it or run it via UDF Server
def main():
    wb = xw.Book.caller()
    sheet = wb.sheets[0]
    if sheet["A1"].value == "Hello xlwings!":
        sheet["A1"].value = "Bye xlwings!"
    else:
        sheet["A1"].value = "Hello xlwings!"


@xw.func
def hello(name):
    return "hello {0}".format(name)


if __name__ == "__main__":
    xw.Book("myproject.xlsm").set_mock_caller()
    main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions