augmented-traffic-control icon indicating copy to clipboard operation
augmented-traffic-control copied to clipboard

sudo atcd failed

Open ghost opened this issue 9 years ago • 10 comments

Hello,Sorry for disturbing, I wanna ask for assistance about a problem I rencently encountered .when 'sudo actd' is executed, the sentence"can not find actd" is showed on my screen.However,I have installed atcd.Could anyone give me some suggestions or solutions?

ghost avatar Dec 16 '16 07:12 ghost

Hi liuang68

How did you install atc? If in a virtualenv, did you forget to activate it?

chantra avatar Dec 16 '16 15:12 chantra

According to the installation of the tutorial for ATC,sorry,I don't understand what you say about virtualenv,Could you explain please?How to activate?

ghost avatar Dec 16 '16 16:12 ghost

@liuang68 https://facebook.github.io/augmented-traffic-control/docs/install.html has indication on how to use python virtualenv. If you pip installed atc, chances it is under /usr/local/bin/atcd and using sudo /usr/local/bin/atcd will work.

Most likely, /usr/local/bin are not in your PATH.

If that does not help, can you search where atcd got installed find /usr -name atcd

chantra avatar Dec 16 '16 17:12 chantra

@chantra Hello,I don't have /usr/local/bin/atcd, so how to use sudo atcd work????

ghost avatar Dec 20 '16 10:12 ghost

@liuang68

Please can you answer those questions

  • Can you tell me exactly how you installed ATC (link to documentation you followed)
  • Any error messages during the install?
  • If that does not help, can you search where atcd got installed find /usr -name atcd

Thanks

chantra avatar Dec 20 '16 15:12 chantra

@chantra sudo apt-get install python-pip python-dev build-essential) sudo pip install --upgrade pip pip install atc_thrift atcd django-atc-api django-atc-demo-ui django-atc-profile-storage django-admin startproject atcui cd atcui gedit atcui/settings.py INSTALLED_APPS = ( ... # Django ATC API 'rest_framework', 'atc_api', # Django ATC Demo UI 'bootstrap_themes', 'django_static_jquery', 'atc_demo_ui', # Django ATC Profile Storage 'atc_profile_storage', ) gedit atcui/urls.py ... ... from django.views.generic.base import RedirectView

urlpatterns = patterns('', ... # Django ATC API url(r'^api/v1/', include('atc_api.urls')), # Django ATC Demo UI url(r'^atc_demo_ui/', include('atc_demo_ui.urls')), # Django ATC profile storage url(r'^api/v1/profiles/', include('atc_profile_storage.urls')), url(r'^$', RedirectView.as_view(url='/atc_demo_ui/', permanent=False)), ) python manage.py migrate

Refer to this link http://www.cnblogs.com/coderzh/p/AugmentedTrafficControl.html

It's over.The above is the installation is complete, then no atcd command In met timeout problem when I download the class library, download a few times with respect to OK, also is the problem of authority is not enough, use chmod 777 to give permission, no other question

ghost avatar Dec 21 '16 01:12 ghost

pip install atc_thrift atcd django-atc-api django-atc-demo-ui django-atc-profile-storage

unless you ran that in a virtual environment, you should have gotten an error

You will need to run it using sudo or follow https://facebook.github.io/augmented-traffic-control/docs/install.html and set up the virtualenv (search for Virtual Environment on that page).

Maybe you can also reach out to the author of the tutorial. I can read Chinese, but I dont see reference to virtualenv, and as it is, the tutorial should not work.

Also, unless you post the logs from when you run pip install, there is not much we can do to help.

chantra avatar Dec 21 '16 01:12 chantra

@chantra Thank you, in accordance with your tutorial I try, my machine is a physical machine, also need to install the Virtual environment in physical machine???

ghost avatar Dec 21 '16 02:12 ghost

This is unrelated to virtual or physical machine: http://docs.python-guide.org/en/latest/dev/virtualenvs/

chantra avatar Dec 21 '16 02:12 chantra

@chantra I see, in https://facebook.github.io/augmented-traffic-control/docs/install.html , There is a place Don't understand, for pkg in atc_thrift atcd
django-atc-api django-atc-demo-ui django-atc-profile-storage do pip install $pkg done that is a shell??

ghost avatar Dec 21 '16 02:12 ghost