[Python.NET] Fwd: running pythonnet on MAC OSX[new to MAC and not not a programmer]

Alon Dulce alondu at gmail.com
Thu Jun 20 17:53:22 CEST 2013


I tried using the portfile attached without success, are all the commented
lines supposed to be commented ?
I did the following steps:

1. I setup a folder for my local macports "~/Documents/Loc_Macports/"
2. Inside this folder I set up the directory structure according to what I
understood from the port file attached:
   "~/Documents/Loc_Macports/devel/lang/mono/" and put the portfile in that
3.I didn't see any patch files in the port file (all are commented) - so I
didn't do anything regarding this.
4. I edited the source.conf file with :
       open -a TextEdit /opt/local/etc/ports/sources.conf
and added before the following line:

before this line :
rsync://rsync.macports.org/release/tarballs/ports.tar [default]

5. I indexed my local repository:
portindex ~/Documents/Loc_Macports/

But i received notification that none were indexed and here I'm stuck.

Any insights ?


---------- Forwarded message ----------
From: brad at fie.us <brad at fie.us>
Date: Fri, Jun 14, 2013 at 2:01 AM
Subject: Re: [Python.NET] running pythonnet on MAC OSX[new to MAC and not
not a programmer]
To: Alon Dulce <alondu at gmail.com>
Cc: pythondotnet at python.org

So, firstly, I build my own 64bit mono.  In that last thread, I said I was
doing it off of their tar ball.

I updated that slightly.  I now maintain my own local "mac ports" port file.

Attached is the latest one I built.  It may need updating.  And at the very
least, you probably want to update it to build into a different place than
my company's directory on my systems.

Once it's built, it does create it's own pkg-config directory so you can
use it in building python-net

You can try and build against the usual 32-bit mono distributions on OSX.
 But it's usually a bad idea.  Python is usually 64-bit in most places
you'd want to use it in OSX.  When Xamarin finally gets around to fully
distributing in 64-bit on OSX by default, things will be easier and this
part won't be necessary.

On Jun 12, 2013, at 10:35 AM, Alon Dulce <alondu at gmail.com> wrote:


I want to run python.NET  on MAC OSX (Mountain Lion) and since I'm new to
MAC/UNIX and I'm not a programmer I naturally turned to the web:

*1st : I tried iron python using eclipse with MONO (configuring eclipse
iron python interpreter to the mono framework
"/Library/Frameworks/Mono.framework/Versions/icy" file) - eclipse doesn't
allow this and I got the following error:

"No output was in the standard output when trying to create the interpreter

*2nd : I tried python.NET on XAMARIN :

I found this link:

I followed all the instructions but it's not clear to me how can I write
python in XAMARIN, import clr  etc. (I set up the solution as explained in
the link above but I'm not sure about the next step).

* 3rd try :
I found a post on this mailing list :

I tried using the original makefile and setup.py (both makefiles) with
"sudo setup.py install" and received the following error:
"dyld: DYLD_ environment variables being ignored because main executable
(/usr/bin/sudo) is setuid or setgid
/bin/sh: pkg-config: command not found
Traceback (most recent call last):
  File "setup.py", line 46, in <module>
    argsDict = pkgconfig('glib-2.0', 'mono-2')
  File "setup.py", line 32, in pkgconfig
    raise RuntimeError("An error has occured")
RuntimeError: An error has occured

I also tried editing the makefiles and setup.py according to the diff file
supplied in the thread but still no success.

Is there a makefile/ setup.py file that will work on MAC ? maybe some sort
of step by step monkey guide... :-)

I appreciate the help,
Python.NET mailing list - PythonDotNet at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130620/0ed05e4b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 3747 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130620/0ed05e4b/attachment-0001.obj>

More information about the PythonDotNet mailing list