Open LuisQuiroga opened 7 years ago
I used "pip install dronekit-sitl -UI" but I got this, so I don't know what to do. Hope someone can help me
`Collecting dronekit-sitl Using cached dronekit_sitl-3.2.0.tar.gz Collecting psutil>=3.0 (from dronekit-sitl) Using cached psutil-5.0.0.zip Collecting dronekit>=2.0.0b6 (from dronekit-sitl) Using cached dronekit-2.9.0-py2-none-any.whl Collecting six>=1.10 (from dronekit-sitl) Using cached six-1.10.0-py2.py3-none-any.whl Collecting monotonic==1.2 (from dronekit>=2.0.0b6->dronekit-sitl) Using cached monotonic-1.2-py2.py3-none-any.whl Collecting pymavlink==2.0.6 (from dronekit>=2.0.0b6->dronekit-sitl) Using cached pymavlink-2.0.6.tar.gz Installing collected packages: psutil, monotonic, pymavlink, dronekit, six, dronekit-sitl Running setup.py install for psutil ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-build-gkphmt/psutil/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-SqZmQ9-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.12-intel-2.7 creating build/lib.macosx-10.12-intel-2.7/psutil copying psutil/init.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_common.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_compat.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psbsd.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pslinux.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psosx.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psposix.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pssunos.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pswindows.py -> build/lib.macosx-10.12-intel-2.7/psutil creating build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/init.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/runner.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_linux.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_misc.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_osx.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_posix.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_process.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_system.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_windows.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests running build_ext building 'psutil._psutil_osx' extension creating build/temp.macosx-10.12-intel-2.7 creating build/temp.macosx-10.12-intel-2.7/psutil creating build/temp.macosx-10.12-intel-2.7/psutil/arch creating build/temp.macosx-10.12-intel-2.7/psutil/arch/osx cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_osx.o cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_common.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_common.o cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/arch/osx/process_info.c -o build/temp.macosx-10.12-intel-2.7/psutil/arch/osx/process_info.o cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/psutil/_psutil_osx.o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_common.o build/temp.macosx-10.12-intel-2.7/psutil/arch/osx/process_info.o -o build/lib.macosx-10.12-intel-2.7/psutil/_psutil_osx.so -framework CoreFoundation -framework IOKit building 'psutil._psutil_posix' extension cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_posix.o psutil/_psutil_posix.c:52:42: warning: implicit conversion loses integer precision: 'long' to 'id_t' (aka 'unsigned int') [-Wshorten-64-to-32] priority = getpriority(PRIO_PROCESS, pid);
psutil/_psutil_posix.c:70:40: warning: implicit conversion loses integer precision: 'long' to 'id_t' (aka 'unsigned int') [-Wshorten-64-to-32] retval = setpriority(PRIO_PROCESS, pid, priority); ~~~~~~~~~~~ ^~~ 2 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/psutil/_psutil_posix.o -o build/lib.macosx-10.12-intel-2.7/psutil/_psutil_posix.so running install_lib copying build/lib.macosx-10.12-intel-2.7/psutil/__init__.py -> /Library/Python/2.7/site-packages/psutil **error: could not delete '/Library/Python/2.7/site-packages/psutil/__init__.py': Permission denied** ---------------------------------------- **Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-build-gkphmt/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-SqZmQ9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-build-gkphmt/psutil/** `
maybe just try deleting /Library/Python/2.7/site-packages/psutil/init.py ?
/Library/Python/2.7/site-packages/psutil/init.py
I used "pip install dronekit-sitl -UI" but I got this, so I don't know what to do. Hope someone can help me
`Collecting dronekit-sitl Using cached dronekit_sitl-3.2.0.tar.gz Collecting psutil>=3.0 (from dronekit-sitl) Using cached psutil-5.0.0.zip Collecting dronekit>=2.0.0b6 (from dronekit-sitl) Using cached dronekit-2.9.0-py2-none-any.whl Collecting six>=1.10 (from dronekit-sitl) Using cached six-1.10.0-py2.py3-none-any.whl Collecting monotonic==1.2 (from dronekit>=2.0.0b6->dronekit-sitl) Using cached monotonic-1.2-py2.py3-none-any.whl Collecting pymavlink==2.0.6 (from dronekit>=2.0.0b6->dronekit-sitl) Using cached pymavlink-2.0.6.tar.gz Installing collected packages: psutil, monotonic, pymavlink, dronekit, six, dronekit-sitl Running setup.py install for psutil ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-build-gkphmt/psutil/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/cm/d1hhwc4145s6q_fwhfv_qk7w0000gn/T/pip-SqZmQ9-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.12-intel-2.7 creating build/lib.macosx-10.12-intel-2.7/psutil copying psutil/init.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_common.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_compat.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psbsd.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pslinux.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psosx.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_psposix.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pssunos.py -> build/lib.macosx-10.12-intel-2.7/psutil copying psutil/_pswindows.py -> build/lib.macosx-10.12-intel-2.7/psutil creating build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/init.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/runner.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_linux.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_misc.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_osx.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_posix.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_process.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_system.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests copying psutil/tests/test_windows.py -> build/lib.macosx-10.12-intel-2.7/psutil/tests running build_ext building 'psutil._psutil_osx' extension creating build/temp.macosx-10.12-intel-2.7 creating build/temp.macosx-10.12-intel-2.7/psutil creating build/temp.macosx-10.12-intel-2.7/psutil/arch creating build/temp.macosx-10.12-intel-2.7/psutil/arch/osx cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_osx.o cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_common.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_common.o cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=500 -DPSUTIL_OSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/arch/osx/process_info.c -o build/temp.macosx-10.12-intel-2.7/psutil/arch/osx/process_info.o cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/psutil/_psutil_osx.o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_common.o build/temp.macosx-10.12-intel-2.7/psutil/arch/osx/process_info.o -o build/lib.macosx-10.12-intel-2.7/psutil/_psutil_osx.so -framework CoreFoundation -framework IOKit building 'psutil._psutil_posix' extension cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.macosx-10.12-intel-2.7/psutil/_psutil_posix.o psutil/_psutil_posix.c:52:42: warning: implicit conversion loses integer precision: 'long' to 'id_t' (aka 'unsigned int') [-Wshorten-64-to-32] priority = getpriority(PRIO_PROCESS, pid);