<div dir="ltr"><div><div>Hello all. Clemens&#39;s analysis is correct; if you haven&#39;t been monkeying around in ${prefix}/share/java/jython (and you would know if you had been) then it is safe to force-activate.<br><br></div>I have submitted a patch with Clemens&#39;s suggested fix, which does solve the issue in my testing:<br><a href="https://trac.macports.org/ticket/51981">https://trac.macports.org/ticket/51981</a><br><br></div>-Aaron<br><br><div><div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 8, 2016 at 5:24 AM Clemens Lang &lt;<a href="mailto:cal@macports.org">cal@macports.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[re-sending from the address subscribed to the list]<br>
<br>
Hi Carlo,<br>
<br>
On Sat, Aug 06, 2016 at 06:34:26PM -0400, Carlo Tambuatco wrote:<br>
&gt; From running<br>
&gt;<br>
&gt; $&gt; sudo port activate jython<br>
<br>
I committed a patch from <a href="https://trac.macports.org/ticket/51682" rel="noreferrer" target="_blank">https://trac.macports.org/ticket/51682</a> to<br>
update Jython, but didn&#39;t see this problem (likely because I didn&#39;t have<br>
the previous version installed when testing). I&#39;ve put the patch author<br>
on Cc, maybe he has an idea.<br>
<br>
&gt; Error: org.macports.activate for port jython returned: Image error: /opt/local/share/java/jython/cachedir/packages/MRJToolkit.pkc already exists and does not belong to a registered port.  Unable to activate port jython. Use &#39;port -f activate jython&#39; to force the activation.<br>
&gt; Please see the log file for port jython for details:<br>
&gt;    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_jython-2.7.0_0_cd2dbc950d41a937798a03a6a2017ecdc4ee698a8850a64ac74d1d4c0b0b4cdf-2841/jython/main.log<br>
&gt; Warning: Failed to execute portfile from registry for jython @2.7.0_0+installer<br>
&gt; ---&gt;  Activating jython @2.7.0_0+installer<br>
&gt; Error: port activate failed: Image error: /opt/local/share/java/jython/cachedir/packages/MRJToolkit.pkc already exists and does not belong to a registered port.  Unable to activate port jython. Use &#39;port -f activate jython&#39; to force the activation.<br>
<br>