Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

sudo atcd failed #305

Open
ghost opened this issue Dec 16, 2016 · 10 comments
Open

sudo atcd failed #305

ghost opened this issue Dec 16, 2016 · 10 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2016

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?

@chantra
Copy link
Contributor

chantra commented Dec 16, 2016 via email

@ghost
Copy link
Author

ghost commented Dec 16, 2016

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?

@chantra
Copy link
Contributor

chantra commented Dec 16, 2016

@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

@ghost
Copy link
Author

ghost commented Dec 20, 2016

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

@chantra
Copy link
Contributor

chantra commented Dec 20, 2016

@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

@ghost
Copy link
Author

ghost commented Dec 21, 2016

@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

@chantra
Copy link
Contributor

chantra commented Dec 21, 2016

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.

@ghost
Copy link
Author

ghost commented Dec 21, 2016

@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???

@chantra
Copy link
Contributor

chantra commented Dec 21, 2016

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

@ghost
Copy link
Author

ghost commented Dec 21, 2016

@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??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant