-
Notifications
You must be signed in to change notification settings - Fork 58
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
Jsnapy is not executing #336
Comments
Any help please regarding my previous post? I really appreciate your assistance....Thx. |
I could get the snapshot without any issues for the same test file.(python3.4) (venv) user@host:~/venv/etc/jsnapy/snapshots# pip freeze (venv) user@host:~/venv/test_336# /root/venv/bin/jsnapy --snap snap.yml -f config.yml -v (venv) user@host:~/venv/test_336# cat config.yml
Testfile:
Snapshot created: (venv) user@host:~/venv/etc/jsnapy/snapshots# ls -lrt
|
Hi Mamathac, Thanks for help. C:\Users\erix\jsnapy\snapshots>jsnapy --snap snap.yml -f config_snap.yml -v When looking at the "Day One: Enabling Automated Network Verifications with JSNAPY". And the page of 12, under the "JSNAP and JSNAPy" it says that jsnapy is based on Python 2.7.... So I installed the Python version 2.7. And switched it to 2.7 as showing below. But not sure it was really switched or not! Another thing that I need to specify that there is no installed python virtual environment in my windows 10 systems. C:>python
C:> |
Hi @Erdix , To make sure jsnapy used the correct python version , use virtualenv and install jsnapy from virtualenv. after this, install JSNAPY which will install JSNAPY under /venv/etc/jsnapy I see by default JSNAPY gets installed under /etc/jsnapy(even for mac), wonder how is it installed at /User/XXX. Could you try once using virtualenv? |
Hi Mamathac, Thanks for help again...I look forward to seeing your reply.......Here some outputs: (venv) H:>py C:\Users\erix\Envs\venv\etc\jsnapy (venv) H:>jsnapy --snap pre_snapfile.yml -f config_snap.yml -v (venv) H:>pip list asn1crypto 0.24.0 (venv) H:> (venv) H:>jsnapy Tool to capture snapshots and compare them
positional arguments: optional arguments: (venv) H:> C:\Users\erix\Envs\venv\etc\jsnapy>dir Directory of C:\Users\erix\Envs\venv\etc\jsnapy 18/04/2019 02:39 PM .18/04/2019 02:39 PM .. 18/04/2019 01:28 PM 109 config_snap.yml 18/04/2019 01:04 PM 478 jsnapy.cfg 18/04/2019 01:04 PM 1,572 logging.yml 18/04/2019 01:04 PM snapshots 18/04/2019 01:34 PM testfiles 3 File(s) 2,159 bytes 4 Dir(s) 207,107,133,440 bytes free C:\Users\erix\Envs\venv\etc\jsnapy> C:\Users\erix\Envs\venv\etc\jsnapy\testfiles>dir Directory of C:\Users\erix\Envs\venv\etc\jsnapy\testfiles 18/04/2019 01:34 PM .18/04/2019 01:34 PM .. 31/05/2018 10:29 PM 201 README 18/04/2019 01:34 PM 483 test_is_equal.yml 2 File(s) 684 bytes 2 Dir(s) 207,106,015,232 bytes free C:\Users\erix\Envs\venv\etc\jsnapy\testfiles> Jsnapy.cfg config is under the C:\Users\erix\Envs\venv\etc\jsnapy [DEFAULT] Thanks |
@Erdix Will get back to you, after trying on a windows machine. Till then please confirm that snapshots are being captured. And please place the content here, i will look further into it. |
I tried it again... The same error gives.... Can I ask you about how do you understand that there is a bug? Thanks. |
@Erdix I am able to get all the data proper. On windows laptop! Do you have ubuntu available? If yes, can you please verify over there? Executing the following: I get the following response:
|
Hi all,
There is the following issue that has been occurring on Win 10 and Python 3.7.3rc1. Any help please?
c:\Users\erix\jsnapy\snapshots>jsnapy --snap pre_snapfile.yml -f config_snap.yml
ERROR!! TypeError
Complete Message: 'NoneType' object is not subscriptable
Config_snap.yml file is:
test_is_equal.yml file is:
c:\Users\erix\jsnapy\snapshots>
c:\Users\erix\jsnapy\snapshots>jsnapy --version
JSNAPy version: 1.3.2
c:\Users\erix\jsnapy>dir
.11/04/2019 02:43 PM
11/04/2019 02:43 PM ..
11/04/2019 02:22 PM 109 config_snap.yml
01/04/2019 11:43 AM 436 jsnapy.cfg
01/04/2019 11:43 AM 1,516 logging.yml
01/04/2019 11:43 AM snapshots
11/04/2019 02:43 PM testfiles
3 File(s) 2,061 bytes
4 Dir(s) 210,458,386,432 bytes free
c:\Users\erix\jsnapy>
c:\Users\erix\jsnapy>pip list
Package Version
asn1crypto 0.24.0
bcrypt 3.1.6
cffi 1.12.2
colorama 0.4.1
configparser 3.7.4
cryptography 2.6.1
future 0.17.1
icdiff 1.9.1
Jinja2 2.10
jsnapy 1.3.2
junos-eznc 2.2.1.dev0
lxml 4.3.2
MarkupSafe 1.1.1
ncclient 0.6.3
netaddr 0.7.19
paramiko 2.4.2
pip 19.0.3
pyasn1 0.4.5
pycparser 2.19
PyNaCl 1.3.0
pyparsing 2.3.1
pyserial 3.4
PyYAML 5.1
scp 0.13.2
selectors2 2.0.1
setuptools 40.8.0
six 1.12.0
c:\Users\erix\jsnapy>
H:>py
Python 3.7.3rc1 (tags/v3.7.3rc1:69785b2127, Mar 12 2019, 22:37:55) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Thanks for help.
Erix...
The text was updated successfully, but these errors were encountered: