Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cpython interpretter / IronPython interpretter No module named clr

i'm using IronPython and i want to create some windows form, i want to create a windows form with some button, and i want to do this in visual studio with iron python, i'm using visual studio 2012 integrated edition, each time i create an "ironpython windows form" project, when i want to run it, it says:

The project is currently set to use the .NET debugger for IronPython debugging but the project is configured to start with a CPython interpreter. To fix this change the debugger type in project properties->Debug->Launch mode

when i change debugger to Standard Python Launcher, it says:

ImportError: No module named clr

what should i do?

like image 302
light-blue Avatar asked Oct 16 '12 01:10

light-blue


1 Answers

I got the same error and resolved it with these steps:

I changed the project properties General>Interpreter to IronPython 2.7 Debug>Launch mode to IronPython(.NET) launcher

At first I didn't see IronPython as an interpreter option to select from. I added the path to IronPython installation to my Path System variable, restarted Visual Studio and it worked.

like image 155
deetee Avatar answered Sep 30 '22 11:09

deetee