jsnapy
jsnapy copied to clipboard
Install JSNAPy 1.3.3 from PyPi in Virtual Environment. (Related to Pull #353)
Description of Issue/Question
@vnitinv @rahkumar651991 Thanks guys for reviewing and approving my Pull Request.
Once thing that I've noticed after the official release the is the following ---
etc/ and var/ missing from Virtual Environment when installing with the command pip install jsnapy --no-cache
<-- uses the wheel build of the code.
etc/ and var/ will get installed properly in a virtual environment when installing with the command pip install https://<pypi-url>/jsnapy-1.3.3.tar.gz --no-cache
Setup
Python 3.X virtual environment using python3 -m venv venv
Steps to Reproduce Issue
python3 -m venv venv
cd venv/
pip install jsnapy
ls -lah
The etc/ and var/ directory do not exist.
Before Install
Successful Install Using pip
ls -lah of venv/ directly
If I download the source code
from PyPi and do the following it will work.
Successful Install using pip with source code (https://files.pythonhosted.org/packages/6c/83/0c2f278876c159e109001b3bdb926b6dfd5762911c3eff5058924ec5df36/jsnapy-1.3.3.tar.gz)
ls -lah of venv/ directory
I have no issue installing the application using the .tar.gz file, just seeing as if there might be a reason as to why it won't create my etc/ and var/ directory inside of my virtual environment only when installing with wheel from pip
In addition, i took the source code and re-built the wheel package using the python setup.py bdist_wheel
command to create a fresh wheel package.
I tried to install that but unfortunately its the same symptom as running pip install jsnapy --no-cache
Versions Report
(3.8-venv) BMOTEC6079925LT:3.8-venv gianluca.casella$ jsnapy --version JSNAPy version: 1.3.3
Hi @gcasella - It seemed to be issue with python for not able to create /etc and /var folder depending on how it is packaged. Please try with jsnapy 1.3.4. It should create /etc and /var folder if you do pip install for jsnapy
I'm having a similar issue with my install, I'm working in a Conda environment. It would be nice to have a conda package for this.
(ansible-dev) vagrant@ubuntu-bionic:~$ pip list | grep jsn jsnapy 1.3.6
(ansible-dev) vagrant@ubuntu-bionic:~$ jsnapy --version
Traceback (most recent call last):
File "/home/vagrant/anaconda3/envs/ansible-dev/bin/jsnapy", line 33, in