Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the paths in your traceback, it appears you have installed and are trying to use the python.org python 2.6.4 (installed to <code>/Library/Frameworks/Python.frameworks</code> ...). That python is 32-bit only. By default on 10.6, MacPorts tries to install 64-bit versions of packages. You can change that for most MacPorts packages by specfying the <code>+universal</code> variant on your MacPorts install commands or by adding it to <code>/opt/local/etc/macports/variants.conf</code>. But, since you need a variety of packages, if you just need this for your own machine you'll likely find it much easier to just install a complete python2.6 64-bit solution using MacPorts. Other than scrapy itself, you should find nearly all of the packages you need already there. You'll need to modify your $PATH to add <code>/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin</code> and <code>/opt/local/bin</code> before any other directories with Python in them. Something like this should work (untested!):</p> <pre><code>sudo port selfupdate # ensure you have the latest ports file information sudo port install py26-libxml2 py26-twisted py26-openssl py26-simplejson py26-setuptools python_select sudo python_select python26 # optionally make /opt/local/bin/python -&gt; python2.6 sudo /opt/local/bin/easy_install-2.6 scrapy # or install manually cd /path/to/scrapy sudo /opt/local/bin/python2.6 setup.py install </code></pre> <p>EDIT: For 10.6, due to some issues with lack of Tk support in 64-bit mode, Tk defaults to the X11 version which you probably neither want nor need. I add the following variants to <code>/opt/local/etc/macports/variants.conf</code> for 10.6 (not all of them are applicable to python and friends):</p> <pre><code>+bash_completion +quartz +ssl +no_x11 +no_neon +no_tkinter +universal +libyaml -scientific </code></pre> <p>EDIT: If MacPorts is installed properly, you should see something like this on 10.6:</p> <pre><code>$ ls -l /opt/local/bin/python2.6 lrwxr-xr-x 1 root wheel 73 Oct 28 20:25 /opt/local/bin/python2.6@ -&gt; /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 $ file /opt/local/bin/python2.6 /opt/local/bin/python2.6: Mach-O universal binary with 2 architectures /opt/local/bin/python2.6 (for architecture x86_64): Mach-O 64-bit executable x86_64 /opt/local/bin/python2.6 (for architecture i386): Mach-O executable i386 </code></pre> <p>That's if you've added the <code>+universal</code> variant, otherwise you may just see a single x86_64 or i386 architecture.</p> <p>When using relative paths, make sure your shell $PATH has the two MacPorts directories first:</p> <pre><code>$ echo $PATH /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin ... </code></pre> <p>You may need to edit your <code>~/.bash_profile</code> or other shell file to make that change "permanent". If you want the bare <code>python</code> command to refer to the MacPorts Python, make sure to run the <code>python_select</code> command shown above. If you are still having problems, a nice thing about MacPorts is it is easy to delete and start over again; just:</p> <pre><code>$ sudo rm -r /opt/local </code></pre> <p>and download the MacPorts 10.6 installer. But you really shouldn't have to do that. And I think it would really be in your best interests to get this fixed and working as it will likely save you lots of headaches in the future.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. 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