I get this error when I do pip install language-check:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/setup.py", line 595, in <module>
sys.exit(main())
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/setup.py", line 590, in main
run_setup_hooks(config)
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/setup.py", line 561, in run_setup_hooks
language_tool_hook(config)
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/setup.py", line 584, in language_tool_hook
download_lt()
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/download_lt.py", line 117, in download_lt
version = get_newest_possible_languagetool_version()
File "/private/var/folders/j6/yr6zgb4d1w308jkpc27p2t9w0000gn/T/pip-build-ymwzmypp/language-check/download_lt.py", line 81, in get_newest_possible_languagetool_version
universal_newlines=True)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/java', '-version']' returned non-zero exit status 1.
I've looked at this question python pip install error language_check and followed the instructions to install python setup.py install and I get this:
Traceback (most recent call last):
File "setup.py", line 595, in <module>
sys.exit(main())
File "setup.py", line 590, in main
run_setup_hooks(config)
File "setup.py", line 561, in run_setup_hooks
language_tool_hook(config)
File "setup.py", line 584, in language_tool_hook
download_lt()
File "/Users/allyzamarquez/ben/language_check/language-check/download_lt.py", line 117, in download_lt
version = get_newest_possible_languagetool_version()
File "/Users/allyzamarquez/ben/language_check/language-check/download_lt.py", line 81, in get_newest_possible_languagetool_version
universal_newlines=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/java', '-version']' returned non-zero exit status 1
Java 8 must be used until language-check fixes their installer script:
sudo apt install openjdk-8-jdk
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
pip install language-check
Related
I'm trying to install v8js on a local http/ssh server built with Debian 9.3, so I need to install v8 chromium engine first according to this documentation.
But when I'm trying to run the command line tools/dev/v8gen.py -vv x64.release -- is_component_build=true the command sends me this:
################################################################################
/usr/bin/python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release
Writing """\
is_debug = false
target_cpu = "x64"
""" to /home/dev/v8/out.gn/x64.release/args.gn.
/home/dev/v8/buildtools/linux64/gn gen out.gn/x64.release --check
Traceback (most recent call last):
File "tools/mb/mb.py", line 67, in Main
ret = self.args.func()
File "tools/mb/mb.py", line 317, in CmdGen
return self.RunGNGen(vals)
File "tools/mb/mb.py", line 856, in RunGNGen
ret, _, _ = self.Run(cmd)
File "tools/mb/mb.py", line 1378, in Run
ret, out, err = self.Call(cmd, env=env, buffer_output=buffer_output)
File "tools/mb/mb.py", line 1392, in Call
env=env)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
Traceback (most recent call last):
File "tools/dev/v8gen.py", line 304, in <module>
sys.exit(gen.main())
File "tools/dev/v8gen.py", line 298, in main
return self._options.func()
File "tools/dev/v8gen.py", line 166, in cmd_gen
gn_outdir,
File "tools/dev/v8gen.py", line 208, in _call_cmd
stderr=subprocess.STDOUT,
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-u', 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release', 'out.gn/x64.release']' returned non-zero exit status 1
Obviously I can not continue the following installation steps (I can't use ninja) and I do not really know about Python so a help would be really convenient :)
PS: I saw (I don't remember where) that there is probably minimum RAM (8GB) and Disk space (100GB) requirements to build v8, is that it ...?
I have a python 2.7.12 installed on ubuntu 10.04. I have updated pip from 8.1.2 to the last version (9.0.1) but now when I run pip I get this error:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/pip/__init__.py", line 233, in main
return command.main(cmd_args)
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python2.7/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python2.7/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
Any ideas to solve this issue?
I have had this error for a year now and still can't find a solution. I am using Linux Mint 17.3 Every time I try to install something using pip, I get a bunch of exceptions.
$ pip install -U scikit-learns
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/__init__.py", line 233, in main
return command.main(cmd_args)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
The "Command 'lsb_release -a' returned non-zero exit status 1" always popped up. I have installed multiple versions of python and tried deleting them manually and it still comes up with the same error.
If you can't help me solve this error, how can I uninstall all python files?
When I update Python and pip,I had the problem like this
your can run lsb_release, if your run shell: #lsb_release
It work like:
Traceback (most recent call last): File "/usr/bin/lsb_release", line
28, in import lsb_release ImportError: No module named
'lsb_release'
You can change file (/usr/bin/lsb_release) so the shebang changes from:
#! /usr/bin/python -Es
to:
#! /usr/bin/python2 -Es
where you specify the path /usr/bin/python2 to the old Python binary.
I am using the canopy distribution of python (version 2.7.6) on win8-64, and when trying to use pip to install the module pyaardvark, I get the following error:
!pip install pyaardvark
Collecting pyaardvark
Using cached pyaardvark-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "c:\...\appdata\local\temp\pip-build-5tvubw\pyaardvark\setup.py", line 13, in <module>
stderr=subprocess.STDOUT).rstrip()
File "c:\Program Files\Enthought\Canopy\App\appdata\canopy-1.4.0.1938.win-x86_64\lib\subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "c:\Program Files\Enthought\Canopy\App\appdata\canopy-1.4.0.1938.win-x86_64\lib\subprocess.py", line 709, in __init__
errread, errwrite)
File "c:\Program Files\Enthought\Canopy\App\appdata\canopy-1.4.0.1938.win-x86_64\lib\subprocess.py", line 957, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
i try to execute "make apps" for Hue, it shows the following error:
Creating virtual environment at /usr/local/hue/hue/build/env python2.7
/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py \ -qq
--no-site-packages /usr/local/hue/hue/build/env Traceback (most recent call last): File
"/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 1504, in main()
File "/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 547, in main use_distribute=options.use_distribute), File
"/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 637, in create_environment install_setuptools(py_executable,
unzip=unzip_setuptools) File
"/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 379, in install_setuptools _install_req(py_executable, unzip)
File
"/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 355, in _install_req cwd=cwd) File
"/usr/local/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py",
line 608, in call_subprocess % (cmd_desc, proc.returncode)) OSError:
Command /usr/local/hue/hue/build/env/b...on2.7 -c "#!python
\"\"\"Bootstrap setuptoo... " /usr/local/hue/hue/tools/virtu...7.egg
failed with error code 1
make: * [/usr/local/hue/hue/build/env/stamp] Error 1
how can i fixe the problem ?
thanks.
Are you building Hue on Ubuntu 14.04?
It looks very similar to this packaging bug on Ubuntu: https://groups.google.com/a/cloudera.org/forum/#!searchin/hue-user/Issue$20with$20Hue$20on$20Ubuntu$2014.04/hue-user/L9Y8X0V6Rww/QXESoj4RRZkJ
Apply https://issues.cloudera.org/browse/HUE-1369