Bom dia,<div><br></div><div>Estou a tentar instalar os seguintes plugins para QGIS RT SQL Layer e/ou Fast SQL Layer no ubuntu 11.04. Ambos me pediram os módulos psycopg2 e pyspatialite. No primeiro caso não tive dificuldade em instalá-lo:</div>
<div><br></div><div><i>sudo apt-get install python-psycopg2</i></div><div><br></div><div>Já o pyspatialite ainda não consegui... O que consegui encontrar apontava para fazê-lo da seguinte forma:</div><div><br></div><div><i>sudo pip install pyspatialite</i></div>
<div><i><br></i></div><div>Mas deu-me o erro que indico abaixo.</div><div><br></div><div>Alguém sabe o que posso estar a fazer mal?</div><div><br></div><div>Obrigado</div><div><br></div><div>Alexandre Neto</div><div><br></div>
<div>-------</div><div><br></div><div><br></div><div><br></div><div>...</div><div><div>creating build/temp.linux-x86_64-2.7/amalgamation</div><div><br></div><div>gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/usr/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o</div>
<div><br></div><div>In file included from src/module.c:24:0:</div><div><br></div><div>src/connection.h:26:20: fatal error: Python.h: No such file or directory</div><div><br></div><div>compilation terminated.</div><div><br>
</div><div>error: command 'gcc' failed with exit status 1</div><div><br></div><div>----------------------------------------</div><div>Command /usr/bin/python -c "import setuptools;__file__='/home/alex/build/pyspatialite/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-EZiKRs-record/install-record.txt failed with error code 1</div>
<div>Exception information:</div><div>Traceback (most recent call last):</div><div> File "/usr/lib/pymodules/python2.7/pip/basecommand.py", line 130, in main</div><div> self.run(options, args)</div><div> File "/usr/lib/pymodules/python2.7/pip/commands/install.py", line 228, in run</div>
<div> requirement_set.install(install_options, global_options)</div><div> File "/usr/lib/pymodules/python2.7/pip/req.py", line 1045, in install</div><div> requirement.install(install_options, global_options)</div>
<div> File "/usr/lib/pymodules/python2.7/pip/req.py", line 560, in install</div><div> cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)</div><div> File "/usr/lib/pymodules/python2.7/pip/__init__.py", line 249, in call_subprocess</div>
<div> % (command_desc, proc.returncode))</div><div>InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/home/alex/build/pyspatialite/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-EZiKRs-record/install-record.txt failed with error code 1</div>
</div>