From: Benjamin Kaplan on 11 Nov 2009 09:46 On Wed, Nov 11, 2009 at 7:49 AM, 7stud <bbxx789_05ss(a)yahoo.com> wrote: > I'm trying to install lxml, but I can't figure out the installation > instructions. Here: > > http://codespeak.net/lxml/installation.html > > it says: > > 1) Get the easy_install tool. > > Ok, I went to the easy_install website, downloaded, and installed it. > The last two lines of the output during installation said this: > > Installing easy_install script to /Library/Frameworks/Python.framework/ > Versions/2.6/bin > Installing easy_install-2.6 script to /Library/Frameworks/ > Python.framework/Versions/2.6/bin > > > 2) ...run the following as super-user (or administrator): > > easy_install lxml > > On MS Windows, the above will install the binary builds that we > provide. If there is no binary build of the latest release yet, please > search PyPI for the last release that has them and pass that version > to easy_install like this: > easy_install lxml==2.2.2 > > On Linux (and most other well-behaved operating systems), easy_install > will manage to build the source distribution as long as libxml2 and > libxslt are properly installed, including development packages, i.e. > header files, etc. Use your package management tool to look for > packages like libxml2-dev or libxslt-devel if the build fails, and > make sure they are installed. > > On MacOS-X, use the following to build the source distribution, and > make sure you have a working Internet connection, as this will > download libxml2 and libxslt in order to build them: > STATIC_DEPS=true easy_install lxml > > ----------- > > My os is mac os x 10.4.11. But this: > > STATIC_DEPS=true easy_install lxml > > is not a valid command: > > $ sudo STATIC_DEPS=true easy_install lxml > Password: > sudo: STATIC_DEPS=true: command not found > > In any case, if I do this: > > $ sudo easy_install lxml > sudo: easy_install: command not found > > In other words, when I installed easy_install it did not add anything > to my PATH which points to the installation directory mentioned during > installation: > > Installing easy_install script to /Library/Frameworks/Python.framework/ > Versions/2.6/bin > > Ok, so I need to use the full path to the easy_install program (which > is not mentioned ANYWHERE in the installation instructions), i.e. > > /Library/Frameworks/Python.framework/Versions/2.6/bin/easy_install > > ...but this still isn't going to work: > > $ sudo STATIC_DEPS=true /Library/Frameworks/Python.framework/Versions/ > 2.6/bin/easy_install lxml > Password: > sudo: STATIC_DEPS=true: command not found > > > So what the heck is going on?? > > Attention developers: you may be one of the best programmers in the > world, but if you can't convey how to use your software to the average > user, then you are the equivalent of one of the worst programmers on > the planet. > > 1) It's not Python's fault that OS X doesn't add things to the path when its in a framework (like Python). 2) You almost got the command right. Environment variables are set before *any* command, including sudo. STATIC_DEPS=true sudo easy_install lxml > > > > > -- > http://mail.python.org/mailman/listinfo/python-list >
From: 7stud on 11 Nov 2009 09:54 On Nov 11, 6:31 am, Jussi Piitulainen <jpiit...(a)ling.helsinki.fi> wrote: > 7stud writes: > > I'm trying to install lxml, but I can't figure out the installation > > instructions. Here: > ... > > My os is mac os x 10.4.11. But this: > > > STATIC_DEPS=true easy_install lxml > > > is not a valid command: > > > $ sudo STATIC_DEPS=true easy_install lxml > > Password: > > sudo: STATIC_DEPS=true: command not found > > Maybe > > STATIC_DEPS=true sudo easy_install lxml > > And be running Bash or some other Bourne type shell. > That worked. (The Terminal app on my mac uses bash by default.) Unfortunately, easy_install was not able to install lxml! Here is the output: --- $ sudo STATIC_DEPS=true /Library/Frameworks/Python.framework/Versions/ 2.6/bin/easy_install lxml Password: sudo: STATIC_DEPS=true: command not found $ STATIC_DEPS=true sudo /Library/Frameworks/Python.framework/Versions/ 2.6/bin/easy_install lxml Password: Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.2.3 Downloading http://codespeak.net/lxml/lxml-2.2.3.tgz Processing lxml-2.2.3.tgz Running lxml-2.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install- r2obQa/lxml-2.2.3/egg-dist-tmp-7v5A1n Building lxml version 2.2.3. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/bin/ easy_install", line 8, in <module> load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 1712, in main File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 1700, in with_ei_usage File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 1716, in <lambda> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 211, in run File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 446, in easy_install File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 476, in install_item File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 655, in install_eggs File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 930, in build_and_install File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/ easy_install.py", line 919, in run_setup File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/ sandbox.py", line 62, in run_setup File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/ sandbox.py", line 105, in run File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/ sandbox.py", line 64, in <lambda> File "setup.py", line 119, in <module> File "/tmp/easy_install-r2obQa/lxml-2.2.3/setupinfo.py", line 51, in ext_modules TypeError: build_libxml2xslt() got an unexpected keyword argument 'libiconv_version'
From: Benjamin Kaplan on 11 Nov 2009 09:56 On Wed, Nov 11, 2009 at 9:23 AM, Diez B. Roggisch <deets(a)nospam.web.de> wrote: > Chris Rebert schrieb: >> >> On Wed, Nov 11, 2009 at 4:49 AM, 7stud <bbxx789_05ss(a)yahoo.com> wrote: >>> >>> I'm trying to install lxml, but I can't figure out the installation >>> instructions. Here: >>> >>> http://codespeak.net/lxml/installation.html >>> >>> it says: >>> >>> 1) Get the easy_install tool. >> >> <snip> >>> >>> My os is mac os x 10.4.11. >> >> I would recommend installing fink (http://www.finkproject.org/) and >> then `sudo fink install setuptools-py26`. >> As a bonus, you'll get a more up-to-date Python installed separate >> from the system one (so you don't need to worry about hosing it). > > Which doesn't run any cocoa or other osx-specific code. Which some might > call "hosed from the very beginning". > http://pdb.finkproject.org/pdb/package.php/pyobjc-py26 I personally use Macports (it's got more stuff and more up to date from what I've found), but compiling all those packages can take a while especially for something with as many dependencies as Python. > Diez > -- > http://mail.python.org/mailman/listinfo/python-list >
From: 7stud on 11 Nov 2009 10:12 On Nov 11, 7:37 am, "Diez B. Roggisch" <de...(a)nospam.web.de> wrote: > And third, > there are limits to what extend one can anticipate the ineptness of > others to read. The page you cite from starts with: > > For special installation instructions regarding MS Windows and > MacOS-X, see below. > > And below you find this link: > > http://codespeak.net/lxml/build.html#building-lxml-on-macos-x > > Which contains the proper command > > STATIC_DEPS=true sudo easy_install lxml > Your characterization of that web page is so fraudulent that I can only say one thing in response: You are a damn liar.
From: Stefan Behnel on 11 Nov 2009 10:17 7stud, 11.11.2009 16:12: > On Nov 11, 7:37 am, "Diez B. Roggisch" <de...(a)nospam.web.de> wrote: >> And third, >> there are limits to what extend one can anticipate the ineptness of >> others to read. The page you cite from starts with: >> >> For special installation instructions regarding MS Windows and >> MacOS-X, see below. >> >> And below you find this link: >> >> http://codespeak.net/lxml/build.html#building-lxml-on-macos-x >> >> Which contains the proper command >> >> STATIC_DEPS=true sudo easy_install lxml > > Your characterization of that web page is so fraudulent that I can > only say one thing in response: You are a damn liar. PLONK. Stefan
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: DHT for Python 3.x? Next: 9 Proven Techniques To Make $10,800 Per Month |