Giter VIP home page Giter VIP logo

Comments (3)

gridhead avatar gridhead commented on June 16, 2024

Thanks for pointing that out. That indeed was a typo. I have corrected it now. 🙂

from sanctuary.

electricimp123 avatar electricimp123 commented on June 16, 2024

One more thing that may help improve the documentation:

The instruction to install the dependencies (pip3 install -r requirements.txt) comes after activating the virtual environment. Subsequently, the instructions say to open a terminal and run the Sanctuary WebSockets Server. Thus the latter does not have access to any dependencies that needed to be installed because the former was done inside the virtual environment.

In my case, for instance, I had to install websockets a second time even though I correctly executed the dependency installation step.

A simple fix may be to move the step to install the dependencies prior to the step to activate the virtual environment.

from sanctuary.

gridhead avatar gridhead commented on June 16, 2024

The virtualenv is a necessity for ensuring that the dependencies of the script serve the intended script only so when a new terminal is opened and a script is executed - it would require activation of that specific virtual environment.

The instruction to install the dependencies pip3 install -r requirements.txt comes after activating the virtual environment.

That is an intended instruction. This is to ensure that all the requirements that are fetched should be limited to these scripts only and not modify those of outside.

Subsequently, the instructions say to open a terminal and run the Sanctuary WebSockets Server. Thus the latter does not have access to any dependencies that needed to be installed because the former was done inside the virtual environment.

I appreciate your attention. That is indeed correct when you say that the Sanctuary WebSockets Server will not have access to the installed dependencies as previously they were done exclusively inside the virtual environment. We can simply fix that by activating the virtual environment for the other terminal first before running the server.

I have fixed that in the documentation now to make it more clear. 🙂

from sanctuary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.