Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume you are referring to <a href="https://stackoverflow.com/questions/1775954/using-python-3-1-with-textmate">this post</a>. It should work but make sure you are using the right path to the Python 3.1 you installed. Check with:</p> <pre><code>$ which python3 /usr/local/bin/python3 </code></pre> <p>If you used the python.org 3.1 installer, it should be available at <code>/usr/local/bin/python3</code>. Other methods may vary, for instance, the MacPorts python3.1 would normally be at <code>/opt/local/bin/python3</code>.</p> <p>UPDATE: Since you indicate that it still doesn't work for you, my guess is that we are using different versions of TextMate's Python bundle. Using the TextMate Bundle Editor (menu item <code>Bundles -&gt; Bundle Editor -&gt; Show Bundle Editor</code>) then selecting the Python bundle's <code>Run Script</code> command, I see the following command snippet:</p> <pre><code>#!/usr/bin/env ruby require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor" require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document" TextMate.save_current_document TextMate::Executor.make_project_master_current_document ENV["PYTHONPATH"] = ENV["TM_BUNDLE_SUPPORT"] + (ENV.has_key?("PYTHONPATH") ? ":" + ENV["PYTHONPATH"] : "") is_test_script = ENV["TM_FILEPATH"] =~ /(?:\b|_)(?:test)(?:\b|_)/ or File.read(ENV["TM_FILEPATH"]) =~ /\bimport\b.+(?:unittest)/ TextMate::Executor.run(ENV["TM_PYTHON"] || "python", "-u", ENV["TM_FILEPATH"]) do |str, type| if is_test_script and type == :err if str =~ /\A[\.F]*\Z/ str.gsub!(/(\.|F)/, "&lt;span class=\"test ok\"&gt;\\1&lt;/span&gt;") str + "&lt;br/&gt;\n" elsif str =~ /\A(FAILED.*)\Z/ "&lt;div class=\"test fail\"&gt;#{htmlize $1}&lt;/div&gt;\n" elsif str =~ /\A(OK.*)\Z/ "&lt;div class=\"test ok\"&gt;#{htmlize $1}&lt;/div&gt;\n" elsif str =~ /^(\s+)File "(.+)", line (\d+), in (.*)/ indent = $1 file = $2 line = $3 method = $4 indent += " " if file.sub!(/^\"(.*)\"/,"\1") url = "&amp;amp;url=file://" + e_url(file) display_name = ENV["TM_DISPLAYNAME"] "#{htmlize(indent)}&lt;a class=\"near\" href=\"txmt://open?line=#{line + url}\"&gt;" + (method ? "method #{CGI::escapeHTML method}" : "&lt;em&gt;at top level&lt;/em&gt;") + "&lt;/a&gt; in &lt;strong&gt;#{CGI::escapeHTML display_name}&lt;/strong&gt; at line #{line}&lt;br/&gt;\n" end end end </code></pre> <p>Check and see if you have the same. If not, you should consider updating TextMate and/or the bundle. The <code>GetBundle</code> bundle makes it easy to keep bundles up-to-date as described <a href="http://solutions.treypiepmeier.com/2009/02/25/installing-getbundles-on-a-fresh-copy-of-textmate/" rel="nofollow noreferrer">here</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload