Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    akata01
    @akata01
    @Hynix07 Follow these steps if you are still getting the above error : 1) Run -> docker image ls 2) Get image ID for redis:alpine and run this command -> docker image rm <Image Id> 3) then run -> docker container ls 4) Now get ID for container corresponding to redis:alpine image and run docker container rm <ID> 5) Now run docker run -d -p 6379:6379 --name origami-redis redis:alpine . Restart all your terminals.
    Abhinav Tripathi
    @Hynix07
    @akata01 @techytushar thanks for help
    Adrish Dey
    @captain-pool

    I've been working on Cloud-CV/Origami#196. However I'm unable to spin up a demo. My test origami_lib code runs on port 9001 (The same code as given in the docs). And The front end is hosted on 8000 (as default). However, whenever I open 8000, I can't find my demo. if I try to create a new demo with the same name as the demo hosted using origami_lib, the following error shows up the worker server terminal.

    Internal Server Error: /auth/github/login/        
    Traceback (most recent call last):                                      
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner    
       response = get_response(request)                                     
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response    
       response = self.process_exception_by_middleware(e, request)       
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/channels/handler.py", line 243, in process_exception_by_middleware    
       return super(AsgiHandler, self).process_exception_by_middleware(exception, request)    
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response    
       response = wrapped_callback(request, *callback_args, **callback_kwargs)    
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 73, in view    
       return self.dispatch(request, *args, **kwargs)             
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 96, in dispatch
       app = provider.get_app(self.request)               
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/base.py", line 52, in get_app    
       return SocialApp.objects.get_current(self.id, request)    
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/models.py", line 37, in get_current    
       site = get_current_site(request)                  
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/contrib/sites/shortcuts.py", line 15, in get_current_site    
       return Site.objects.get_current(request)        
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/contrib/sites/models.py", line 63, in get_current    
       return self._get_site_by_id(site_id)              
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/contrib/sites/models.py", line 35, in _get_site_by_id    
       site = self.get(pk=site_id)                                                                                                                  
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method    
       return getattr(self.get_queryset(), name)(*args, **kwargs)    
     File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/query.py", line 380, in get    
       self.model._meta.object_name                       
    django.contrib.sites.models.DoesNotExist: Site matching query does not exist.

    I've followed the steps for github authorization as given in the docs.(Creating clientID and client secret).

    can anyone suggest what to do?
    Siddhant Jain
    @SiddhantJ19
    Hi @captain-pool...Once check this. Open the manage.py shell and dofrom django.contrib.sites.models import Site print (Site.objects.get(name='example.com').id)
    Siddhant Jain
    @SiddhantJ19
    The SITE_ID in settings.py file should be same as the output you get from above
    akata01
    @akata01
    @vpn1997 hey, i have got some leads on the issue Cloud-CV/Origami#257 . Waiting for your feedback.
    Adrish Dey
    @captain-pool
    @SiddhantJ19 I've renamed my site domain name and display name as localhost:8000 and updated the SITE_ID in settings.py, by fetching the ID of localhost:3000 from manage.py shell. But the issue doesn't resolve.

    This time the issue rises in SocialApp

    ```
    Internal Server Error: /auth/github/login/
    Traceback (most recent call last):
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/channels/handler.py", line 243, in process_exception_by_middleware
    return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, callback_args, **callback_kwargs)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 73, in view
    return self.dispatch(request,
    args, kwargs)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 96, in dispatch
    app = provider.get_app(self.request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/base.py", line 52, in get_app
    return SocialApp.objects.get_current(self.id, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/models.py", line 40, in get_current
    provider=provider)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args,
    kwargs)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/query.py", line 380, in get
    self.model._meta.object_name
    allauth.socialaccount.models.DoesNotExist: SocialApp matching query does not exist.
    [2019/01/10 16:54:23] HTTP GET /auth/github/login/ 500 [0.17, 127.0.0.1:56868]
    [2019/01/10 16:56:36] HTTP GET /ngh/user 200 [0.02, 127.0.0.1:57690]
    [2019/01/10 16:56:39] WebSocket HANDSHAKING /chat/ [127.0.0.1:57710]
    [2019/01/10 16:56:39] WebSocket CONNECT /chat/ [127.0.0.1:57710]
    [2019/01/10 16:56:39] HTTP GET /api/rootsettings 200 [0.06, 127.0.0.1:57690]
    [2019/01/10 16:56:39] WebSocket DISCONNECT /chat/ [127.0.0.1:57710]
    Internal Server Error: /auth/github/login/
    Traceback (most recent call last):
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/channels/handler.py", line 243, in process_exception_by_middleware
    return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, callback_args, **callback_kwargs)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 73, in view
    return self.dispatch(request,
    args, kwargs)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 96, in dispatch
    app = provider.get_app(self.request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/base.py", line 52, in get_app
    return SocialApp.objects.get_current(self.id, request)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/models.py", line 40, in get_current
    provider=provider)
    File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args,
    kwargs)

    Adrish Dey
    @captain-pool
    Internal Server Error: /auth/github/login/
    Traceback (most recent call last):
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
        response = get_response(request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
        response = self.process_exception_by_middleware(e, request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/channels/handler.py", line 243, in process_exception_by_middleware
        return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
        response = wrapped_callback(request, *callback_args, **callback_kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 73, in view
        return self.dispatch(request, *args, **kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 96, in dispatch
        app = provider.get_app(self.request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/providers/base.py", line 52, in get_app
        return SocialApp.objects.get_current(self.id, request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/allauth/socialaccount/models.py", line 40, in get_current
        provider=provider)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/db/models/query.py", line 380, in get
        self.model._meta.object_name
    allauth.socialaccount.models.DoesNotExist: SocialApp matching query does not exist.
    Kurian Benoy
    @kurianbenoy
    @captain-pool w
    Isn't the project also
    *You can't use Python 3.5 as this project is only python 2.7.
    Also I feel this issue is because you haven't configured database properly in project
    Adrish Dey
    @captain-pool
    @kurianbenoy I've followed all the steps as given in the README.md to configure the postgres database and for installing the project. I don't feel that it is because of database misconfiguration. It is missing some entry from the database, maybe the github one.. But as far as I remember I copied all the clientID and client secret as given by github... the error occurs when I click on My Demos.
    Kurian Benoy
    @kurianbenoy
    I feel python manage.py migrate migrate migrate might work out
    Adrish Dey
    @captain-pool

    Actually, I'm trying to figure out how to host a demo on the web application.. Can you please give me some hints how to do that??

    I've been doing this:

    1. Creating an App on the webapp. (providing name, operating system, etc.) and submitting it. This gives me a 404 inside the webapp.
    2. Then, I'm creating a test app with the same name I provided on the webapp, using origami_lib which is running on default port 9001 [WORKING]
    but.. I'm unable to see any results in the webapp.
    it still gives 404 inside the webapp..
    Kurian Benoy
    @kurianbenoy
    @captain-pool I think the issue is because Social account model of django-allauth doesn't get registered in postures database. As you pointed maybe due to Github credentials not being properly set or database not registering model.
    Please mention the mentors in group for other issue. They may be able to help you out
    Adrish Dey
    @captain-pool
    @kurianbenoy it worked! But, I'm still getting 404. When I am creating a demo, with name,description,system configuration and clicking on submit.
    The url it opens is, localhost:8000/instructions, and it shows no error message, just a 404 in a red bordered box. @vpn1997 can you provide some suggestions?
    even localhost:8000/help (upon clicking help option from the left pane)gives a 404.
    VIPIN SINGH
    @vpn1997
    @captain-pool hey you should switch to the latest branch.
    Adrish Dey
    @captain-pool

    @vpn1997 The Problem persists... I removed the repo... cloned it again... built the latest branch...

    Hey. there's something bugging me... Whenever I go for the Create Demo or My Demo... The Following Link shows up...
    http://localhost:8000/accounts/github/login/callback/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=kY5I4QfO9vX2

    Also... There's something new with the latest branch. The DB_USER and DB_PASS are not the username and password for django admin page

    akata01
    @akata01
    @captain-pool The link above shows that your github OAuth app is not setup properly. Here is what you need to do. 1) You need to setup everything again and for that start with removing postgresql completely before cloning the repo. Open your command line and do dpkg -l | grep postgres .This will give you all the postgresql packages then run sudo apt-get --purge remove < all package names with space in between>. Then run sudo rm -rf /var/lib/postgresql/ sudo rm -rf /var/log/postgresql/ sudo rm -rf /etc/postgresql/
    This will remove postgresql completely, now setup everything again following the docs correctly and if everything goes right up until now you will be shown initial setup page now go to your github and setup "OAuth App" following the docs. That's it.
    akata01
    @akata01
    @vpn1997 i have deployed the revised mockup to the same link. Please let me know what you think of it.
    akata01
    @akata01
    @captain-pool before creating demo make sure are actually logged in. To check click on the hamburger on the right topmost corner and you should see your profile picture and link to your github and your demo count should be zero as you are just starting out.
    Adrish Dey
    @captain-pool
    It worked! I made a mistake while registering the domain name for django.. Thanks @akata01
    Also, is there any usage manual for the application which can help me get through the process of setting up a demo, running it etc?
    Adrish Dey
    @captain-pool
    I found some documentation online and created a sample application using origami-lib.. when I'm trying to upload the code it gives an internal server error..
    I tried uploading the zipped up code.. and .py file... but it failed in both the cases... The error message for both cases are
    Internal Server Error: /bundleup/1624217/13994201/
    Traceback (most recent call last):
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
        response = get_response(request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
        response = self.process_exception_by_middleware(e, request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/channels/handler.py", line 243, in process_exception_by_middleware
        return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
        response = wrapped_callback(request, *callback_args, **callback_kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
        return view_func(*args, **kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/django/views/generic/base.py", line 68, in view
        return self.dispatch(request, *args, **kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/rest_framework/views.py", line 489, in dispatch
        response = self.handle_exception(exc)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/rest_framework/views.py", line 449, in handle_exception
        self.raise_uncaught_exception(exc)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/rest_framework/views.py", line 486, in dispatch
        response = handler(request, *args, **kwargs)
      File "/home/rick/origami-cloudcv/lib/python3.5/site-packages/rest_framework/decorators.py", line 52, in handler
        return func(*args, **kwargs)
      File "/home/rick/origami-cloudcv/Origami/api/views.py", line 314, in bundleup
        hash_.update(key)
    TypeError: Unicode-objects must be encoded before hashing
    VIPIN SINGH
    @vpn1997
    can you share your zip file @captain-pool
    Adrish Dey
    @captain-pool
    @vpn1997
    The Zip File is contains the code from
    VIPIN SINGH
    @vpn1997
    kaiz merchant
    @kaiz123
    Hi. I was setting up the dev environment on Windows. Do I compulsorily need docker? If yes, is a virtual box necessary. Help would be appreciated. Thanks!
    akata01
    @akata01
    @vpn1997 Hey, regarding this issue Cloud-CV/Origami#273 i have made the pull request -> Cloud-CV/Origami#285 . Now the zip file is successfully downloaded. Here are the before and after screenshots ->
    before :
    before_fix.png
    after :
    after_fix.png
    Animesh Singh Chouhan
    @animesh-chouhan
    Hello everyone!!
    My name is Animesh and I am a second year undergraduate student and I'd like to know how to get started with CloudCV and contribute to the various issues and features. Thanks in advance!!
    Kurian Benoy
    @kurianbenoy
    Hi Animesh welcome to CloudCV. Try to set up the development environment by following README and then go on solving issue mentioned here (https://github.com/Cloud-CV/Origami/issues)
    Kurian Benoy
    @kurianbenoy
    What docker command is to be run when I am entering system again after installation?
    docker run -d -p 6379:6379 --name origami-redis redis:alpine is giving already initialised container error
    akata01
    @akata01
    @kurianbenoy what do you mean by entering system again? You just need to fire up the three terminals to get the app running.