#Bitcoin Etf • Raw Ranked Sites

ZoneMinder and zmeventnotification with GPU Ubuntu 20.04 (Setup notes)

After much trial and error I finally managed to get a fresh install of Ubuntu Server 20.04 Focal running with ZoneMinder and zmeventnotification server with CUDA support. I decided to make a quick write up including all references I pulled together to make this all work.
If I made any mistakes let me know and I will correct them. I hope I didn't get too out of control with the formating. :P
My setup:
This assumes you're starting with a fresh install of Ubuntu Server 20.04 with openssh installed.
Here we go:
###Install some tools
sudo apt install vim nfs-kernel-server software-properties-common 
###Install Nvidia Drivers and Cuda Toolkit
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt install nvidia-driver-440 nvidia-headless-440 nvidia-cuda-toolkit sudo reboot 
###Download cuDNN that matches "nvcc -V" https://developer.nvidia.com/rdp/cudnn-download
###I used scp to upload the .tgz file to the server. Of course, change to suite your environment.
from local shell:
scp -i ~/.ssh/keys/id_rsa_gpu cudnn-10.1-linux-x64-v7.6.5.32.tgz [email protected]: 
from server shell:
tar -zxvf cudnn-10.1-linux-x64-v7.6.5.32.tgz sudo cp -P lib64/* /uslib/x86_64-linux-gnu/ sudo cp -P include/* /usinclude/x86_64-linux-gnu/ cd ~ 
###Download compile and install OpenCV with cuda and cuDNN####
#REF: https://cuda-chen.github.io/image%20processing/programming/2020/02/22/build-opencv-dnn-module-with-nvidia-gpu-support-on-ubuntu-1804.html
##Install OpenCV dependencies
sudo apt-get install build-essential cmake unzip pkg-config git \ libjpeg-dev libpng-dev libtiff-dev \ libavcodec-dev libavformat-dev libswscale-dev \ libv4l-dev libxvidcore-dev libx264-dev \libgtk-3-dev \ libatlas-base-dev gfortran \ python3-dev python3-pip python2 
##Installing pip and numpy
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py sudo python2 get-pip.py pip install numpy 
#Ubuntu 20.04 uses gcc version 9 which is not compatible with OpenCV source code###Change version using update-alternatives
#REF: https://linuxconfig.org/how-to-switch-between-multiple-gcc-and-g-compiler-versions-on-ubuntu-20-04-lts-focal-fossa
sudo update-alternatives --install /usbin/gcc gcc /usbin/gcc-7 7 sudo update-alternatives --install /usbin/g++ g++ /usbin/g++-7 7 sudo update-alternatives --install /usbin/gcc gcc /usbin/gcc-8 8 sudo update-alternatives --install /usbin/g++ g++ /usbin/g++-8 8 sudo update-alternatives --install /usbin/gcc gcc /usbin/gcc-9 9 sudo update-alternatives --install /usbin/g++ g++ /usbin/g++-9 9 sudo update-alternatives --config gcc 
#select option 2 (gcc-8)
###Download OpenCV Source Code
cd ~ mkdir opencv cd opencv git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git cd opencv git checkout 4.3.0 cd .. cd opencv_contrib git checkout 4.3.0 cd ../opencv 
###Configure OpenCV
mkdir build && cd build cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D INSTALL_C_EXAMPLES=OFF \ -D OPENCV_ENABLE_NONFREE=ON \ -D WITH_CUDA=ON \ -D WITH_CUDNN=ON \ -D OPENCV_DNN_CUDA=ON \ -D ENABLE_FAST_MATH=1 \ -D CUDA_FAST_MATH=1 \ -D CUDA_ARCH_BIN=6.1 \ -D WITH_CUBLAS=1 \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv/opencv_contrib/modules/ \ -D HAVE_opencv_python3=ON \ -D PYTHON_EXECUTABLE=/usbin \ -D BUILD_EXAMPLES=ON .. 
##Use nproc to display number of available cores. In my case I use "-j12" to compile with 12 cores.
make -j12 sudo make install sudo ldconfig 
###Install Face Recognition
sudo -H pip3 install face_recognition 
###Install zoneminder
#REF: https://zoneminder.readthedocs.io/en/stable/installationguide/ubuntu.html#easy-way-ubuntu-18-04-bionic
sudo tasksel install lamp-server sudo -i add-apt-repository ppa:iconnozoneminder-1.34 apt update apt upgrade rm /etc/mysql/my.cnf cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf vi /etc/mysql/my.cnf 
#Add the following line below [mysqld] and save
sql_mode = NO_ENGINE_SUBSTITUTION 
##Restart mysql, install zoneminder setup apache2 and restart service
sudo systemctl restart mysql apt install zoneminder chmod 740 /etc/zm/zm.conf chown root:www-data /etc/zm/zm.conf chown -R www-data:www-data /usshare/zoneminde adduser www-data video a2enmod cgi a2enmod rewrite a2enconf zoneminder a2enmod expires a2enmod headers systemctl enable zoneminder systemctl start zoneminder vi /etc/php/7.4/apache2/php.ini ##find [Date] and change timezone date.timezone = America/Toronto systemctl reload apache2 exit cd ~ 
#Little side note: fmpeg on Focal 20.04 already supports cuda so it works out of the box without having to recompile
###Populate timezone for mysql / set timezone to to suit your location
mysql_tzinfo_to_sql /usshare/zoneinfo/America/ | sudo mysql -u root -p mysql sudo mysql -e "SET GLOBAL time_zone = 'Toronto';" 
###Create selfsinged ssl certificates and setup HTTPS#Side note: you'll need to use letsencrypt with a domain name if you plan on pushing notification with alert photos. It won't work with self signed and IP addresses.
#For the purposes of these notes however I'm going to use a self signed certificate.
sudo mkdir /etc/zm/apache2 sudo mkdir /etc/zm/apache2/ssl sudo openssl req -x509 -nodes -days 4096 -newkey rsa:2048 -keyout /etc/zm/apache2/ssl/zoneminder.key -out /etc/zm/apache2/ssl/zoneminder.crt sudo chown www-data:www-data /etc/zm/apache2/ssl/* sudo a2enmod ssl sudo vi /etc/apache2/sites-enabled/000-default.conf 
#Replace / Add the following (Change IP address to suite your environment)
 Redirect / https://10.0.0.18/   SSLEngine on SSLCertificateFile /etc/zm/apache2/ssl/zoneminder.crt SSLCertificateKeyFile /etc/zm/apache2/ssl/zoneminder.key # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com ServerAdmin webmaster[email protected] DocumentRoot /vawww/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 
###Restart apache2 server
sudo systemctl restart apache2 
###Install zmeventnotification#REF: https://zmeventnotification.readthedocs.io/en/stable/guides/install.html
git clone https://github.com/pliablepixels/zmeventnotification.git cd zmeventnotificationgit fetch --tagsgit checkout $(git describe --tags $(git rev-list --tags --max-count=1)) 
###Edit the following entries from secrets.ini file
vi secrets.ini ZMES_PICTURE_URL=https://localhost/zm/index.php?view=image&eid=EVENTID&fid=objdetect&width=600 ZM_USER=user ZM_PASSWORD=password ZM_PORTAL=https://localhost/zm ZM_API_PORTAL=https://localhost/zm/api ES_CERT_FILE=/etc/zm/apache2/ssl/zoneminder.crt ES_KEY_FILE=/etc/zm/apache2/ssl/zoneminder.key 
###Install Dependencies for zmeventnotifications
sudo perl -MCPAN -e "install Crypt::MySQL" sudo perl -MCPAN -e "install Config::IniFiles" sudo perl -MCPAN -e "install Crypt::Eksblowfish::Bcrypt" sudo apt-get install libyaml-perl sudo perl -MCPAN -e "install Net::WebSocket::Server" sudo apt-get install libjson-perl perl -MCPAN -e "install LWP::Protocol::https" 
#If you want to use MQTT:
perl -MCPAN -e "install Net::MQTT::Simple" 
#Install gdown in order to download .weights from google drive links#You can also just download it locally and scp to server. I just thougth this was a more direct way.
sudo pip install gdown pip install gdown sudo ./install.shcd /valib/zmeventnotification/models/cspn 
#Remember when using gdown to change "open?" to "uc?" in download link
sudo gdown https://drive.google.com/uc?id=1_NnfVgj0EDtb_WLNoXV8Mo7WKgwdYZCc 
#Change ownership to www-data
sudo chown www-data:www-data csresnext50-panet-spp-original-optimal_final.weights 
###Test zmeventserver
sudo -u www-data zmeventnotification.pl --config /etc/zm/zmeventnotification.ini 
#If everything seems to be working Ctrl + C to stop
#Navigate to your zoneminder url http://ipaddress/zm and verify it gets redirected to https://ipaddress/zm and accept the self-signed certificate.
#Go to Options > System and enable "OPT_USE_EVENTNOTIFICATION"
#Also ensure to enable "AUTH_HASH_LOGINS"
#Setup Zoneminder as per:
https://zoneminder.readthedocs.io/en/stable/userguide/gettingstarted.html
Done!
I hope this helps!!
submitted by Helipil0t to ZoneMinder [link] [comments]

pip "explosion"?

I'm having a hard time troubleshooting an issue with a role: It's configured for Ubuntu 18, CentOS 7, and Fedora 29 on a Vagrant platform. What appears to happen when the following step is run is that the pip install goes crazy for some reason and ends up filling the Vagrant VM's disk.
- name: Install Molecule and friends pip: name: - "molecule=={{ molecule_ver }}" - "{{ ansible_lint }}=={{ ansible_lint_ver }}" - "testinfra=={{ testinfra_ver }}" - "cryptography=={{ cryptography_ver }}" extra_args: "--ignore-installed PyYAML" state: present changed_when: false 
The first error we end up with (after 40K lines of log messages) is like this:
error: [Errno 28] No space left on device\ ERROR: Failed building wheel for ansible\ 
It looks odd to me because the profuse log messages seem to show that Ansible is building every available module, and not just the ones requested and their dependencies. For example:
copying lib/ansible/modules/cloud/amazon/_aws_az_facts.py -> build/lib/ansible/modules/cloud/amazon\ copying lib/ansible/modules/cloud/amazon/_aws_acm_facts.py -> build/lib/ansible/modules/cloud/amazon\ copying lib/ansible/modules/cloud/amazon/__init__.py -> build/lib/ansible/modules/cloud/amazon\ creating build/lib/ansible/modules/cloud/alicloud\ copying lib/ansible/modules/cloud/alicloud/ali_instance_info.py -> build/lib/ansible/modules/cloud/alicloud\ copying lib/ansible/modules/cloud/alicloud/ali_instance.py -> build/lib/ansible/modules/cloud/alicloud\ copying lib/ansible/modules/cloud/alicloud/_ali_instance_facts.py -> build/lib/ansible/modules/cloud/alicloud\ 
This goes on for thousands of lines.
I've tried a few different approaches to debug this:
  1. Run molecule test --destroy never and login and run the equivalent pip command from the shell in the client VM. This works as expected and does not have any errors. The pip option "--ignore-installed PyYAML" does not seem to make any difference.
  2. Change the step to look like this:
- name: Install Molecule and friends command: "/usbin/pip2 install --ignore-installed PyYAML molecule=={{ molecule_ver }} {{ ansible_lint }}=={{ ansible_lint_ver }} testinfra=={{ testinfra_ver }} cryptography=={{ cryptography_ver }}" changed_when: false 
The result in this case is the same as above (errored out because it still ran out of space).
I'm not sure what to make of this: Running either the pip or command modules from Ansible fails, but running pip by hand in the client Vagrant VM works okay.
Some important details:
Has anyone seen this kind of behavior before? Any suggestions for further investigation or debugging? I feel like I'm missing something obvious here.
UPDATE:
So the role in question was installing Molecule, and apparently, running out of space was a real thing: Some quick hacking and slashing reveals:
  1. Molecule will install correctly in a ~60 Gb Docker container, but not in a ~20 Gb Vagrant box
  2. Molecule's dependencies are gigantic:
``` [[email protected] /]# pipdeptree -p molecule molecule==2.22 - ansible [required: >=2.5, installed: 2.9.7] - cryptography [required: Any, installed: 2.9.2] - cffi [required: >=1.8,!=1.11.3, installed: 1.14.0] - pycparser [required: Any, installed: 2.20] - enum34 [required: Any, installed: 1.1.10] - ipaddress [required: Any, installed: 1.0.23] - six [required: >=1.4.1, installed: 1.14.0] - jinja2 [required: Any, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - PyYAML [required: Any, installed: 5.3.1] - ansible-lint [required: >=4.0.2,<5, installed: 4.2.0] - ansible [required: >=2.7, installed: 2.9.7] - cryptography [required: Any, installed: 2.9.2] - cffi [required: >=1.8,!=1.11.3, installed: 1.14.0] - pycparser [required: Any, installed: 2.20] - enum34 [required: Any, installed: 1.1.10] - ipaddress [required: Any, installed: 1.0.23] - six [required: >=1.4.1, installed: 1.14.0] - jinja2 [required: Any, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - PyYAML [required: Any, installed: 5.3.1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - pyyaml [required: Any, installed: 5.3.1] - ruamel.yaml [required: >=0.15.34,<1, installed: 0.16.10] - ruamel.ordereddict [required: Any, installed: 0.4.14] - ruamel.yaml.clib [required: >=0.1.2, installed: 0.2.0] - six [required: Any, installed: 1.14.0] - anyconfig [required: ==0.9.7, installed: 0.9.7] - cerberus [required: >=1.3.1, installed: 1.3.2] - setuptools [required: Any, installed: 44.1.0] - click [required: >=6.7, installed: 7.1.1] - click-completion [required: >=0.3.1, installed: 0.5.2] - click [required: Any, installed: 7.1.1] - enum34 [required: Any, installed: 1.1.10] - jinja2 [required: Any, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - shellingham [required: Any, installed: 1.3.2] - six [required: Any, installed: 1.14.0] - colorama [required: >=0.3.9, installed: 0.4.3] - cookiecutter [required: >=1.6.0, installed: 1.7.2] - binaryornot [required: >=0.4.4, installed: 0.4.4] - chardet [required: >=3.0.2, installed: 3.0.4] - click [required: >=7.0, installed: 7.1.1] - Jinja2 [required: <3.0.0, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - jinja2-time [required: >=0.2.0, installed: 0.2.0] - arrow [required: Any, installed: 0.15.5] - backports.functools-lru-cache [required: >=1.2.1, installed: 1.6.1] - python-dateutil [required: Any, installed: 2.8.1] - six [required: >=1.5, installed: 1.14.0] - jinja2 [required: Any, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - MarkupSafe [required: <2.0.0, installed: 1.1.1] - poyo [required: >=0.5.0, installed: 0.5.0] - python-slugify [required: >=4.0.0, installed: 4.0.0] - text-unidecode [required: >=1.3, installed: 1.3] - requests [required: >=2.23.0, installed: 2.23.0] - certifi [required: >=2017.4.17, installed: 2020.4.5.1] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.9] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9] - six [required: >=1.10, installed: 1.14.0] - whichcraft [required: >=0.4.0, installed: 0.6.1] - flake8 [required: >=3.6.0, installed: 3.7.9] - configparser [required: Any, installed: 4.0.2] - entrypoints [required: >=0.3.0,<0.4.0, installed: 0.3] - configparser [required: >=3.5, installed: 4.0.2] - enum34 [required: Any, installed: 1.1.10] - functools32 [required: Any, installed: 3.2.3.post2] - mccabe [required: >=0.6.0,<0.7.0, installed: 0.6.1] - pycodestyle [required: >=2.5.0,<2.6.0, installed: 2.5.0] - pyflakes [required: >=2.1.0,<2.2.0, installed: 2.1.1] - typing [required: Any, installed: 3.7.4.1] - Jinja2 [required: >=2.10.1, installed: 2.10.3] - MarkupSafe [required: >=0.23, installed: 1.1.1] - paramiko [required: >=2.5.0,<3, installed: 2.7.1] - bcrypt [required: >=3.1.3, installed: 3.1.7] - cffi [required: >=1.1, installed: 1.14.0] - pycparser [required: Any, installed: 2.20] - six [required: >=1.4.1, installed: 1.14.0] - cryptography [required: >=2.5, installed: 2.9.2] - cffi [required: >=1.8,!=1.11.3, installed: 1.14.0] - pycparser [required: Any, installed: 2.20] - enum34 [required: Any, installed: 1.1.10] - ipaddress [required: Any, installed: 1.0.23] - six [required: >=1.4.1, installed: 1.14.0] - pynacl [required: >=1.0.1, installed: 1.3.0] - cffi [required: >=1.4.1, installed: 1.14.0] - pycparser [required: Any, installed: 2.20] - six [required: Any, installed: 1.14.0] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - pexpect [required: >=4.6.0,<5, installed: 4.8.0] - ptyprocess [required: >=0.5, installed: 0.6.0] - pre-commit [required: >=1.17.0,<2, installed: 1.21.0] - aspy.yaml [required: Any, installed: 1.3.0] - pyyaml [required: Any, installed: 5.3.1] - cfgv [required: >=2.0.0, installed: 2.0.1] - six [required: Any, installed: 1.14.0] - futures [required: Any, installed: 3.3.0] - identify [required: >=1.0.0, installed: 1.4.15] - importlib-metadata [required: Any, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - importlib-resources [required: Any, installed: 1.4.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - importlib-metadata [required: Any, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - singledispatch [required: Any, installed: 3.4.0.3] - six [required: Any, installed: 1.14.0] - typing [required: Any, installed: 3.7.4.1] - zipp [required: >=0.4, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - nodeenv [required: >=0.11.1, installed: 1.3.5] - pyyaml [required: Any, installed: 5.3.1] - six [required: Any, installed: 1.14.0] - toml [required: Any, installed: 0.10.0] - virtualenv [required: >=15.2, installed: 20.0.18] - appdirs [required: >=1.4.3,<2, installed: 1.4.3] - contextlib2 [required: >=0.6.0,<1, installed: 0.6.0.post1] - distlib [required: >=0.3.0,<1, installed: 0.3.0] - filelock [required: >=3.0.0,<4, installed: 3.0.12] - importlib-metadata [required: >=0.12,<2, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - importlib-resources [required: >=1.0,<2, installed: 1.4.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - importlib-metadata [required: Any, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - singledispatch [required: Any, installed: 3.4.0.3] - six [required: Any, installed: 1.14.0] - typing [required: Any, installed: 3.7.4.1] - zipp [required: >=0.4, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: >=2.3.3,<3, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - six [required: >=1.9.0,<2, installed: 1.14.0] - psutil [required: >=5.4.6,<6, installed: 5.7.0] - python-gilt [required: >=1.2.1,<2, installed: 1.2.2] - click [required: Any, installed: 7.1.1] - colorama [required: Any, installed: 0.4.3] - fasteners [required: Any, installed: 0.15] - monotonic [required: >=0.1, installed: 1.5] - six [required: Any, installed: 1.14.0] - git-url-parse [required: Any, installed: 1.2.2] - pbr [required: Any, installed: 5.4.5] - pbr [required: Any, installed: 5.4.5] - PyYAML [required: Any, installed: 5.3.1] - sh [required: Any, installed: 1.12.14] - PyYAML [required: >=5.1,<6, installed: 5.3.1] - sh [required: >=1.12.14, installed: 1.12.14] - six [required: >=1.11.0, installed: 1.14.0] - tabulate [required: >=0.8.3, installed: 0.8.7] - testinfra [required: >=3.0.6,<4, installed: 3.4.0] - pytest [required: !=3.0.2, installed: 4.6.9] - atomicwrites [required: >=1.0, installed: 1.3.0] - attrs [required: >=17.4.0, installed: 19.3.0] - funcsigs [required: >=1.0, installed: 1.0.2] - importlib-metadata [required: >=0.12, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - more-itertools [required: >=4.0.0,<6.0.0, installed: 5.0.0] - six [required: >=1.0.0,<2.0.0, installed: 1.14.0] - packaging [required: Any, installed: 20.3] - pyparsing [required: >=2.0.2, installed: 2.4.7] - six [required: Any, installed: 1.14.0] - pathlib2 [required: >=2.2.0, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - pluggy [required: >=0.12,<1.0, installed: 0.13.1] - importlib-metadata [required: >=0.12, installed: 1.6.0] - configparser [required: >=3.5, installed: 4.0.2] - contextlib2 [required: Any, installed: 0.6.0.post1] - pathlib2 [required: Any, installed: 2.3.5] - scandir [required: Any, installed: 1.10.0] - six [required: Any, installed: 1.14.0] - zipp [required: >=0.5, installed: 1.2.0] - contextlib2 [required: Any, installed: 0.6.0.post1] - py [required: >=1.5.0, installed: 1.8.1] - six [required: >=1.10.0, installed: 1.14.0] - wcwidth [required: Any, installed: 0.1.9] - six [required: >=1.4, installed: 1.14.0] - tree-format [required: >=0.1.2, installed: 0.1.2] - yamllint [required: >=1.15.0,<2, installed: 1.23.0] - pathspec [required: >=0.5.3, installed: 0.8.0] - pyyaml [required: Any, installed: 5.3.1]
```
submitted by techn0mad to ansible [link] [comments]

Failed building wheel for pyfarmhash

Hello ,
I try to install an existing pyramid application on my computer (windows 10 python 2.7)
after creating the virtualenv :
virtualenv isee-backend
I enabled it by : Scripts\activate.bat
after that I cloned the project then : pip install -e .
then I got this error :
```` Building wheels for collected packages: pyfarmhash Building wheel for pyfarmhash (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\standarduser\isee-backend\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"'; file='"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\standarduser\appdata\local\temp\pip-wheel-t8otnn' cwd: c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\ Complete output (13 lines): running bdist_wheel running build running build_ext building 'farmhash' extension creating build creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\src C:\Users\standarduser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\standarduser\isee-backend\include -IC:\Users\standarduser\isee-backend\PC /Tpsrc/farmhash.cc /Fobuild\temp.win-amd64-2.7\Release\src/farmhash.obj -O4 cl : Command line warning D9002 : ignoring unknown option '-O4' farmhash.cc c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\src\farmhash.h(47) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory error: command 'C:\Users\standarduser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
ERROR: Failed building wheel for pyfarmhash Running setup.py clean for pyfarmhash Failed to build pyfarmhash Installing collected packages: pycparser, cffi, six, bcrypt, translationstring, enum34, iso8601, colander, iso3166, numpy, pyfarmhash, pymongo, repoze.lru, zope.interface, plaster, PasteDeploy, plaster-pastedeploy, venusian, webob, zope.deprecation, hupper, pyramid, PyJWT, pyramid-jwt, pyramid-rewrite, Paste, PasteScript, scipy, waitress, wrapt, rutter, unicodecsv, pyasn1, rsa, pyasn1-modules, httplib2, oauth2client, urllib3, certifi, chardet, idna, requests, cachetools, google-auth, backports.functools-lru-cache, soupsieve, beautifulsoup4, google, google-auth-httplib2, protobuf, googleapis-common-protos, futures, pytz, google-api-core, uritemplate, google-api-python-client, funcsigs, isee-backend Running setup.py install for pyfarmhash ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\standarduser\isee-backend\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"'; file='"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\standarduser\appdata\local\temp\pip-record-hd3p27\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\standarduser\isee-backend\include\site\python2.7\pyfarmhash' cwd: c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\ Complete output (13 lines): running install running build running buildext building 'farmhash' extension creating build creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\src C:\Users\standarduser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\standarduser\isee-backend\include -IC:\Users\standarduser\isee-backend\PC /Tpsrc/farmhash.cc /Fobuild\temp.win-amd64-2.7\Release\src/farmhash.obj -O4 cl : Command line warning D9002 : ignoring unknown option '-O4' farmhash.cc c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\src\farmhash.h(47) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory error: command 'C:\Users\standarduser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\standarduser\isee-backend\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"'; __file='"'"'c:\users\standarduser\appdata\local\temp\pip-install-rctyrn\pyfarmhash\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_, '"'"'exec'"'"'))' install --record 'c:\users\standarduser\appdata\local\temp\pip-record-hd3p27\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\standarduser\isee-backend\include\site\python2.7\pyfarmhash' Check the logs for full command output.
```` Should I install some packages ??
submitted by mostafaLaravel to learnpython [link] [comments]

Constant errors trying to update modules

This is an issue I've been trying to fix for hours. I haven't been able to find a solution by googling various errors.
I'm trying to install the bcrypt module, but get the following error when I do:
(venv) C:\Users\Beheerder\PycharmProjects\test>pip install bcrypt Collecting bcrypt Using cached https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.g z Installing build dependencies ... error Complete output from command C:\Users\Beheerder\PycharmProjects\test\venv\Scripts\python.exe c:\users\beheerder\pycharmprojects\test\venv\ lib\site-packages\pip-19.0.3-py3.8.egg\pip install --ignore-installed --no-user --prefix C:\Users\Beheerder\AppData\Local\Temp\pip-build-env -9vuxfi1n\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel " cffi>=1.1; python_implementation != 'PyPy'": Collecting setuptools>=40.8.0 Using cached https://files.pythonhosted.org/packages/a0/df/635cdb901ee4a8a42ec68e480c49f85f4c59e8816effbf57d9e6ee8b3588/setuptools-46.1. 3-py3-none-any.whl Collecting wheel Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2 .py3-none-any.whl Collecting cffi>=1.1 Using cached https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar. gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in  File "C:\Users\Beheerder\AppData\Local\Temp\pip-install-mj8vs2v2\cffi\setup.py", line 127, in  if sys.platform == 'win32' and uses_msvc(): File "C:\Users\Beheerder\AppData\Local\Temp\pip-install-mj8vs2v2\cffi\setup.py", line 105, in uses_msvc return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif') File "C:\Users\Beheerder\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 225, in try_compile self._compile(body, headers, include_dirs, lang) File "C:\Users\Beheerder\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 132, in _compile self.compiler.compile([src], include_dirs=include_dirs) File "C:\Users\Beheerder\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 360, in compile self.initialize() File "C:\Users\Beheerder\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 253, in initialize vc_env = _get_vc_env(plat_spec) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env return _msvc14_get_vc_env(plat_spec) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\setuptools\msvc.py", line 268, in _msvc14_get_vc_env raise distutils.errors.DistutilsPlatformError( distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://v isualstudio.microsoft.com/downloads/ ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\Beheerder\AppData\Local\Temp\pip-install-mj8vs2v2\cffi\ ---------------------------------------- Command "C:\Users\Beheerder\PycharmProjects\test\venv\Scripts\python.exe c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip- 19.0.3-py3.8.egg\pip install --ignore-installed --no-user --prefix C:\Users\Beheerder\AppData\Local\Temp\pip-build-env-9vuxfi1n\overlay --no -warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.1; python_impl ementation != 'PyPy'"" failed with error code 1 in None (venv) C:\Users\Beheerder\PycharmProjects\test> 
I already had the latest build tools installed so I repaired it instead and restarted my pc. That didn't work so I tried to update pip:
(venv) C:\Users\Beheerder\PycharmProjects\test>pip install -U pip Collecting pip Using cached https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3 -none-any.whl Installing collected packages: pip Found existing installation: pip 19.0.3 Uninstalling pip-19.0.3: Successfully uninstalled pip-19.0.3 Rolling back uninstall of pip Moving to c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg from C:\Users\Beheerder\PycharmProjects\test\venv\Lib\site-packages\~ip-19.0.3-py3.8.egg Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip-script.py from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip-script.py Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip.exe from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip.exe Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip.exe.manifest from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip.exe.manifest Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3-script.py from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3-script.py Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3.8-script.py from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3.8-script.py Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3.8.exe from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3.8.exe Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3.8.exe.manifest from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3.8.exe.manifest Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3.exe from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3.exe Moving to c:\users\beheerder\pycharmprojects\test\venv\scripts\pip3.exe.manifest from C:\Users\Beheerder\AppData\Local\Temp\pip-uninstall-87igprur\pip3.exe.manifest Exception: Traceback (most recent call last): File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\cli\base_command.py", line 179, in main status = self.run(options, args) File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\commands\install.py", line 384, in run installed = install_given_reqs( File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\req\__init__.py", line 53, in inst all_given_reqs requirement.install( File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\req\req_install.py", line 910, in install self.move_wheel_files( File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\req\req_install.py", line 437, in move_wheel_files move_wheel_files( File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\wheel.py", line 544, in move_wheel _files generated.extend(maker.make(spec)) File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\distlib\scripts.py", line 405, in ma ke self._make_script(entry, filenames, options=options) File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\distlib\scripts.py", line 309, in _m ake_script self._write_script(scriptnames, shebang, script, filenames, ext) File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\distlib\scripts.py", line 245, in _w rite_script launcher = self._get_launcher('t') File "c:\users\beheerder\pycharmprojects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\distlib\scripts.py", line 384, in _g et_launcher result = finder(distlib_package).find(name).bytes AttributeError: 'NoneType' object has no attribute 'bytes' 
And also setuptools:
(venv) C:\Users\Beheerder\PycharmProjects\test>pip install -U setuptools Collecting setuptools Using cached https://files.pythonhosted.org/packages/a0/df/635cdb901ee4a8a42ec68e480c49f85f4c59e8816effbf57d9e6ee8b3588/setuptools-46.1.3- py3-none-any.whl Installing collected packages: setuptools Found existing installation: setuptools 40.8.0 Uninstalling setuptools-40.8.0: Successfully uninstalled setuptools-40.8.0 Successfully installed setuptools-46.1.3 Traceback (most recent call last): File "C:\Users\Beheerder\PycharmProjects\test\venv\Scripts\pip-script.py", line 11, in  load_entry_point('pip==19.0.3', 'console_scripts', 'pip')() File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\__init__.py", line 78, in main return command.main(cmd_args) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\cli\base_command.py", line 225, in main session = self._build_session( File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\cli\base_command.py", line 87, in _build_session session = PipSession( File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\download.py", line 344, in __init_ _ self.headers["User-Agent"] = user_agent() File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\download.py", line 134, in user_ag ent setuptools_version = get_installed_version("setuptools") File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_internal\utils\misc.py", line 902, in get_i nstalled_version working_set = pkg_resources.WorkingSet() File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 565 , in __init__ self.add_entry(entry) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 621 , in add_entry for dist in find_distributions(entry, True): File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 188 6, in find_eggs_in_zip if metadata.has_metadata('PKG-INFO'): File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 140 5, in has_metadata return self.egg_info and self._has(self._fn(self.egg_info, name)) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 176 0, in _has return zip_path in self.zipinfo or zip_path in self._index() File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 163 7, in zipinfo return self._zip_manifests.load(self.loader.archive) File "C:\Users\Beheerder\PycharmProjects\test\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\pkg_resources\__init__.py", line 159 4, in load mtime = os.stat(path).st_mtime FileNotFoundError: [WinError 2] Het systeem kan het opgegeven bestand niet vinden: 'C:\\Users\\Beheerder\\PycharmProjects\\test\\venv\\lib\\ site-packages\\setuptools-40.8.0-py3.8.egg' 
I tried creating a new venv, different versions of python, different IDE's and all of the action previously mentioned in different orders. Nothing has worked so far. Any of you know a fix?
submitted by Knitcap_ to learnpython [link] [comments]

Custom JWT implementation in Django ( cannot decode )

I am trying add my own middle-ware for what i'm doing it makes sense. I cannot currently do this as I lack the knowledge with Django and as a new comer lot's of the functionality seems hidden in this regard if you decide to not do things the default way.

I need user to sign in get jwt ( done ) and on every protected endpoint I need this function to run and extract the jwt from the Authorization header.

Here is what I have so far:


class AuthenticateUserService:
def __init__(self, password, email):self.password = passwordself.email = emailself.JWT_SECRET = 'iu42v8mb09'self.JWT_ALGORITHM = 'HS256'self.JWT_EXP_DELTA_SECONDS = 20def retrieve_password(self):try:_hashed_password = Users.objects.filter(email=self.email).values('password')session_token = self.compared_hashed_password(_hashed_password)except AttributeError:return 'Invalid credentials'if session_token is not False:return session_tokenelse:return Falsedef compared_hashed_password(self, hashed_password):for hashed_pwd in hashed_password:hashed_password = hashed_pwd['password']if bcrypt.checkpw(self.password.encode('utf-8'), hashed_password.encode('utf-8')):return self.generate_session_token()else:return Falsedef generate_session_token(self):payload = {'user_id': self.email,'exp': datetime.utcnow() + timedelta(seconds=self.JWT_EXP_DELTA_SECONDS)}jwt_token = jwt.encode(payload, self.JWT_SECRET, self.JWT_ALGORITHM)return {'data_science_token': jwt_token.decode('utf-8')}
class Authenticated(object):def verify_token(self, request):print('==================================='.format(request))return jwt.decode(request, 'iu42v8mb09', algorithms=['HS256'])

URLS
TO GENERATE JWT
from django.urls import pathfrom .views import LoginHelper
urlpatterns = [path('loginAnalytics/', LoginHelper.authenticate_user, name='authenticate_user'),]


PROTECTED ENDPOINT
from django.urls import path from .views import UserPredictions
urlpatterns = [ path('compilePredictions/', UserPredictions.generate_full_report, name='generate_full_report') ]
SETTINGS.py

MIDDLEWARE = ['corsheaders.middleware.CorsMiddleware','django.middleware.common.CommonMiddleware','django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.middleware.common.CommonMiddleware','django.middleware.csrf.CsrfViewMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.contrib.messages.middleware.MessageMiddleware','django.middleware.clickjacking.XFrameOptionsMiddleware',# 'loginServices.Authentication.Authenticated']


How do I do this properly??
submitted by Fuerzacode to django [link] [comments]

Unable to compelte install of Home Assistant on Pi Zero W

Hello everyone,
So I picked up a Raspberry Pi today and wanted to try and use it as my Home Assistant server. I have configured HA on a couple other machines so I have some basic understand of it but this is throwing me for a loop...
So I have a fresh install/updated version of Raspberian Stretch, wireless configured for my network and SSH'ed into the device. I have followed the install guide verbatim...
(https://www.home-assistant.io/docs/installation/raspberry-pi/)
Everything goes great until I reach the actual install portion. I've researched this a but not finding anything clear-cut. Most people tend to lean towards network issues. Now I haven't tried loading it again on one of the previously working machines, but I know I had just installed it a day or two ago without issue... (just on a VM rather than a pi!).
Thoughts or suggestions? Thanks for any help provided :)
(sorry...I normally don't post stuff like this ; I don't know if there's a better way to post this!)
$ pip3 install homeassistant Collecting homeassistant Downloading https://files.pythonhosted.org/packages/24/ce/f6bd8738ff1f7d2a91a64d7d468e9718f4eb71a1a43a0fb6c0a14ddc86a1/homeassistant-0.77.3-py3-none-any.whl (2.9MB) 100% |████████████████████████████████| 2.9MB 29kB/s Collecting pytz>=2018.04 (from homeassistant) Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB) 100% |████████████████████████████████| 512kB 139kB/s Collecting attrs==18.1.0 (from homeassistant) Downloading https://files.pythonhosted.org/packages/41/59/cedf87e91ed541be7957c501a92102f9cc6363c623a7666d69d51c78ac5b/attrs-18.1.0-py2.py3-none-any.whl Collecting astral==1.6.1 (from homeassistant) Downloading https://files.pythonhosted.org/packages/01/2b/0b60f1cef7d2a7a863cd06bae5fc7e3553803739c4834e921b4996920f76/astral-1.6.1-py2.py3-none-any.whl Collecting pyyaml<4,>=3.13 (from homeassistant) Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-3.13-cp35-cp35m-linux_armv6l.whl (42kB) 100% |████████████████████████████████| 51kB 208kB/s Collecting requests==2.19.1 (from homeassistant) Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB) 100% |████████████████████████████████| 92kB 378kB/s Collecting aiohttp==3.4.0 (from homeassistant) Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.4.0-cp35-cp35m-linux_armv6l.whl (1.1MB) 100% |████████████████████████████████| 1.1MB 73kB/s Collecting certifi>=2018.04.16 (from homeassistant) Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB) 100% |████████████████████████████████| 153kB 283kB/s Collecting async-timeout==3.0.0 (from homeassistant) Downloading https://files.pythonhosted.org/packages/96/0f/e6357458c87fb4ed8f3df215773f3caad40968f10e05552cbd8bd28415e4/async_timeout-3.0.0-py3-none-any.whl Collecting jinja2>=2.10 (from homeassistant) Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB ) 100% |████████████████████████████████| 133kB 303kB/s Collecting bcrypt==3.1.4 (from homeassistant) Exception: Traceback (most recent call last): File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen chunked=chunked) File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 391, in _make_request six.raise_from(e, None) File "", line 2, in raise_from File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 387, in _make_request httplib_response = conn.getresponse() File "/uslib/python3.5/http/client.py", line 1198, in getresponse response.begin() File "/uslib/python3.5/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/uslib/python3.5/http/client.py", line 266, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 554, in _prepare_file require_hashes File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 278, in populate_link self.link = finder.find_requirement(self, upgrade) File "/srv/homeassistant/lib/python3.5/site-packages/pip/index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/srv/homeassistant/lib/python3.5/site-packages/pip/index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/srv/homeassistant/lib/python3.5/site-packages/pip/index.py", line 568, in _get_pages page = self._get_page(location) File "/srv/homeassistant/lib/python3.5/site-packages/pip/index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "/srv/homeassistant/lib/python3.5/site-packages/pip/index.py", line 792, in get_page "Cache-Control": "max-age=600", File "/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get return self.request('GET', url, *kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 386, in request return super(PipSession, self).request(method, url, *args, *kwargs) File "/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request resp = self.send(prep, *send_kwargs) File "/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send r = adapter.send(request, *kwargs) File "/srv/homeassistant/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send timeout=timeout File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
submitted by DarrenCax to homeassistant [link] [comments]

Hashing passwords with Python and Bcrypt - YouTube Bcrypt & Password Security - An Introduction - YouTube How to store Encrypted PASSWORDS in Django How to install fix bcrypt on WINDOWS - YouTube Recover Weblogic Password

The most comprehensive list of bitcoin etf websites last updated on Jun 1 2020. Stats collected from various trackers included with free apps.

[index] [2486] [7563] [3069] [6520] [7357] [1869] [472] [7740] [1159] [6273]

Hashing passwords with Python and Bcrypt - YouTube

Blog Post Link: http://embeddedlaboratory.blogspot.com/2018/04/design-gui-using-pyqt5-on-raspberry-pi.html GitHub Link: https://github.com/xpress-embedo/Rasp... Steps to recover the Weblogic account password Decrypt.py link: https://drive.google.com/open?id=0B05Xo0OcwEE8N09VRUpFZGJFUGs Command: java weblogic.security... Using Bcrypt (Blowfish) in Python - Duration: 5:58. Pretty Printed 5,279 views. 5:58. Django Tips: How to make an AJAX call to the back end - Duration: 6:58. Chris Hawkes 20,080 views. This video is unavailable. Watch Queue Queue. Watch Queue Queue This is my latest Python project using Mongo DB and Bcrypt. However, did not focus heavily on security! To read more about this project, check it on my blog at: https://codingsaga.wordpress.com ...

http://forex-sweden.workmining.pw