File types not recognised

PyCharm doesn't seem to be recognising file types. The files are in the paths specified in the code however it is not finding them.

 

0
5 comments

Sorry, I couldn't understand what the issue is exactly. Does your python script fail to open the .xls files? 

To make sure the issue is IDE-related, please try running the code from the terminal outside of the IDE and check if the issue persists.

0

Thankyou for your reply, 

Another colleague of mine can run the script via pycharm. So it seems to be an issue with my IDE configuration we believe, in relation to my file types. 

0
Could you please provide more information about the issue?

- What are the steps leading up to the issue?
- What is the expected and actual result?
- Please provide the whole error text
- Please attach some screenshots to demonstrate the issue
0

my colleague can run the script fine and it works from her PyCharm installation. But I get this error when I run it, so we think it must be something to do with IDE config.

0

The error doesn't seem related to the IDE. It seems that the Python runtime cannot find the file that you attempt to open from the code. 

Please try running your code from the terminal outside of the IDE using the same interpreter, and check if you get the same issue.
 
One way to do that is to copy the first line of the console output from PyCharm to the terminal.

You will need to activate your conda env beforehand: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment 

0

Please sign in to leave a comment.