Hmm, after getting it to it now doesn't. I think it has something to
do with both the PATH and the PYTHONPATH
When I run:
python scrapy-ctl.py crawl dmoz.org
I get:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/
Python.app/Contents/MacOS/Python: can't open file 'scrapy-ctl.py':
[Errno 2] No such file or directory
BUT you won’t be able to copy the old libxml files back. This is because the OS needs the libxml2 that was loaded in the bootstrap. Powering off and powering on again will brick your machine. The login screen will hang and hang and hang. Power off and power on again in single-user mode (hold Command-S while rebooting). You can watch the. Binary distributions for Mac OS X of the latest Gnome XML processing libraries: libxml2 version 2.6.30 and libxslt version 1.1.22 are now available. These libraries have been built as embeddable OS X Frameworks. This means that you may install them anywhere on your system, or within your application, and OS X will search for them.
When I run:
python /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/
scrapy-ctl.py crawl dmoz.org
I get:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/twisted/python/filepath.py:12:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
import sha
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/twisted/internet/_sslverify.py:5:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import itertools, md5
Error running: scrapy-ctl.py crawl
Cannot find project settings module in python path: scrapy_settings
- Creates and adds a new QuantConnect.Securities.Equity.Equity security to the algorithm.
- I'm trying to install libxml2 on my Mac (OS 10.6.4). I'm actually trying to just run a Scrapy script in Python, which has required me to install Twisted, Zope,.
- I figured out how to get libxml2 installed. It took two steps. First, I didn't have XCode installed, so I had to get that downloaded and installed from Apple Developer Tools. I thought that it had come standard on OX 10.6.4, but I guess not. Then, in the libxml2 folder I ran these three commands.
When I run: python_select -s
I get: python26
When I run: echo $PATH i get:
/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/
Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/
usr/X11/bin
When I run echo $PYTHONPATH i get nothing
Please help!
I am trying to compile an libxml2 library to run as a static command line tool.
I want to use xmllint to run on 10.4/10.5 on ppc and i386
I have to compile libiconv as well :
CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk'
./configure
--prefix=$PWD/../../
--enable-static
--disable-shared
and i get the error :
...
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/Users/ble/Programming/libs/src/libiconv-1.13.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Any idea ?
Thanks
Libxml2 For Mac Os 10.10
MacBook Pro, Mac OS X (10.5.8)
Libxml2 For Mac Os 10.13
Posted on