I got this error having linter-pep8 installed.
Error: spawn pycodestyle ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
The error is caused by package being renamed from linter-pep8 to linter-pycodestyle v2.0.0
Solution:
Uninstall pep8 sudo pip uninstall pep8
Uninstall pycodestyle sudo pip uninstall pycodestyle
Again installing pycodestyle sudo pip install pycodestyle
Uninstall ATOM linter-pep8 package apm uninstall linter-pep8
Installing ATOM linter-pycodestyle package apm install linter-pycodestyle
Check if pycodestyle was installed correctly by executing which pycodestyle in terminal. It should return path to pycodestyle (eg. /usr/local/bin/pycodestyle). You might set this path in Executable Path setting of atoms' linter-pycodestyle package -but it should work by default
Related
I am trying to install pyOpenSSl and it shows the following error
Requirement already satisfied: six>=1.5.2 in /home/tony/hx-preinstaller-venv/lib/python3.6/site-packages (from pyOpenSSL)
Collecting cryptography>=3.3 (from pyOpenSSL)
Using cached https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-8toyhikv/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
the command i ran
pip install pyOpenSSL
Thanks in advance
Try upgrade pip and install setuptools-rust:
pip install --upgrade pip
pip install setuptools-rust
Have you tried upgrading pip itself first?
pip install --upgrade pip
I had same issue while using 'scrapy' and following command fixed everything for me:
python3 -m pip install scrapy --upgrade --force --user
Try installing setuptools_rust first:
pip install setuptools_rust
And then installing pyOpenSSL again
Use this command if you are on linux
for python3
python3 -m pip install --upgrade pip
for python2
python2 -m pip install --upgrade pip
this worked for me.
Upgrading the pip this way worked for me:
python -m pip install --upgrade pip
I am on RHEL. I Installed python by following https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-centos-7/. I am getting an error when trying to install requests-kerberos
pip3 install requests-kerberos
returns
src/kerberos.c:17:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
sudo yum install gcc
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Nothing to do
Then I tried
sudo yum install python3-devel
and got
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No package python3-devel available.
Error: Nothing to do
Then I tried
sudo yum install python36-devel
and got
Error: Package: python36-devel-3.6.8-2.el7.ius.x86_64 (ius)
Requires: python36 = 3.6.8-2.el7.ius
Installed: python3-3.6.8-10.el7.x86_64 (#rhel-7-server-rpms)
python36 = 3.6.8-10.el7
Available: python36-3.6.8-2.el7.ius.x86_64 (ius)
python36 = 3.6.8-2.el7.ius
Error: Package: python36-devel-3.6.8-2.el7.ius.x86_64 (ius)
Requires: python36-libs(x86-64) = 3.6.8-2.el7.ius
Installed: python3-libs-3.6.8-10.el7.x86_64 (#rhel-7-server-rpms)
python36-libs(x86-64) = 3.6.8-10.el7
Available: python36-libs-3.6.8-2.el7.ius.x86_64 (ius)
python36-libs(x86-64) = 3.6.8-2.el7.ius
You are on RHEL, yet you follow a random Centos blog post. Below is a summary of some suggestions for a better python36 on both Centos and RHEL (6 or 7) from Red Hat Developers Blog:
Enable SCL
Software Collections are RedHat Satellite repositories that also work if your servers are air-gapped i.e. have no internet.
On Centos:
yum install centos-release-scl
On RHEL7
yum-config-manager --enable rhel-server-rhscl-7-rpms
Install the main SCL package:
yum install rh-python36
Start using the Software Collection you just installed:
scl enable rh-python36 bash
Upgrade pip3 with itself, and update setuptools:
pip3 install --upgrade pip
pip3 install --upgrade setuptools
Install requests-kerberos:
pip3 install requests-kerberos
Notes:
is equivalent to bash sourcing the file /opt/rh/rh-python36/enable
installing the main packages is sufficient by having these:
I like to install "rgl" package version 0.100.19 (since the other package depends on this version) in anaconda/jupyter notebook environment and received error.
configure: error: X11 not found but required, configure aborted
I tried
sudo apt-get install xorg
sudo apt-get install libx11-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install r-cran-rgl
conda install -c conda-forge xorg-libx11
conda install -c anaconda mesa
but, they did not help yet.
install.packages("rgl")
configure: error: X11 not found but required, configure aborted
I came across this problem, my solution was to:
$ conda install r-rgl
It seems like the conda install goes to the conda R (see this with which R), and the way I found to get rgl installed on conda's R version was via conda install.
I'm using R 3.3.2 and Ubuntu 16.10. I'm unable to install rgl and rgdal packages.
When I use
install.packages("rgl")
gives the following error message:
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
When I use
install.packages("rgdal")
gives the following error message:
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
Edited
When I use
sudo apt-get install r-cran-rgl
in Ubuntu Terminal, it says
r-cran-rgl is already the newest version (0.95.1441-2)
However, the latest version of rgl is 0.96.0.
When I use
sudo apt-get install libgdal-dev libgeos++-dev
it throws the following error:
The following packages have unmet dependencies:
libgdal-dev : Depends: libopenjp2-7-dev but it is not going to be installed
I found a solution that was useful for me here: http://robinlovelace.net/r/2013/11/26/installing-rgdal-on-ubuntu.html.
In short, the solution would be this tree command lines:
sudo apt-get install aptitude # install aptitude as an alternative to apt-get
sudo aptitude install libgdal-dev # install the package (you may have to respond to queries here)
sudo aptitude install libproj-dev # install the proj.4 projection library
For rgl, just do sudo apt-get install r-cran-rgl.
For rgdal, follow the recommendation of the spatial folks eg here for sf and do this
add ubuntugis-unstable to the package repositories (e.g. with sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable and then sudo apt-get install libgdal-dev libgeos++-dev)
For general 'R on Ubuntu or Debian' questions, go to the r-sig-debian list.
Edit: Note that you don't need need ubuntugis-unstable repo if the current/older libgdal, libproj4 versions are good enough for you. Those are in the Ubuntu distro so just do sudo apt-get install ....
These installations worked for me provided that, in addition, I installed libxerces-c28. The need for the related shared object was indicated in the error log the first time I tried, after doing the installations indicated (libgdal, libgdal-dev, etc)
Attempting to compile dplyr in Ubuntu (r-base and r-base-dev are up to date):
R -e 'install.packages("dplyr", repos="http://cran.rstudio.com/")'
Compilation gives this error:
RcppExports.cpp: ..fatal error: Rcpp.h: no such file or directory
I tried uninstalling and re-installing Rcpp:
sudo apt-get remove r-cran-rcpp
sudo apt-get install r-cran-rcpp
I tried to compile again but got same error.
Rcpp related problem is common in fedora27.
Make sure R-Rcpp-devel and R-core-devel are installed.
dnf install R-core-devel
dnf install R-Rcpp-devel