Im trying to run automated test on jenkins cloud version : so i get this error :
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-0739wibs/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-0739wibs/cryptography/
You are using pip version 9.0.3, however version 22.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Import chromedriver on the env variable.
Import python path on the env variable.
/tmp/jenkins3940904514869226010.sh: line 16: pytest: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
I do `python3 -m pip install --upgrade pip
I get Requirement already satisfied: pip in ./venv/lib/python3.8/site-packages (22.0.3)
`
I have fixed it by adding this line on Execute shell
pip3 install --upgrade pip
Related
Traceback (most recent call last):
File "/opt/odoo151/odoo/odoo/service/server.py", line 1196, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "/opt/odoo151/odoo/odoo/modules/module.py", line 396, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "/opt/odoo151/odoo/odoo/addons/base/__init__.py", line 5, in <module>
from . import models
File "/opt/odoo151/odoo/odoo/addons/base/models/__init__.py", line 23, in <module>
from . import ir_mail_server
File "/opt/odoo151/odoo/odoo/addons/base/models/ir_mail_server.py", line 23, in <module>
from urllib3.contrib.pyopenssl import PyOpenSSLContext
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 62, in <module>
from ..packages import six
ImportError: cannot import name 'six'
I was getting above error while trying to install odoo 15
I have already tried this command for installing six package->
sudo apt-
get install python-six
..but getting same error again and again even after installing 'six' package.
Try to install six packages
pip3 install six
OR
pip install six
It would be helpful if you updated urllib3. After upgrading urllib, I was able to resolve this. Please try it once:
sudo pip3 install urllib3 --upgrade
Try following command:
sudo -H pip3 install firebase_admin pyOpenSSL
You can try the following commands from inside your odoo directoty.
sudo pip3 install -r requirements.txt
Tried several methods to install matplotlib on Ubuntu 16.04, but failed miserably. First I ran
sudo apt-get install python3-matplotlib, it always installed matplotlib 1.5.1 and I wanted the latest version 3.2.1. So I purged it and ran pip3 install matplotlib and what I got was always the following error
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-hse72gvy/matplotlib/setup.py", line 139
raise IOError(f"Failed to download jquery-ui. Please download "
^
SyntaxError: invalid syntax
which seems to suggest that I must install jQuery-UI. I haven't found any working solutions on the internet. Any more has a tip or solution?
I installed elastalert from git clone https://github.com/Yelp/elastalert.git and integrated with slack tool but when I try to run elastalert using command python -m elastalert.elastalert --verbose --rule example_frequency.yaml I am getting this error:
Traceback (most recent call last):
File "runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/elastalert.py", line 29, in <module>
from . import kibana
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/kibana.py", line 4, in <module>
import urllib.error
ImportError: No module named error
I expect output of getting alerts in slack tool
I just have the same problem. I used python 2.7 to install elastalert.
So I remove elastalert and reinstall it with python36
pip uninstall elastalert
sudo yum install python36 gcc python36-devel -y
sudo yum install python36-setuptools -y
sudo easy_install-3.6 pip
cd elastalert/
pip3.6 install "setuptools>=11.3"
python3.6 setup.py install
pip3.6 install -r requirements.txt
pip3.6 install elastalert
python36 -m elastalert.elastalert
Hope useful for you or someone that need
I am trying to deploy a project in Osx (Osx El Capitan 10.11.6), but I get the following error.
Deploying to project "webofscience" in
http://localhost:6800/addversion.json
Deploy failed:
Could they be administrator permissions ?, add some line in the host file ??
I can not think what I could do to solve it. Anyone have any suggestions on how to fix the error ??
source code: https://github.com/damlaozdemir/webofsciencescrapy
Console error
webofsciencescrapy-master sudo scrapyd-deploy local -p webofscience
Password:
Packing version 1518114723
Deploying to project "webofscience" in http://localhost:6800/addversion.json
Deploy failed: <urlopen error [Errno 61] Connection refused>
webofsciencescrapy-master
Solution:
I had 2 problems,
(1) The first one that my scrapyd installation was damaged. I threw the following error.
blablabla
File "/Library/Python/2.7/site-packages/twisted/protocols/tls.py", line 63, in <module>
from twisted.internet._sslverify import _setAcceptableProtocols
File "/Library/Python/2.7/site-packages/twisted/internet/_sslverify.py", line 38, in <module>
TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
exceptions.AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
I solved it in this link https://github.com/scrapy/scrapy/issues/2473 summary
sudo pip install -U pip
sudo pip install --upgrade scrapy
sudo pip install --upgrade twisted
sudo pip install --upgrade pyopenssl
sudo pip install Twisted==16.4.1
(2) The second problem is 'Deploy failed: ', for this problem it's necessary run the command scrapyd (layer 8 problem).
I set the docker image with Dockerfile below.
FROM gcr.io/tensorflow/tensorflow:latest-devel
RUN pip install --upgrade pip
RUN pip install scikit-learn
RUN pip install scipy
RUN pip install pandas
I am using Pycharm and set the remote Docker tf library.
The below file runs with an error which says ' AttributeError: 'module' object has no attribute 'datasets' '
https://github.com/tensorflow/tensorflow/blob/cc9bfbf8ef4a3dea6514ad939d238f7442188247/tensorflow/examples/skflow/text_classification_cnn.py
Do I have to compile some source codes before running the test code, or can I not run the code in Windows? Below is the error messages.
f58474f68f97:python -u /opt/project/examples/skflow/text_classification_cnn.py
Traceback (most recent call last):
File "/opt/project/examples/skflow/text_classification_cnn.py", line 30, in <module>
dbpedia = learn.datasets.load_dataset('dbpedia')
AttributeError: 'module' object has no attribute 'datasets'
Please update your TensorFlow to latest version. That docker image is probably outdated.