by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    VIPIN SINGH
    @vpn1997
    @captain-pool hi welcome to CloudCV.If you are searching for ML related issues then you can try working on Cloud-CV/Origami#196.
    akata01
    @akata01
    @vpn1997 Hi, i have been working on this issue -> Cloud-CV/Origami#257 . I have created a mockup for initial setup page and deployed it to heroku. Here is the app link -> https://origami1.herokuapp.com/ . Please, if you could take a look and suggest edits.
    Gurpreet singh
    @Gurpreetsingh9465
    @akata01 great work but can you make it responsive for mobile
    Gurpreet singh
    @Gurpreetsingh9465
    test.png
    what to enter in the webhook url
    akata01
    @akata01
    @Gurpreetsingh9465 you need to setup OAuth app.
    https://github.com/settings/developers . Visit this link, login with your github account if not already and click on register a new application.
    Gurpreet singh
    @Gurpreetsingh9465
    @akata01 thanks
    Kurian Benoy
    @kurianbenoy
    Amazing work @akata01. Since I am not an expert in UI design, I can't comment much. I hope the core developers like @vpn1997 @RishabhJain2018 will like it
    Is the issue Cloud-CV/Origami#196 still applicable? Is it still open and a GSOC issue for 2019? I wanted to try to take that issue after solving some basic fixes.
    Adrish Dey
    @captain-pool
    @kurianbenoy although i'm working on that issue, but it is still open.
    VIPIN SINGH
    @vpn1997
    @captain-pool yeah its open.
    VIPIN SINGH
    @vpn1997
    @/all have a look at https://github.com/Cloud-CV/origami-daemon/wiki for the documentation of Origami(Still a work in progress but it will give you guys an overview of what Origami is what we are trying to build) .
    @akata01 i have left a comment on that issue.
    Kurian Benoy
    @kurianbenoy
    Thanks @vpn1997 for sharing current documentation.
    Kurian Benoy
    @kurianbenoy
    @captain-pool feel free to work on that issue. Please comment on issue thread before taking up issues because it will be good for other users to not start working on that issue.
    Abhinav Tripathi
    @Hynix07
    Thanls @vpn1997 for documentation
    Abhinav Tripathi
    @Hynix07
    I am trying to start the server but it is giving the following error can someone suggest what to do
    (venv) abhinav@hynix:~/Origami$ python manage.py runserver --noworker
    /home/abhinav/Origami/venv/local/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
      """)
    /home/abhinav/Origami/venv/local/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
      """)
    Performing system checks...
    
    System check identified no issues (0 silenced).
    January 09, 2019 - 09:35:25
    Django version 1.11.15, using settings 'django_server.settings'
    Starting Channels development server at http://127.0.0.1:8000/
    Channel layer default (asgi_redis.core.RedisChannelLayer)
    Quit the server with CONTROL-C.
    2019-01-09 09:35:25,848 - INFO - server - HTTP/2 support not enabled (install the http2 and tls Twisted extras)
    2019-01-09 09:35:25,849 - INFO - server - Using busy-loop synchronous mode on channel layer
    2019-01-09 09:35:25,849 - INFO - server - Listening on endpoint tcp:port=8000:interface=127.0.0.1
    2019-01-09 09:35:25,850 - ERROR - server - Error trying to receive messages: Error 111 connecting to localhost:6379. Connection refused.
    Tushar Mittal
    @techytushar
    This might be happening because some other service might be already running on the port 6379. Use this: sudo netstat -lpn |grep :6379, then stop that service usingsudo systemctl stop [SERVICE-NAME]`, then try again
    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