3

enter image description hereI am executing a python code with boto3 and runs successfully in the mac terminal but when i try to run it on IntelliJ J i see errors.

Several posts say that i need a project interpreter and i tried the below

  1. added a python plugin
  2. added project interpreter
  3. aws connectivity
  4. ran code from terminal and it executes just fine

Screen shots:

enter image description here

sve
  • 393
  • 1
  • 2
  • 15

2 Answers2

0

I recently had this issue with python facet in a project that was setup for kotlin. Not sure if this helps but this is what I did to get things working

  • Verified the python SDK was setup without issues (no red line in Project Structure -> SDKs).
  • Reinstalled the python plugin.
  • Updated IntelliJ to latest version (I think 'Invalidate cache / Restart...' would have worked as well)
  • Once I opened the project again I saw IntelliJ recognized that it was a python project and created a python facet.
  • [may or may not be useful for your project] I also added python interpreter to my module under Project Structure -> Modules -> [my module]. So I now have both Kotlin and Python interpreters.

I'm sure you have probably resolved this by now but maybe helpful to someone.

Ani Menon
  • 27,209
  • 16
  • 105
  • 126
Ynot
  • 561
  • 4
  • 10
0

I had to upgrade IntelliJ version, and then I started seeing Python Interpreter. I am now at 2022.1.3

Akshayakp
  • 1
  • 1
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 28 '22 at 09:22