Error attempting to install scrapy using easy_install osx 10.8 - scrapy

(Newbie here) I've been attempting to install scrapy using easy_install, but get the following error:
Ben$ easy_install -U Scrapy
Searching for Scrapy
Reading http://pypi.python.org/simple/Scrapy/
Reading http://scrapy.org
Best match: Scrapy 0.14.4
Processing Scrapy-0.14.4-py2.7.egg
Scrapy 0.14.4 is already the active version in easy-install.pth
Installing scrapy script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.14.4-py2.7.egg
Processing dependencies for Scrapy
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.6
Downloading http://lxml.de/files/lxml-2.3.6.tgz
Processing lxml-2.3.6.tgz
Running lxml-2.3.6/setup.py -q bdist_egg --dist-dir /var/folders/j1/l3w7_q554b3fkk3xyw_998nc0000gn/T/easy_install-w5NqEl/lxml-2.3.6/egg-dist-tmp-6MyEeO
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.26
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
Any idea what I am missing here?
Thanks

Install GCC first; easiest way is via https://github.com/kennethreitz/osx-gcc-installer .
After installing GCC, run easy_install again.

Related

Fatal error in launcher: Unable to creat process using "c:\bld\scrapy_345323\_h_env\python.exe"

I installed anaconda and python on Windows 7 without errors.
I tried to run an example from scrapy.org.
scrapy runspider quotes_spider.py -o quotes.json
I got an error:
Fatal error in launcher: Unable to creat process using “c:\bld\scrapy_345323_h_env\python.exe”
How can I resolve this?
Well for anyone that would like to create his first bot from scrapy.org I can confirm the solution is as follows:
first uninstall scrapy from conda
conda uninstall -c conda-forge scrapy
and use pip instead as follows:
pip install --force-reinstall scrapy
I had an astroid 2.2.5 problem, but reinstallation succedeed
and I ran the script succesfully
scrapy runspider quotes_spider.py -o quotes.json
Anyway you may experience other problems running the example provided quotes_spider.py, then I suggest trying locating your spider .py to the same folder as your anaconda prompt (in my case,c:\users\bla bla)
running the anaconda powershell did not work anymore, so I will continue working from anaconda prompt

Installing PyQt5 from sources: Unable to import PyQt5.sip

I'm trying to build PyQt5 from the sources. I'm running fedora 28 and I installed Qt5 via dnf. Installing Sip following this seems OK. But when i try to configure PyQt i got this error:
# python3 configure.py -q /usr/bin/qmake-qt5
Querying qmake about your Qt installation...
Error: Unable to import PyQt5.sip. Make sure you have configured SIP to
create a private copy of the sip module.
According to the doc I did:
# python3 configure.py --sip-module private.sip
# python3 configure.py -q /usr/bin/qmake-qt5 -n private.sip
But i still get the error. So I'm guessing I'm not using it properly. Any suggestions ?
P.S: I know (and i did) that it can be done via pip but i'm facing the same problem than here
Are you trying to install sip-4.19.10 and PyQt5_gpl-5.11.1?
Try a combination of sip-4.19.8 and PyQt5_gpl-5.10.1.
https://sourceforge.net/projects/pyqt/files/PyQt5/
https://sourceforge.net/projects/pyqt/files/sip/

Spacy linking not working

I am using rasa.ai to build a bot. So far it was working fine but this morning I installed this requirement , then installed Spacy with below command.
python -m spacy download en_core_web_md
It seemed all good with successful linking. Now when I am running my bot with below command
python -m rasa_nlu.train --config config_spacy.yml --data data/training-rasa.json --path projects
I am getting error
FileNotFoundError: [Errno 2] No such file or directory:'/Users/usename/anaconda3/lib/python3.6/site-packages/spacy/data/en/vocab/strings.json'
To me this seems like a Spacy linking error but I don't understand why coz Spacy linking was successful from the above Spacy installation.
Any suggestion?
Turns out the requirement file is getting an older version of Spacy. So, I had to so pip install rasa_nlu[spacy] to get the latest Spacy (>2). That resolved the problem.

error installing scrapy on python 3.6.2

I am trying to install scrapy for my project. But after following installation instructions, I got the following error:
scrapy is not recognized as internal command
Please help me out!

Win10 scrapy install

I have python install as well as c++ complier. When I run "pip install scrapy" from the command line it starts to install but I get a couple errors surrounding the libxml and libxslt.
error: 'xslt-config' is not recognized...
cannot open libxml/xmlversion.h no such file or directory
compile failed windows C++ for python failed with exit status 2
could not find function xmlCheckVersion
is libxml installed.....
Use this:
set STATICBUILD=true && pip install lxml
Find the documentation here