I have successfully installed it in centos7 in VMware before.
However, in the same way, there was a problem installing manually from centos7 in docker.
(The official build of CentOS.)
(venv) [jykim#0f0090962efa dev]$ cat /etc/*release*
CentOS Linux release 7.9.2009 (Core)
When airflow was installed with the command below, no files were created in the specified AIRFLOW_HOME directory.
pip3.8 install 'apache-airflow[postgres]'
Naturally, we registered AIRFLOW_HOME with .bashrc and confirmed it was working fine.
(venv) [jykim#0f0090962efa ~]$ pwd
/home/jykim
(venv) [jykim#0f0090962efa ~]$ cd $AIRFLOW_HOME/
(venv) [jykim#0f0090962efa airflow_home]$ pwd
/home/jykim/dev/airflow/airflow_home
Reinstalling python resulted in the same result.
This blew the day away. I need your help!
(venv) [jykim#0f0090962efa airflow_home]$ python -V
Python 3.8.8
(venv) [jykim#0f0090962efa airflow_home]$ pip show apache-airflow
Name: apache-airflow
Version: 2.0.2
Installing the Airflow package will not create configuration files in the Airflow home directory. Run Airflow once for it to create the default configuration files, e.g. with:
airflow info
Related
While installing LabelImg in M1 Mac using below command
pip install pyqt5 lxml
This is the error I got
ERROR: pyqt5 from https://files.pythonhosted.org/packages/7c/5b/e760ec4f868cb77cee45b4554bf15d3fe6972176e89c4e3faac941213694/PyQt5-5.14.0.tar.gz#sha256=0145a6b7de15756366decb736c349a0cb510d706c83fda5b8cd9e0557bc1da72 has a pyproject.toml file that does not comply with PEP 518: 'build-system.requires' contains an invalid requirement: 'sip >=5.0.1 <6'
How to install lableImg annotation tool in M1 Mac?
I got it to work by using the following commands
brew install pyqt#5
pip install labelimg
And that's it, it just works
You just need to type labelimg in the Terminal and the app will start running
I don't know why they don't tell you this in the installation guide
Alrighty!
On MacOS Monterey, none of the other solutions posted here solved this problem for me. However, I managed to easily solve the issue, without a virtual environment or too much fiddling about like so:
Firstly, you have to download all labelImg packages from this link:
https://github.com/tzutalin/labelImg#macos
(You can download it as a .zip file or clone it)
Unzip and then in your terminal cd into whatever directory you downloaded the above files to.
Then run the following commands in order:
pyrcc5 -o libs/resources.py resources.qrc
Then,
pip3 install lxml
Finally,
python3 labelImg.py
It should run without an issue now.
You can go one of two ways:
Using brew:
You can use homebrew to install the dependencies - like qt and libxml2. This will let your package manager handle everything and generally should solve the problem with the . Then you can run
python3 labelimg.py
Using Virtual Environments:
This is the more recommended way to go about in such cases. You can use conda, pipenv or venv to create a virtual environment which is isolated from your system python installation. Then you can try to install it as explained in the README.rst in the root of the repository:
brew install python3
pip3 install pipenv
pipenv run pip install pyqt5==5.12.1 lxml
pipenv run make qt5py3
pipenv run python3 labelImg.py
[Optional] rm -rf build dist; python setup.py py2app -A;mv "dist/labelImg.app" /Applications
You can try the two methods and and get back with the errors if there are any.
This is my note.
I just succeed on my Mac M1 Chip
CHECK THIS OUT!
Installation of labelimg on mac m1 chip
my first reference
my second reference
First, you must use terminal with rosetta version
Then, you already have python3
Then...
[Done]
# check where python3 is
$ where python3
# create env
$ /usr/bin/python3 -m venv env
# check env is
$ where env
# activate env list
$ source env/bin/activate
# updated to the newest
$ pip install --upgrade pip
# installation of PyQt5
$ pip install PyQt5
# start to run labelImg.py
$ cd Documents/repos/labelImg
$ pip3 install pyqt5 lxml
$ make qt5py3
# [run ok!!]
$ python3 labelImg.py
Using Conda
Create a virtual environment in conda and activate it
conda create -n venv
conda activate venv
Install pyqt using conda
conda install pyqt
Install lxml using pip
pip install lxml
Change directory to the downloaded/cloned labelImg folder
cd path/to/labelImg/folder/
Make qt5py3
make qt5py3
Run LabelImg
python labelImg.py
The issue:
The autocomplete with the tab key is working with the default kernel but not with the kernel created for my virtual env.
Is there an additional procedure to make it work ?
setup
pip install jupyterlab
mkdir project
cd project
pipenv install ipykernel
pipenv shell
python -m ipykernel install --user --name=`basename $VIRTUAL_ENV`
jupyter notebook
After that procedure I have a good setup:
notebook are launching
python is run from the virtual env as expected
my new kernel is proposed when creating a notebook
Packages installed on the virtual env are imported correctly
Downgrading jedi does the trick : pipenv install jedi==0.17.2
I am trying to install Airflow on Ubuntu 18.04 by running the following command:
pip install apache-airflow
And I get the following error:
OpenID Flask-JWT-Extended sqlalchemy-utils
ERROR: flask 1.1.2 has requirement Werkzeug>=0.15, but you'll have werkzeug 0.14.1 which is incompatible.
How can I resolve this error and install Airflow?
Judging by the error, you are probably having a version conflict for one of the Airflow's dependencies: Flask requires Werkzeug module with a version >=0.15, but you have version 0.14.1 installed.
To avoid the problem, you can install Airflow into a Python virtual environment. For example, using pipenv.
Install pipenv into your user's install directory:
pip3 install --user pipenv
export PATH=$PATH:~/.local/bin/
Install Airflow into a Python virtual environment:
mkdir my_airflow
cd my_airflow
pipenv install apache-airflow
Activate the virtual environment:
pipenv shell
Initialize the Airflow's database:
airflow initdb
At this point you should have a working Airflow installation. Notice, it is not a production ready installation, but it is enough to continue with the tutorial.
Getting the following error after running pip install airflow[postgres] command:
> raise RuntimeError("By default one of Airflow's dependencies installs
> a GPL "
>
> RuntimeError: By default one of Airflow's dependencies installs a GPL
> dependency (unidecode). To avoid this dependency set
> SLUGIFY_USES_TEXT_UNIDECODE=yes in your environment when you install
> or upgrade Airflow. To force installing the GPL version set
> AIRFLOW_GPL_UNIDECODE
I am trying to install in Debian 9
Try the following:
export AIRFLOW_GPL_UNIDECODE=yes
OR
export SLUGIFY_USES_TEXT_UNIDECODE=yes
Using export makes the environment variable available to all the subprocesses.
Also, make sure you are using pip install apache-airflow[postgres] and not pip install airflow[postgres]
Which should you use: if using AIRFLOW_GPL_UNIDECODE, airflow will install a dependency that is under GPL license, which means you won't be able to distribute your resulting application commercially. If that's a problem for you, go for SLUGIFY_USES_TEXT_UNIDECODE.
If you are installing using sudo run one of these commands:
sudo AIRFLOW_GPL_UNIDECODE=yes pip3 install apache-airflow
OR
sudo SLUGIFY_USES_TEXT_UNIDECODE=yes pip3 install apache-airflow
NOTE: If pip3 (python3) does not work for you, try pip command.
The pip command can be pointing to python2 or python3 installation depending on your system. Verify this by running pip --version.
Windows users can use the command below before installing apache-airflow:
$ set AIRFLOW_GPL_UNIDECODE=yes
then
$ pip install apache-airflow
In case you are installing the airflow on Windows and through Python terminal then you need to write this:
Set SLUGIFY_USES_TEXT_UNIDECODE=yes
pip install apache-airflow[postgres]
It worked with me after I struggled with trying many other options. Hope this will work with you too.
Below command should install apache-airflow and lets you pull changes into PyCharm for building DAGs and coding for Airflow.
SLUGIFY_USES_TEXT_UNIDECODE=yes
pip install apache-airflow
Also, if you are installing using sudo you can use:
export AIRFLOW_GPL_UNIDECODE='yes'
sudo -E pip3 install apache-airflow
(or use SLUGIFY_USES_TEXT_UNIDECODE)
Run the following command in your python terminal: SLUGIFY_USES_TEXT_UNIDECODE=yes pip install apache-airflow==1.10.0
Use below command to install apache-airflow
sudo SLUGIFY_USES_TEXT_UNIDECODE=yes \
pip install apache-airflow[async,devel,celery,crypto,druid,gcp_api,jdbc,hdfs,hive,kerberos,ldap,password,postgres,qds,rabbitmq,s3,samba,slack]
I have installed docker and image of splash by
docker pull scrapinghub/splash
and started the container by
docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash
which its result can be seen in the picture below
but, the problem is that in R after running install_splash() I receive this error:
Error: Python module docker was not found.
Detected Python configuration:
python: C:\Users\m-joudy\AppData\Local\Programs\Python\Python36\\python.exe
libpython: C:/Users/m-joudy/AppData/Local/Programs/Python/Python36/python36.dll
pythonhome: C:\Users\m-joudy\AppData\Local\Programs\Python\Python36
version: 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
Architecture: 64bit
numpy: [NOT FOUND]
docker: [NOT FOUND]
python versions found:
C:\Users\m-joudy\AppData\Local\Programs\Python\Python36\\python.exe
C:\Users\m-joudy\AppData\Local\Programs\Python\PYTHON~1\\python.exe
From splashr's README we learn that the docker commands you used and install_splash() are alternatives, i.e. after
docker pull scrapinghub/splash
docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash
you should be ready to use
library(splashr)
splash_active()
and be set to use splash via splashr. If you still want to make install_splash() work, then the error message you quoted tells us, that the python modules docker and numpy are missing. How you install python packages depends on your installation, but one poular way is to use pip, i.e.
pip install numpy
pip install docker
Potentially within a virtual environment.