Code Monkey home page Code Monkey logo

Comments (7)

andrewcooke avatar andrewcooke commented on May 28, 2024

if you're following the instructions at https://andrewcooke.github.io/choochoo/ then the command is installed in the virtual environment. you need to enable the environment each time you start a new shell. do source env/bin/activate.

from choochoo.

jhavens12 avatar jhavens12 commented on May 28, 2024

Hi - Thanks for the tip. I had to do some extra steps to set up the virtual env with 3.7 specifically

sudo apt-get install python3.7-venv
python3.7 -m venv env
source env/bin/activate
python3.7 -m pip install choochoo
ch2 web start

It looks like it's now running on port 8000 on a remote machine i have, but when I navigate to the remote machines ip:8000 I do not get a response. Is it only available via localhost?

Thanks for the quick response

from choochoo.

andrewcooke avatar andrewcooke commented on May 28, 2024

huh. what distro is that? i'll add it to the instructions (i thought venv was part of the standard python distribution, but your distro seems ot have it separate).

from choochoo.

jhavens12 avatar jhavens12 commented on May 28, 2024

Just checked, I believe the distro is a bit older and needs to be updated which may have caused the issue - looks like version 16.04

Any idea on why I am unable to access the web interface on a client machine?

from choochoo.

andrewcooke avatar andrewcooke commented on May 28, 2024

sorry, missed this.

ch2 web start -h will show you the options for ch2 web start. the default for --bind is localhost which means that it is only visible locally. if you change that to --bind 0.0.0.0 then it will be visible on all network addresses. or if you know the correct address you can specify that.

there may also be issues with firewalls which are beyond my control...

from choochoo.

andrewcooke avatar andrewcooke commented on May 28, 2024

i could make 0.0.0.0 the default but it's a bit of a security risk.

from choochoo.

jhavens12 avatar jhavens12 commented on May 28, 2024

Hi - just actually figured this out by looking at the logs and seeing that it binds to localhost by default. I was able to specify the machines IP address and then was able to access it on a remote machine.

However, i get the same error with not being able to initially configure. The system hangs at "Please wait writing data.". If i manually set it up with the dev command you gave me, the same hanging results are given when trying to make/save any changes in the web interface.

Thanks

from choochoo.

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.