Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example directories viz Samples and testfiles are not created on installing via pip on UBuntu18 #372

Open
mamathac opened this issue Apr 20, 2020 · 1 comment
Labels

Comments

@mamathac
Copy link

Description of Issue/Question

Earlier installing Jsnapy using PIP , created /etc/jsnapy/samples and /etc/jsnapy/testfiles directories.
Something seems to have changed and this is not reflecting in recent installations.

Setup

(Please provide relevant configs, xml snapshots and related files (Be sure to remove sensitive info).)

root@ubuntu18-04-3:~# uname -a
Linux ubuntu18-04-3 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce Issue

(Include debug logs if possible and relevant. Error trace would be helpful too)

Versions Report

(Provided by running jsnapy --version. Please also mention python version.)

root@ubuntu18-04-3:~# jsnapy --version
JSNAPy version: 1.3.5.dev0
root@ubuntu18-04-3:~# cd /etc/jsnapy/
root@ubuntu18-04-3:/etc/jsnapy# ls -lrt
total 8
-rw-r--r-- 1 root root 1695 Apr 16 14:33 logging.yml
-rw-r--r-- 1 root root  381 Apr 16 14:33 jsnapy.cfg

root@ubuntu18-04-3:/etc/jsnapy# whoami
root


root@ubuntu18-04-3:/etc/jsnapy# cat jsnapy.cfg
# This file can be overwritten
# It contains default path for
# config file, snapshots and testfiles
# If required, overwrite the path with your path
#config_file_path: path of main config file
#snapshot_path : path of snapshot file
#test_file_path: path of test file

[DEFAULT]
config_file_path= /etc/jsnapy
snapshot_path = ~/jsnapy/snapshots
test_file_path = ~/jsnapy/testfiles
root@ubuntu18-04-3:/etc/jsnapy# cat ~/jsnapy/snapshots
cat: /root/jsnapy/snapshots: No such file or directory
root@ubuntu18-04-3:/etc/jsnapy# cat ~/jsnapy/testfiles
cat: /root/jsnapy/testfiles: No such file or directory

@rahkumar651991
Copy link
Contributor

Jsnapy creates /etc/jsnapy folder as default location while installation and inside creates jsnapy.cfg and logging.yml. If it is a normal installation no snapshots or testfiles folder are created.
Snapshots or testfiles folders are created if installed with virtualenv.

This should be same for all Ubuntu versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants