I had installed Pylint and also configured in Eclipse, but when i tried executing python program following error occures:
PyLint: Executing command line: D:\dist\pylint-1.4.4\setup.py
D:\Practice\sam.py PyLint: The stdout of the command line is: PyLint:
The stderr of the command line is: invalid command name
D:\dist\pylint-1.4.4\setup.py D:\Practice\sam.py
Related
I am new to Airflow. I installed the airflow in Python 3.6.8 using the command:
pip install \
apache-airflow==1.10.12 \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.7.txt"
The setup was complete with no error. However when I run the 'airflow' command, it shows the error like:
File "/Users/a13220361/airflow_final/bin/airflow", line 4, in <module>
__import__('pkg_resources').run_script('apache-airflow==1.10.12', 'airflow')
File "/Users/a13220361/airflow_final/lib/python3.6/site-packages/pkg_resources/__init__.py", line 664, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Users/a13220361/airflow_final/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1435, in run_script
.format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/airflow' not found in metadata at '/Users/a13220361/airflow_final/lib/python3.6/site-packages/apache_airflow-1.10.12.dist-info'
I cannot understand what this error is. Please help.
Hi i'm currently tring to install pyautogui with pip but i get this error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\elève\appdata\local\programs\python\python38-32\python.exe' 'c:\users\elève\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\ELVE~1\AppData\Local\Temp\tmpo7dknhnd'
cwd: C:\Users\Elève\AppData\Local\Temp\pip-install-kccgkr83\pymsgbox
Complete output (14 lines):
running dist_info
creating C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info
writing C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\PKG-INFO
writing dependency_links to C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\dependency_links.txt
writing top-level names to C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\top_level.txt
writing manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe8 in position 0: unexpected end of data (sitecustomize.py, line 7)
warning: no files found matching '*.py' under directory 'pymsgbox'
writing manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
creating 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.dist-info'
error: invalid command 'bdist_wheel'
ERROR: Command errored out with exit status 1: 'c:\users\elève\appdata\local\programs\python\python38-32\python.exe' 'c:\users\elève\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\ELVE~1\AppData\Local\Temp\tmpo7dknhnd' Check the logs for full command output.
I've tried to update pip already.
You can install PyAutoGui using either:
pip install pyautogui
OR by running the code given below in PyCharm/Shell
from subprocess import *
from sys import *
call([executable, "-m", "pip", "install", "pyautogui"])
To execute pyrouge I should generate wordnet db file (on windows) by running this command:
cd pyrouge-master\tools\ROUGE-1.5.5\data
perl WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db
But I got this error:
Can't locate DB_File.pm in #INC (you may need to install the DB_File module) (#INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at WordNet-2.0-Exceptions/build
ExeptionDB.pl line 2.
BEGIN failed--compilation aborted at WordNet-2.0-Exceptions/buildExeptionDB.pl l
ine 2.
So I tried to install DB_File using CPAN cpan -i DB_File, but i got this error
version.c:30:16: fatal error: db.h: No such file or directory
compilation terminated.
dmake.exe: Error code 129, while making 'version.o'
PMQS/DB_File-1.841.tar.gz
C:\Perl64\site\bin\dmake.exe -- NOT OK
I am trying to install sentry by following the instruction from the link:
However when I try to execute command pip install -U sentry, I receive the error InstallationError: Command python setup.py egg_info failed with error code 1 in /webapps/sentry/env/build/symsynd
Here is the detail from log file:
self.run_setup(setup_script, setup_base, args)
File "/webapps/sentry/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setup.py egg_info:
unable to execute 'clang': No such file or directory
unable to execute 'clang': No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
It would be nice if someone can figure out what am I doing wrong.
Thank you,
Vady
You need a C compiler to build the symsynd dependency.
If you are on a Debian based distribution (Ubuntu, etc.) just do :
sudo apt-get install clang
It seems that specifying a C compiler will be ok, but not. In some packages clang is hard-coded. The only way is to install clang.
I'm on OS X and I'm trying to get python3 working in sublime. I installed python3 via homebrew and I installed numpy for both python and python3 using pip. In order to be able to build python3 I added the following build file for sublime:
{
"path": "/usr/local/Cellar/python3/3.4.2_1/bin",
"cmd": ["python3", "-u", "$file"],
"env":{},
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
Finally I'm trying out the build system on the following test file:
#test.py
import numpy
def square(x):
return x * x
if __name__ == '__main__':
print("test: square(42) ==", square(42))
If I build this with the build system set to python (which uses the OS X default version of python 2.7.8) then I get the following (correct) output when I build in sublime:
('test: square(42) ==', 1764)
[Finished in 0.1s]
However, if I set my build system to build with python3 I get the following strange results when I build in sublime:
sh: sysctl: command not found
sh: grep: command not found
sh: sw_vers: command not found
sh: grep: command not found
test: square(42) == 1764
[Finished in 0.1s]
I still get the correct output but also get a bunch of command not found. What's even stranger, if I save this script and run it directly from the terminal using python test.py for python 2.7.8 or using python3 test.py for python 3 I get the correct output in the terminal. Additionally, if I remove import numpy from test.py I no longer get any of the command not found errors in my sublime output.
This problem seems to only show up in sublime using python3 with the above build file and only when I'm trying to import a library installed with pip. If I change the above import in test.py to sys then it will build in sublime without any error messages.
I think I have an answer for you.
Your path variable
"path": "/usr/local/Cellar/python3/3.4.2_1/bin",
needs to append to the existing $PATH. Simply replacing that line in your build file with
"path": "$PATH:/usr/local/Cellar/python3/3.4.2_1/bin",
fixed it for me.