Share via

python module error in power automate desktop

Anonymous
2024-09-19T14:42:52+00:00

i am trying to execute below part of my python script in power automate desktop


importing the pandas library

import pandas as pd

DataFile = "filepath";

#Reading Excel Files

test_data = pd.read_excel(DataFile);


however it is giving error "C:\Program Files\Python311\Lib\site-packages\pandas\__init__.py", line 1

    from __future__ import annotations ^SyntaxError: future feature is not defined:annotations"

tried searching on google it was showing future annotations supported for python >=3.7 and i am using python 3.11.9

I have already given the module path in power automate desktop but still unable to resolve the error.

Also I have a doubt that in power automate desktop the option to select python version is showing 2.7 and 3.4 only and there is no option to upgrade. Is it because of that?

can anyone please help me on this? or is there any other alternative i can try (i have to use pandas only because of requirement)

Microsoft 365 and Office | Install, redeem, activate | For education | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-09-19T15:28:20+00:00

    Hi anmol verma,

    Thanks for posting in the community.

    We would love to help you with your query, however, since it is related to the Power Automate desktop app, and we have a specific channel Power Automate Communitycoping with such questions, I recommend you post a new thread there for expert help.

    Sorry that our category may have limited resources on checking on your concern further.

    Thanks for your understanding.

    George | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments