Recently installed atom-beautify package in Atom. I'm using Linux as OS. i've installed the missing autopep8 python package and i'm still getting this unexpected error.
autopep8: error: no such option: --indent-size
Anyone knows why? Below is the full stacktrace!
Usage: autopep8 [options] [filename [filename ...]] Use filename '-'
for stdin.
autopep8: error: no such option: --indent-size
Usage: autopep8 [options] [filename [filename ...]]
Use filename '-' for stdin.
autopep8: error: no such option: --indent-size
Hide Stack Trace
Error: Usage: autopep8 [options] [filename [filename ...]]
Use filename '-' for stdin.
autopep8: error: no such option: --indent-size
at /home/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:287:27
at tryCatcher (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:504:31)
at Promise._settlePromise (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:685:18)
at Async._drainQueue (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:392:9)
apt-get remove it then install through pip:
pip install autopep8
Related
I have a directory qt project with a application (customqtapp) and two libraries (libprotocustom and libcustom).
I created a simple yocto recipe inherit qmake5.
All works fine if the target install dir is /usr/bin for application and /usr/lib for libraries but don't work if
the target install directories are /usr/local/bin and /usr/local/lib
project.pro
SUBDIRS += \
libprotocustom \
libcustom \
customqtapp
...
libprotocustom.pro
target.path=/usr/local/lib
INSTALL = target
...
libcustom.pro
target.path=/usr/local/lib
INSTALL = target
...
customqtapp.pro
target.path=/usr/local/bin
INSTALL = target
...
customqtapp.bb
SUMMARY = "customqtapp"
SRC_URI = " git:///customqt.git;protocol=file;branch=master "
SRCREV = "master"
S = "${WORKDIR}/git"
inherit qmake5
The error messages was
ERROR: customqtapp-1.0.0-r0 do_package: QA Issue: customqtapp: Files/directories were installed but not shipped in any package:
/usr/local/lib/libprotocustom.so.1.0.0
/usr/local/lib/libprotocustom.so.1.0
/usr/local/lib/libprotocustom.so
/usr/local/lib/libprotocustom.so.1
/usr/local/lib/liblibcustom.so.1.0.0
/usr/local/lib/liblibcustom.so.1
/usr/local/lib/liblibcustom.so
/usr/local/lib/liblibcustom.so.1.0
/usr/local/bin/customqtapp
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
customqtapp: 11 installed and not shipped files. [installed-vs-shipped]
ERROR: customqtapp-1.0.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package.6581
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package) failed with exit code '1'
So I added the files to FILES variable in recipe
FILES_${PN} = "\
/usr/local/sbin \
/usr/local/lib/libprotocustom.so.1.0.0 \
/usr/local/lib/libprotocustom.so.1.0 \
/usr/local/lib/libprotocustom.so \
/usr/local/lib/libprotocustom.so.1 \
/usr/local/lib/liblibcustom.so.1.0.0 \
/usr/local/lib/liblibcustom.so.1 \
/usr/local/lib/liblibcustom.so \
/usr/local/lib/liblibcustom.so.1.0 \
/usr/local/bin/customqtapp \
"
But don't work
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/libprotocustom.so'
non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/liblibcustom.so' [dev-so]
WARNING: customqtapp-1.0.0-r0 do_package_qa: QA Issue: customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/libprotocustom.so.1.0.0
customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0 [libdir]
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package_qa.7056
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package_qa) failed with exit code '1'
some ideas?
Thanks in advance.
I tried to install cupy via pip install cupy. I get the following error:
Looking in links:
/cvmfs/soft.computecanada.ca/custom/python/wheelhouse/avx2,
/cvmfs/soft.computecanada.ca/custom/python/wheelhouse/generic Collecting cupy
Using cached https://files.pythonhosted.org/packages/38/14/ddb1a13f77a50d721814e28181ae90e0d57c3f8d4faa9a7b2e028cfcc99a/cupy-4.0.0.tar.gz
Complete output from command python setup.py egg_info:
Options: {'profile': False, 'annotate': False, 'linetrace': False, 'wheel_libs': [], 'package_name': 'cupy', 'no_rpath': False, 'no_cuda': False, 'long_description': None}
**************************************************
*** WARNING: nvcc not in path.
*** WARNING: Please set path to nvcc.
**************************************************
**************************************************
*** WARNING: nvcc path != CUDA_PATH
*** WARNING: nvcc path: None
*** WARNING: CUDA_PATH: /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44
**************************************************
-------- Configuring Module: cuda --------
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc: warning: /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/include: linker input file unused because linking not done
/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/lib64: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
Cannot build a stub file.
Original error: command 'g++' failed with exit status 1
************************************************************
* CuPy Configuration Summary *
************************************************************
Build Environment:
Include directories: ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/include']
Library directories: ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/lib64']
nvcc command : ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/bin/nvcc']
Environment Variables:
CFLAGS : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/include
LDFLAGS : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/lib64
LIBRARY_PATH : /cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/python/2.7.14/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/CUDA/intel2016.4/cuda8.0/openmpi/2.1.1/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/lib64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/mkl/lib/intel64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib/intel64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/ifort/2016.4.258/compilers_and_libraries_2016.4.258/linux/compiler/lib/intel64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-5.4.0/lib64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-5.4.0/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/icc/2016.4.258/compilers_and_libraries_2016.4.258/linux/compiler/lib/intel64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/lib
CUDA_PATH : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44
NVCC : (none)
Modules:
cuda : No
-> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h', 'nvrtc.h', 'nvToolsExt.h']
-> Check your CFLAGS environment variable.
ERROR: CUDA could not be found on your system.
Please refer to the Installation Guide for details:
https://docs-cupy.chainer.org/en/stable/install.html
************************************************************
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/localscratch/tamouze.7243408.0/pip-install-_wUDId/cupy/setup.py", line 65, in <module>
ext_modules = cupy_setup_build.get_ext_modules()
File "cupy_setup_build.py", line 561, in get_ext_modules
extensions = make_extensions(arg_options, compiler, use_cython)
File "cupy_setup_build.py", line 374, in make_extensions
raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /localscratch/tamouze.7243408.0/pip-install-_wUDId/cupy/
Im working on SSH linux server. Im not comfortable with linux environment. My problem looks like the environment is not ok, please how can setup correctly them? I want to use cupy with cahiner
for cuda 9.0:
pip install --pre cupy-cuda90
Or you may want to first do:
1. check you module list : module list
unload pgi module: module unload pgi/16.9
I have installed Atom editor then installed Atom Beautify package into it. But when I try to apply beautify package its throws the error below:
Error: spawn EACCES
at exports._errnoException (util.js:890:11)
at ChildProcess.spawn (internal/child_process.js:302:11)
at exports.spawn (child_process.js:379:9)
at /home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:322:13
at Promise._execute (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/debuggability.js:284:9)
at Promise._resolveFromExecutor (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:480:18)
at new Promise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:77:14)
at PHPCSFixer.module.exports.Beautifier.spawn (/home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:319:16)
at /home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:281:10
at tryCatcher (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:509:31)
at Promise._settlePromise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:566:18)
at Promise._settlePromise0 (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:611:10)
at Promise._settlePromises (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:690:18)
at Promise._fulfill (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:635:18)
at PromiseArray._resolve (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:143:14)
at Promise._settlePromise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:571:26)
at Promise._settlePromise0 (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:611:10)
at Promise._settlePromises (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:690:18)
at Async._drainQueue (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
can anybody help please
I had the same issue.
I put php-cs-fixer at ~/.local/bin and then I gave it executable permission with the command chmod +x php-cs-fixer.
I ran into this error just now as well. The issue was that I didn't have Uncrustify installed.
On Linux:
cd ~/
git clone https://github.com/uncrustify/uncrustify
cd uncrustify
mkdir build
cd build
cmake ..
cmake --build .
sudo make install
Carefully followed the inscructions at: https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-CentOS-6.6
Get to the very end and it fails. Rather frustrating. Any idea what the problem might be?
-- Found LIBGLOG: /usr/local/lib/libglog.so
-- Could NOT find LIBINOTIFY (missing: LIBINOTIFY_LIBRARY)
-- Could NOT find LIBICONV (missing: LIBICONV_LIBRARY)
-- Performing Test LIBICONV_CONST
-- Performing Test LIBICONV_CONST - Failed
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Found LIBMEMCACHED: /usr/local/lib/libmemcached.so
-- Found PCRE: /usr/lib64/libpcre.so
-- Performing Test SYSTEM_PCRE_HAS_JIT
-- Performing Test SYSTEM_PCRE_HAS_JIT - Failed
-- System PCRE does not have JIT enabled - will use hhvm-third-party/pcre
-- Found libevent: /usr/lib64/libevent.so
-- Looking for evhttp_bind_socket_with_fd
-- Looking for evhttp_bind_socket_with_fd - not found
-- Could NOT find LibUODBC (missing: LIBODBC_LIBRARIES LIBODBC_INCLUDE_DIRS)
-- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
-- Looking for curl_multi_select
-- Looking for curl_multi_select - not found
-- Looking for curl_multi_wait
-- Looking for curl_multi_wait - not found
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found LibXslt: /usr/lib64/libxslt.so (found version "1.1.26")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.0.1")
-- Using third-party bundled libsqlite3
-- Could NOT find DOUBLE_CONVERSION (missing: DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR)
-- Using third-party bundled double-conversion
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
-- Using third-party bundled LZ4
-- Could NOT find FastLZ (missing: FASTLZ_LIBRARY FASTLZ_INCLUDE_DIR)
-- Using third-party bundled fastlz
-- Could NOT find LIBZIP (missing: LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR_ZIP LIBZIP_INCLUDE_DIR_ZIPCONF)
-- Using third-party bundled libzip
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Performing Test JEMALLOC_VERSION_MINIMUM
-- Performing Test JEMALLOC_VERSION_MINIMUM - Success
-- Found jemalloc: /usr/local/lib/libjemalloc.so
-- Found Intel TBB
CMake Error at CMake/FindMcrypt.cmake:31 (message):
Could NOT find mcrypt library.
Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:306 (find_package)
CMake/HPHPSetup.cmake:125 (include)
third-party/CMakeLists.txt:18 (include)
-- Configuring incomplete, errors occurred!
See also "/usr/local/hhvm/CMakeFiles/CMakeOutput.log".
See also "/usr/local/hhvm/CMakeFiles/CMakeError.log".
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# hhvm --version
-bash: hhvm: command not found
gahoachma#remote [/usr/local/hhvm]#
Trying to compile compile libxml2 from source on OSX 10.9.5 xcode 6 with tools installed and i keep getting this error:
I have tried installing libxml2 with brew but couldn't get development version.
$ ./autogen.sh
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize: '/opt/lo/share/aclocal/libtool.m4'
libtoolize: '/opt/lo/share/aclocal/ltoptions.m4'
libtoolize: '/opt/lo/share/aclocal/ltsugar.m4'
libtoolize: '/opt/lo/share/aclocal/ltversion.m4'
libtoolize: '/opt/lo/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
acinclude.m4:4: warning: underquoted definition of AC_TRY_EVAL2
acinclude.m4:4: run info Automake 'Extending aclocal'
acinclude.m4:4: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.in:38: error: automatic de-ANSI-fication support has been removed
/opt/lo/share/aclocal-1.13/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
configure.in:38: the top level
autom4te: /opt/local/bin/gm4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal)
Makefile.am:23: error: WITH_TRIO_SOURCES does not appear in AM_CONDITIONAL
Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Makefile.am:18: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:18: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:18: to 'configure.in' and run 'aclocal' and 'autoconf' again.
Makefile.am:18: If 'LT_INIT' is in 'configure.in', make sure
Makefile.am:18: its definition is in aclocal's search path.
Makefile.am: installing './depcomp'
/opt/lo/share/automake-1.13/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/opt/lo/share/automake-1.13/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/opt/lo/share/automake-1.13/am/depend2.am: to 'configure.in' and run 'aclocal' and 'autoconf' again
/opt/lo/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/opt/lo/share/automake-1.13/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests
/opt/lo/share/automake-1.13/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/opt/lo/share/automake-1.13/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/opt/lo/share/automake-1.13/am/depend2.am: to 'configure.in' and run 'aclocal' and 'autoconf' again
example/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:28: error: WITH_PYTHON does not appear in AM_CONDITIONAL
python/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:34: error: Libtool library used but 'LIBTOOL' is undefined
python/Makefile.am:34: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
python/Makefile.am:34: to 'configure.in' and run 'aclocal' and 'autoconf' again.
python/Makefile.am:34: If 'LT_INIT' is in 'configure.in', make sure
python/Makefile.am:34: its definition is in aclocal's search path.
python/tests/Makefile.am:41: error: WITH_PYTHON does not appear in AM_CONDITIONAL
./autogen.sh: line 61: ./configure: No such file or directory
Can someone help me please.