ironpython

How to use IronPython with App.Config?

狂风中的少年 提交于 2019-12-20 11:28:13
问题 I have a class library that is usually called from a .net console or web application. It integrates with various components, and relies on an app.config or web.config. If I want to utilise the class library from script (i.e. IronPython), how can I get the script to utilise the config file? Ideally I want to be able to choose the config file when I run the script, or by convention (config file sitting alongside the script file). I don't want to change the ipy.exe.config if possible as this

How to use IronPython with Visual Studio 2008

回眸只為那壹抹淺笑 提交于 2019-12-20 08:47:01
问题 I've tried using the IronPython integration extension provided by Microsoft. But it does not work with Visual Studio 2008. Is there a proper VS 2008 IDE extension for IronPython? 回答1: For IronPython 1.1 support (whose syntax mirrors CPython 2.4), I successfully built and installed the sample from the Visual Studio 2008 SDK 1.0 with the Professional Edition of Visual Studio 2008 SP1. It will work with any edition from Standard up to Team Suite. It definitely won't work with Express Edition due

IronPython integration with C#/ .NET

有些话、适合烂在心里 提交于 2019-12-20 06:17:19
问题 So I'm trying to develop this application that will get a captcha image from an website and try to decode it so I can fill the captcha input text with the resulted text after I decode the picture. I want to use the solution I found here: http://www.wausita.com/captcha/ So, before trying to integrate it in my main application I tried to integrate it in a simple console application: using System; using System.Collections.Generic; using System.Linq; using System.Text; using IronPython.Hosting;

Animating Data Changes in Tibco Spotfire

本秂侑毒 提交于 2019-12-20 03:32:25
问题 This is my first post here, so please forgive me if I fail at etiquette somewhere along the way. I am working on a POC dealing with animating a visualization within Tibco Spotfire 7.0 which will allow a user to see changes in data over time by iterating through a set of filters or by iterating through alterations to the data based on a pre-determined set of conditions. TIBCOmmunity already defines a custom tool for this purpose http://tibcoanalytics.com/spotfire/archive/totw/2011-01-16.html.

Working with PTVS, IronPython and MongoDB

喜你入骨 提交于 2019-12-20 03:08:48
问题 I want to develop an applocation using the PTVS (Python Tools for Visual Studio) and i download the PTVS pluging and IronPython for Visual Studio 2012, it works perfectly. My question here is, Can i use MongoDB with PTVS and ItonPython? If i can, how can i do it? I already tried to install it by clicking on Install Python Package , but every time ask me to install pip and fails on install. Then of course the command pip install pymongo fails because pip is not installed. Here is the error:

Is there a good IDE for building GUI apps with Python [closed]

随声附和 提交于 2019-12-19 20:05:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am a beginner programmer and have learned most of what I know thus far from using delphi for the past couple of months. A month or so back I decided to give python a try as I was told it may be easier to learn and I really like the language. I guess I just seem to pick things up easier using it. The only

How do I create a C# event handler that can be handled in IronPython?

折月煮酒 提交于 2019-12-19 10:27:19
问题 How do I create a C# event handler that can be handled in IronPython? Note that I am using IronPython 2.0.1. I am able to handle events from system classes with no problems (eg Window.KeyDown) but when I try to define my own C# event an exception is raised when I attempt to hook it from IronPython. The exception thrown is ArgumentTypeException and it has the message "cannot add to private event". The message seems odd considering the event I am trying to hook is public. My C# class looks like

Python for .NET: Using same .NET assembly in multiple versions

血红的双手。 提交于 2019-12-19 09:22:14
问题 My problem: I have an assembly in 2 versions and want to use them at the same time in my Python project. The .NET libs are installed in GAC (MSIL), having the same public token: lib.dll (1.0.0.0) lib.dll (2.0.0.0) In Python I want something like that: import clr clr.AddReference("lib, Version=1.0.0.0, ...") from lib import Class myClass1 = Class() myClass1.Operation() *magic* clr.AddReference("lib, Version=2.0.0.0, ...") from lib import class myClass2 = Class() myClass2.Operation() myClass2

How come my program can connect to a nonexistent website?

无人久伴 提交于 2019-12-19 08:46:27
问题 I am new to python and network programming and I am having trouble with a simple program. I am basically opening a connection to a nonexistent website and somehow it seems that the connection succeeds. Moreover, I get a 200 return code which means the http server has responded that it exists and the connection is OK. Here's the relevant part of my code: import httplib conn = httplib.HTTPConnection("Nonexistentsite.com", 80) conn.request("GET","/") r = conn.getresponse() print r.status, r

How come my program can connect to a nonexistent website?

假如想象 提交于 2019-12-19 08:44:19
问题 I am new to python and network programming and I am having trouble with a simple program. I am basically opening a connection to a nonexistent website and somehow it seems that the connection succeeds. Moreover, I get a 200 return code which means the http server has responded that it exists and the connection is OK. Here's the relevant part of my code: import httplib conn = httplib.HTTPConnection("Nonexistentsite.com", 80) conn.request("GET","/") r = conn.getresponse() print r.status, r