unable to install backports.zoneinfo - django

when i execute 'pip install -r requirements.txt ' this is displayed and i can't download backports.zoneinfo .
`(venv) ###########Air-de-#### ###### % pip install -r requirements.txt
...
lib/zoneinfo_module.c:1:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Successfully built PyYAML
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
(venv) #######Air-de-###### ####### % pip install backports.zoneinfo
...
lib/zoneinfo_module.c:1:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects`

Related

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 --> in python3.7.1 and ubuntu 19.04

I switch of ubuntu 16 to ubuntu 19 and dose not work gcc
this error is:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 --> in python3.7.1 and ubuntu 19.04
sudo apt-get install python3.7-dev
sudo apt-get install python-dev
i test this link but does not work:
https://stackoverflow.com/questions/35048582/how-to-fix-error-command-x86-64-linux-gnu-gcc-failed-with-exit-status-1
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitfuvqfw8a.c -o tmp/xmlXPathInitfuvqfw8a.o
/tmp/xmlXPathInitfuvqfw8a.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
cc tmp/xmlXPathInitfuvqfw8a.o -lxml2 -o a.out
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Building wheel for numpy (setup.py) ...
I'm very try but i can not solve problem
help me thanks

Linphone - project android

I got error after executing command make .
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") CMake Error at cmake/Tools.cmake:31 (message): 'pystache' python module
not found Call Stack (most recent call first): CMakeLists.txt:177
(check_python_module)
make[3]: *
[linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure]
Error 1 make[2]: [CMakeFiles/EP_linphone.dir/all] Error 2 make[1]:
[all] Error 2 make: * [arm64-build] Error 2
I use mac os ,
sh-3.2# python --version
Python 2.7.10
important :
pip3 works but pip command not found!
Update : I found solution with :
brew uninstall python
brew install python#2
Error was because you did not have the module: "pystache".
Make sure you have installed pip
And then, you can:
pip install pystache
Reference:
https://pypi.org/project/pystache/

installing gdal on mac os sierra

I have a Django project that I want to install and it uses GDAL. The documentation refers me to this page in the Django documentation. I have been able to install GEOS and PROJ.4. I wanted to use the latest GDAL which is 2.2.1 and ./configure command failed so I followed this instructions and it compiled. However, make command now fails with the following error
In file included from cpl_odbc.cpp:30:
/Users/DNG/gdal-2.2.1/port/cpl_odbc.h:39:10: fatal error: 'sql.h' file not found
#include <sql.h>
^
1 error generated.
make[1]: *** [cpl_odbc.o] Error 1
make: *** [port-target] Error 2
sudo find / -name sql.h outputs:
find: /dev/fd/DNG: No such file or directory
find: /dev/fd/DNG: No such file or directory
/usr/local/Cellar/unixodbc/2.3.4/include/sql.h
/usr/local/include/sql.h
/usr/local/php5-7.0.18-20170506-095200/include/sql.h

Dockkerfile has some error

The following docker file:
ADD http://kr.archive.ubuntu.com/ubuntu/pool/universe/a/audit/libaudit0_1.7.18-1ubuntu1_amd64.deb /
RUN dpkg -i /libaudit0_1.7.18-1ubuntu1_amd64.deb
gives me the following error:
dpkg-deb: error: `/libaudit0_1.7.18-1ubuntu1_amd64.deb' is not a debian format archive
dpkg: error processing archive /libaudit0_1.7.18-1ubuntu1_amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/libaudit0_1.7.18-1ubuntu1_amd64.deb
How do I resolve it?

Error while installing boost and PyUblas on mac os x

I have installed boost_1_55 using macport with the following command
"sudo port install boost"
no errors.
I am now trying to install PyUblas on my mac but i keep getting the following error
> src/wrapper/main.cpp:16:10: fatal error: 'boost/python.hpp' file not
> found
#include <boost/python.hpp>
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
can anyone help?
Installing boost from packages (Macports, Brew, etc) did not work for me, but installing from source did.
Download source from http://sourceforge.net/projects/boost/files/boost/1.55.0/
cd into folder, then install with:
./bootstrap.sh
./b2
./b2 install