Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Himanshu
    @himanshuc3
    running this: python manage.py runserver —noworker
    gives
    Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 308, in execute settings.INSTALLED_APPS File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__ self._setup(name) File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 110, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/himanshu/Downloads/code/cloudcv/origami/django_server/settings.py", line 27, in <module> ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1', os.environ['HOST']] File "/Users/himanshu/Downloads/code/cloudcv/origami/venv/lib/python3.6/os.py", line 669, in __getitem__ raise KeyError(key) from None KeyError: ‘HOST’
    P.S. my origami.env is same as said in instructions:
    set -a HOST=localhost PORT=8000 DB_NAME=origami546 DB_PASS=origami546 DB_USER=origami546 DB_USER_EMAIL=example@gmail.com DB_HOST=localhost REDIS_HOST=localhost set +a
    Gurpreet singh
    @Gurpreetsingh9465
    Type printenv in terminal and see if there is any of these keys or not like HOST, DB_USER etc
    If not then try export HOST=8000 in the terminal
    Himanshu
    @himanshuc3
    thanks @Gurpreetsingh9465 worked. But as usual, stuck up on another problem.
    2018-12-19 10:06:26,386 - ERROR - server - Error trying to receive messages: Error 61 connecting to localhost:6379. Connection refused.
    redis.exceptions.ConnectionError: Error 61 connecting to localhost:6379. Connection refused.
    Pulkit gera
    @darthgera123
    kill the instance and restart it again
    Himanshu
    @himanshuc3
    @darthgera123 It ran by running the redis server on another terminal.
    Himanshu
    @himanshuc3
    I am trying to create a demo, but no matter what I fill in, after submition, error 404 happens.
    Yash Jipkate
    @YashJipkate
    Hi everyone!
    I recently attempted to build Origami and got stuck in the Github app registration. What is to filled in "Webhook URL" section? I read the docs and they dont mention it.
    Thanks!
    Yash Jipkate
    @YashJipkate

    Also when I ran yarn run dev and went to localhost:8000 it showed this error in the console:

    Uncaught ReferenceError: localhost is not defined
        at eval (config.js?cf95:2)
        at Object.<anonymous> (bundle.js:1176)
        at __webpack_require__ (bundle.js:679)
        at fn (bundle.js:89)
        at eval (getCloudCVDemos.js?f859:2)
        at Object.<anonymous> (bundle.js:12342)
        at __webpack_require__ (bundle.js:679)
        at fn (bundle.js:89)
        at Object.eval (HomePage.js?5251:7)
        at eval (496:561)

    In config.js I have CLIENT_IP:localhost, which is showing the error.
    Can anyone figure out the problem?

    Yash Jipkate
    @YashJipkate

    Also when I ran yarn run dev and went to localhost:8000 it showed this error in the console:

    Uncaught ReferenceError: localhost is not defined
        at eval (config.js?cf95:2)
        at Object.<anonymous> (bundle.js:1176)
        at __webpack_require__ (bundle.js:679)
        at fn (bundle.js:89)
        at eval (getCloudCVDemos.js?f859:2)
        at Object.<anonymous> (bundle.js:12342)
        at __webpack_require__ (bundle.js:679)
        at fn (bundle.js:89)
        at Object.eval (HomePage.js?5251:7)
        at eval (496:561)

    In config.js I have CLIENT_IP:localhost, which is showing the error.
    Can anyone figure out the problem?

    Ok i figured it out... The localhost should be in qoutes... I think this should have been pointed out in the docs... As it just says "like in the origami.env" but there it doesnt require qoutes..

    Himanshu
    @himanshuc3
    I’ve opened some new issues like Cloud-CV/Origami#278. Please have a look into that maintainers.
    akata01
    @akata01
    Hey everyone. I have been working on this issue Cloud-CV/Origami#223 . I have successfully migrated webpack to latest version 4 and for anyone looking for a little funfact built time reduced from 24930ms to 16124ms : ) for the first build . I will make the pull request today. While migrating webpack to :latest i felt the need to migrate babel to :latest i.e babel 7 as well(which i did locally) but the project is using babel-preset-react-hmre which is no longer maintained so does not have support for babel 7. But use of this older plugin for hot reloding of react part of app can be successfully done by react-hot-loader. should i go ahead and migrate babel to babel7 as well?
    VIPIN SINGH
    @vpn1997
    @akata01 if its not breaking or causing any build issues then sure we can update it.
    akata01
    @akata01
    ok i will make the required changes and migrate to babel 7 . Till then i have migrated the codebase to webpack 4 and made the pull request -> Cloud-CV/Origami#281 .
    vishaldotkhanna
    @vishaldotkhanna
    Hi,
    I'm trying to set up Origami on my Ubuntu machine and am getting the following error when trying to create the redis database, could anyone help me with this?
    (venv) vishal@vishal-X542UQR:~/workspace/python_files/origami/Origami$ lsof -i:6379
    (venv) vishal@vishal-X542UQR:~/workspace/python_files/origami/Origami$ sudo docker run -d -p 6379:6379 --name origami-redis redis:alpine
    eee90d5e517782b96cfa7c611992da7c922bd84d38a704f49ebe02bc4b65fb34
    docker: Error response from daemon: driver failed programming external connectivity on endpoint origami-redis (744d337225ef94bc9ec1d6d7c54aee97eb9bfbee20f216d6b37e7016ae09213b): Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use.
    Adrish Dey
    @captain-pool
    @vishaldotkhanna The Port is already in use.
    it says:
    bind: address already in use.
    Gautam Jajoo
    @gautamjajoo
    Execute : sudo netstat -lpn |grep :6379. And could you post the output of the above.
    Adrish Dey
    @captain-pool
    Hey Everyone, I'm a sophomore year CS student and is new to the open source environment. I'm proficient in Python, Backend using Flask/Django and have a background in Computer Vision, Deep Learning(mostly using Tensorflow). How can I start contributing to the project? I was unable to find any related issue in the tracker. I'm super excited to contribute to the codebase. How can I get started with this? Thank You.
    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)