Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup error #5

Open
thura-ntu opened this issue Jan 24, 2020 · 4 comments
Open

setup error #5

thura-ntu opened this issue Jan 24, 2020 · 4 comments

Comments

@thura-ntu
Copy link

Hi there,

I tried to setup the gutma in my local pc. I got following error. Could you help me to solve it.

Screenshot from 2020-01-24 12-04-03

env info:
OS : ubuntu 18.04
python : python 3.6.9

Regards,

@hrishiballal
Copy link
Contributor

hrishiballal commented Jan 24, 2020

Hi,
Original author here. A couple of things:

  • A more upto-date and maintained fork of this project is at: https://github.com/openskies-sh/aircraftregistry , I would recommend that you use that.
  • Specifically for your error, if you go to requirements.txt and change psycopg -> psycopg2-binary it should work. You can see the change in the forked repo. My recommendation is that you use the fork, I keep on maintaining it.
    Hrishi

@thura-ntu
Copy link
Author

thura-ntu commented Jan 31, 2020

Hi Hrishiballal,

Thanks for your reply. Now, I used your new link. Followings are what I did and found.

I changed the psycopg -> psycopg2-binary and pip install by terminal, I still got the error. So, I used the pycharm->settings->project->project:interpreter to install the lib one by one.
here is the completed one.
Annotation 2020-01-31 131955

After that, I ran "python manage.py migrate", I got the following error
Annotation 2020-01-31 132225

and I found a "comma" at ohio/setting.py line : 154 (REST_FRAMEWORK['DEFAULT_PERMISSION_CLASSES'] = (),). after removing the "comma" at end of the line, everything is working (migration, Populate initial data). now I start studying.

Regards,
Thu Ra

@thura-ntu
Copy link
Author

Hi Hrishiballal,

after running server, I can browse "http://localhost:8000/api/v1/". but when I try to get the token, it is returning 404.
Annotation 2020-01-31 154149

How can I interoperate with our UTM?

@hrishiballal
Copy link
Contributor

Hi,
A couple of things. Firstly, like I mentioned this repository is old and no one is actively working on it. I would really recommend you use the fork I maintain since it is very actively maintained and supported.

  • Authentication is turned off for this repository, so you don't need tokens. You can just use a client like Postman and query the data using HTTP requests, detailed API here (this is from the new repository)
  • There is a frontend also available, buy you will need to switch to the new repository.
  • Do you want to have a quick sync over Skype? I am happy to walk to you through all of this, since the tokens are related to Identity and Authentication which might be useful for your case as well.

Hrishi

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

No branches or pull requests

2 participants