[Python.NET] compiling for .NET CLR4, Python 2.7

2012-10-30 Thread John Burkhart
Hello, I'm new to .NET and just trying to make available a few .NET dll files for an application I would *like* to build in CPython. I'm trying to use pythonnet for the task as I would prefer not to use IronPython. I have Python 2.7 installed on a 64bit Windows 7 PC. I have managed to get the lat

[Python.NET] compiling for .NET CLR4, Python 2.7

2012-11-01 Thread John Burkhart
Thanks for the reply. I only have Visual Studio 2012 available to me... is there a setting somewhere I could play with? I'm new to working with MS Windows and VS... Thank you! _ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org

Re: [Python.NET] compiling for .NET CLR4, Python 2.7

2012-11-01 Thread John Burkhart
bution of CPython 2.6 (which caused me > the most trouble) and CPython 2.7. I stopped working on it as I could only > get 2.7 to see the PythonNet module. I'm curious what answers you come up > with as I would still love to get this to work on my machine. > > Thomas > >

Re: [Python.NET] compiling for .NET CLR4, Python 2.7

2012-11-02 Thread John Burkhart
, john On Thu, Nov 1, 2012 at 9:54 AM, John Burkhart wrote: > Interesting finding... > > I just uninstalled EPD (Enthought Python Distribution) and installed > vanilla Python 2.7 > > So far it seems all is working. > > > On Tue, Oct 30, 2012 at 9:39 PM, Thomas Stanle

Re: [Python.NET] compiling for .NET CLR4, Python 2.7

2012-11-02 Thread John Burkhart
2, 2012 at 9:30 AM, John Burkhart wrote: > Hello, > > I have a request into Enthought for some insight on why I would get an > "ImportError" for the site module. > > They've asked that I pose a question to the pythonnet group, and whether > anyone knows what

[Python.NET] pythonnet and numpy

2012-11-02 Thread John Burkhart
Hello, As mentioned in the other thread, I have built pythonnet with VS2012 for a 64-bit Python installation and using .NET 4 assemblies. Things seem to work well. However, I just tried to `import numpy` and all hell broke loose... the reason I pursued pythonnet was because I thought it would all

Re: [Python.NET] PythonDotNet Digest, Vol 103, Issue 4

2012-11-04 Thread John Burkhart
your path or current directory. > > Multiple or incompatible dynamic libraries etc. in the path. > > Generally speaking, pythonnet does work with numpy. Something > > specific is wrong, loading a dll in a low level manner that msvc is > > upset. > > >

[Python.NET] apologies for poor posting

2012-11-05 Thread John Burkhart
Just a quick apology for posting poorly. I am trying a new workflow to manage lists in gmail, and I didn't quite get it right just yet... _ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] Getting started with Python for .NET

2012-11-07 Thread John Burkhart
Annika, I too just started with pythonnet. What I'm learning is that the compilation of pythonnet needs to match that of the .dll you are trying to load. So, for instance, how was your .dll built (for .NET 4? 3.5? ..). Check that. In my case I had to build pythonnet targeted for .NET 4 but it ca

[Python.NET] strange behavior when adding

2012-11-09 Thread John Burkhart
Hello, I'm working with a custom built set of .NET 4 assemblies. The .NET assemblies have a type 'TimeSeries'. These time series can have operations conducted on them (addition, averaging, etc.), which returns a new type ('BinaryOperation'). I can do this in IronPython no problem: >>> >>> type(

[Python.NET] importing eggs. does pythonnet not use respect the easy-install.pth file?

2013-08-23 Thread John Burkhart
Hello, I have a pythonnet installation that works fine for the most part. However, whenever I try to import a module that was built with easy_install, I have to explicitly add the full egg path to the sys.path variable. Does pythonnet not respect the easy-install.pth file? [code] >>> import south

Re: [Python.NET] importing eggs. does pythonnet not use respect the easy-install.pth file?

2013-08-23 Thread John Burkhart
This is my current work-around ## Seems to be a required hack for pythonnet if 'pythonnet' in sys.executable: try: import site site.addsitedir(r'C:\Python27\lib\site-packages') except: print sys.path On Fri, Aug 23, 2013 at 12:51 PM, John Burk