CiscoDevNet / yang-explorer

An open-source Yang Browser and RPC Builder Application
Apache License 2.0
437 stars 177 forks source link

Yang-Explorer database is not initialized #120

Closed the-packet-fang closed 4 years ago

the-packet-fang commented 4 years ago

hello, I'm new to linux and I'm getting this error when try to launch yang-explorer : Yang-Explorer database is not initialized .. please run setup.sh first !!

I installed python2.7, created an V-environment using : virtualenv -p /usr/bin/python2.7 yang-exp, activated it and executed setup.bsh .

I also tried to do the same without the activating the env , but the problem persist

BernyRamirez commented 4 years ago

You are on the right path, Yang-Explorer was built using Python2, I spend myself quite a bit of time trying to run it using Python3 but it never worked, I got the same error as you did no matter how many times I tried to reinstall it.

After a while I made it work, and this is what I did: 1) Make sure you install all the recommended dependencies as follow: python, python-dev, zlib1g-dev, libxml2-dev, libxslt1-dev, graphviz 2) pip install --upgrade pip, pip install --upgrade setuptools 3) pip install pyang 4) Use python 2.x

Have in mind the following:

cd server/ mkdir -p data/users mkdir -p data/session mkdir -p data/collections mkdir -p data/annotation python manage.py migrate python manage.py setupdb

The outputs from here helped me to find my issue.

Good luck, let me know if this was helpful for you.

the-packet-fang commented 4 years ago

Hey , tank you for the answer but I figured it out. I used docker with a pre-build image (I guess this is what it's used for; compatibility issues ). Man this software is good especially for learning, but eugh... pyhton2 pip2 flash