<div dir="ltr">Hi,<div><br></div><div>I tried using the portfile attached without success, are all the commented lines supposed to be commented ?</div><div>I did the following steps:</div><div><br></div><div style>1. I setup a folder for my local macports "~/Documents/Loc_Macports/"</div>
<div style>2. Inside this folder I set up the directory structure according to what I understood from the port file attached:</div><div style>   "~/Documents/Loc_Macports/devel/lang/mono/" and put the portfile in that folder</div>
<div style>3.I didn't see any patch files in the port file (all are commented) - so I didn't do anything regarding this.</div><div style>4. I edited the source.conf file with :</div><div style>       <span style="background-color:rgb(250,191,192);color:rgb(0,0,0);font-family:courier;font-size:14px;line-height:19px">open -a TextEdit /opt/local/etc/ports/sources.conf</span></div>
<div style><span style="background-color:rgb(250,191,192);color:rgb(0,0,0);font-family:courier;font-size:14px;line-height:19px">and added before the following line:</span></div><div style><div>file:///Users//~/Loc_Macports/</div>
<div style><span class="" style="white-space:pre"><br></span></div><div style><span class="" style="white-space:pre">before this line :</span></div><div style><span class="" style="white-space:pre">    </span></div><div>rsync://<a href="http://rsync.macports.org/release/tarballs/ports.tar">rsync.macports.org/release/tarballs/ports.tar</a> [default]<br>
</div></div><div><br></div><div>5. I indexed my local repository:</div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:14px;line-height:19px;background-color:rgb(250,191,192)">portindex </span>~/Documents/Loc_Macports/</div>
<div><br></div><div style>But i received notification that none were indexed and here I'm stuck.</div><div style><br></div><div style>Any insights ?</div><div style><br></div><div style>BR,</div><div style>Alon.</div>
<div><br></div><div><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"><a href="mailto:brad@fie.us">brad@fie.us</a></b> <span dir="ltr"><<a href="mailto:brad@fie.us">brad@fie.us</a>></span><br>
Date: Fri, Jun 14, 2013 at 2:01 AM<br>Subject: Re: [Python.NET] running pythonnet on MAC OSX[new to MAC and not not a programmer]<br>To: Alon Dulce <<a href="mailto:alondu@gmail.com">alondu@gmail.com</a>><br>Cc: <a href="mailto:pythondotnet@python.org">pythondotnet@python.org</a><br>
<br><br><div style="word-wrap:break-word">So, firstly, I build my own 64bit mono.  In that last thread, I said I was doing it off of their tar ball.<div><br></div><div>I updated that slightly.  I now maintain my own local "mac ports" port file.</div>
<div><br></div><div>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.</div><div>
<br></div><div>Once it's built, it does create it's own pkg-config directory so you can use it in building python-net</div><div><br></div><div>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.</div>
<div><br></div><div></div></div><br><div style="word-wrap:break-word"><div><br><div><br></div><div><br><div><div>On Jun 12, 2013, at 10:35 AM, Alon Dulce <<a href="mailto:alondu@gmail.com" target="_blank">alondu@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>I want to run <a href="http://python.NET" target="_blank">python.NET</a>  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:</div>
<div><br></div><div>
*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:</div>

<div><br></div><div>"No output was in the standard output when trying to create the interpreter info."</div><div><br></div><div>*2nd : I tried <a href="http://python.NET" target="_blank">python.NET</a> on XAMARIN :</div>
<div><br>
</div><div>I found this link: <a href="http://curtis.schlak.com/2012/01/17/howto-run-pythonnet-on-osx.html" target="_blank">http://curtis.schlak.com/2012/01/17/howto-run-pythonnet-on-osx.html</a></div><div><h1 style="margin:0px;padding:0px;font-size:28px;clear:both;color:rgb(68,68,68);font-family:'Merriweather Sans','Helvetica Neue',Helvetica,Arial,sans-serif">

<br></h1><div>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).</div>

<div><br></div><div>* 3rd try :</div><div>I found a post on this mailing list :</div><div><a href="http://mail.python.org/pipermail/pythondotnet/2011-September/001171.html" target="_blank">http://mail.python.org/pipermail/pythondotnet/2011-September/001171.html</a><br>

</div><div><br></div><div>I tried using the original makefile and setup.py (both makefiles) with "sudo setup.py install" and received the following error:</div><div>"dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid</div>

<div>/bin/sh: pkg-config: command not found</div><div>Traceback (most recent call last):</div><div>  File "setup.py", line 46, in <module></div><div>    argsDict = pkgconfig('glib-2.0', 'mono-2')</div>

<div>  File "setup.py", line 32, in pkgconfig</div><div>    raise RuntimeError("An error has occured")</div><div>RuntimeError: An error has occured</div><div>"</div><div><br></div><div>I also tried editing the makefiles and setup.py according to the diff file supplied in the thread but still no success.</div>

<div><br></div><div>Is there a makefile/ setup.py file that will work on MAC ? maybe some sort of step by step monkey guide... :-)</div><div><br></div><div>I appreciate the help,</div><div>Alon.</div>
</div></div>
_________________________________________________<br><a href="http://Python.NET" target="_blank">Python.NET</a> mailing list - <a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/mailman/listinfo/pythondotnet</a></blockquote>
</div><br></div></div></div><br></div><br></div></div>