Giter VIP home page Giter VIP logo

josedvq / covfee Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 94.21 MB

extensible web framework for continuous annotation and perception experiments.

Home Page: https://josedvq.github.io/covfee

License: MIT License

HTML 0.25% TypeScript 45.52% JavaScript 1.61% Python 50.46% CSS 0.12% SCSS 1.17% Jupyter Notebook 0.87%
annotation audio-annotation emotion-annotations perception psychology-experiments video-annotation

covfee's People

Contributors

carlosvq1337 avatar chiragraman avatar josedvq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covfee's Issues

Blank webpage after covfee start

covfee-dev schemata
covfee-dev build
covfee mkuser
covfee open
covfee start
covfee webpack
covfee installjs```

I can start covfee:

covfee/samples/basic>covfee start
/home/soren/miniconda3/envs/covfee/lib/python3.7/site-packages/google/oauth2/init.py:40: Python37DeprecationWarning: After January 1, 2024, new releases of this library will drop support for Python 3.7. More details about Python 3.7 support can be found at https://cloud.google.com/python/docs/python37-sunset/
warnings.warn(message, Python37DeprecationWarning)
/home/soren/miniconda3/envs/covfee/lib/python3.7/site-packages/google/auth/init.py:55: Python37DeprecationWarning: After January 1, 2024, new releases of this library will drop support for Python 3.7. More details about Python 3.7 support can be found at https://cloud.google.com/python/docs/python37-sunset/
warnings.warn(message, Python37DeprecationWarning)

                  __             

___ ___ __ __ / | ___ ___
/ | / _ \ \ \ / /| | / _ \ / _
| (
| (_) | \ V / | || /| /
_| _
/ _/ |
| _| _|
URL: http://localhost:5000/admin#

  • Serving Flask app 'covfee.server.start' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://localhost:5000/ (Press CTRL+C to quit)
    127.0.0.1 - - [02/Nov/2023 15:19:27] "GET /admin HTTP/1.1" 200 -

However, the webpage is blank.

Running covfee on a remote server and trying to access it through an SSH tunnel.

Python version requirements on pyproject.toml makes pip fail

#8 introduced constraints on the python version in the toml file. Nevertheless, once the [project] section is introduced, the build system also requires name, version and other attributes. Due to using versioneer, it is not obvious to import the version on the toml file which does not support dynamic content.

Exception: Error running JS validator

After installing covfee python bindings and JS libraries with yarn install

I tried the running the base project. And also following the tutorial (https://josedvq.github.io/covfee/docs/getting_started) I ran into the following:

covfee make . 

✔ 1 covfee project files found.
✔ Read covfee file example.covfee.json.
✖ Error validating project "My Covfee Project" in example.covfee.json.
Traceback (most recent call last):
  File "/Users/sdrwacker/workspace/covfee/covfee/cli/commands/launch.py", line 163, in make
    covfee_make(file_or_folder, force=force, rms=rms, stdout_enabled=True)
  File "/Users/sdrwacker/workspace/covfee/covfee/utils.py", line 31, in covfee_make
    project_folder.validate(with_spinner=stdout_enabled)
  File "/Users/sdrwacker/workspace/covfee/covfee/covfee_folder.py", line 99, in validate
    raise e
  File "/Users/sdrwacker/workspace/covfee/covfee/covfee_folder.py", line 96, in validate
    self.validate_project(project_spec, cf, with_spinner=with_spinner)
  File "/Users/sdrwacker/workspace/covfee/covfee/covfee_folder.py", line 75, in validate_project
    filter = AjvValidator()
             ^^^^^^^^^^^^^^
  File "/Users/sdrwacker/workspace/covfee/covfee/shared/validator/ajv_validator.py", line 29, in __init__
    raise e
Exception: Error running JS validator /Users/sdrwacker/workspace/covfee/covfee/server/../shared/validator/validator_service.js

/Users/sdrwacker/workspace/covfee/node_modules/node-gyp-build/node-gyp-build.js:60
  throw new Error('No native build was found for ' + target + '\n    loaded from: ' + dir + '\n')
  ^

Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=108 uv=1 armv=8 libc=glibc node=18.16.0
    loaded from: /Users/sdrwacker/workspace/covfee/node_modules/zeromq

    at load.resolve.load.path (/Users/sdrwacker/workspace/covfee/node_modules/node-gyp-build/node-gyp-build.js:60:9)
    at load (/Users/sdrwacker/workspace/covfee/node_modules/node-gyp-build/node-gyp-build.js:22:30)
    at Object.<anonymous> (/Users/sdrwacker/workspace/covfee/node_modules/zeromq/lib/native.js:6:43)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/Users/sdrwacker/workspace/covfee/node_modules/zeromq/lib/index.js:3:16)

Node.js v18.16.0

example.covfee.json

{
    "id": "getting_started",
    "name": "My Covfee Project",
    "email": "[email protected]",
    "hits": [
      {
        "id": "hit1",
        "name": "HIT1",
        "tasks": [

            {
                "name": "Demographics",
                "type": "QuestionnaireTask",
                "form": {
                  "fields": [
                    {
                      "name": "age",
                      "label": "Your age:",
                      "input": {
                        "inputType": "InputNumber"
                      }
                    },
                    {
                      "name": "sex",
                      "label": "Your sex:",
                      "input": {
                        "inputType": "Select",
                        "options": [
                          {"label": "Male", "value": "m"},
                          {"label": "Female", "value": "f"}
                        ]
                      }
                    },
                    {
                      "name": "nationality",
                      "label": "Your nationality:",
                      "input": {
                        "inputType": "Input"
                      }
                    }
                  ]
                }
              },
              {
                "name": "Instructions",
                "type": "InstructionsTask",
                "content": {
                  "type": "link",
                  "url": "$$www$$/instructions.md"
                }
              },
              {
                "name": "Arousal annotation",
                "type": "Continuous1DTask",
                "media": {
                  "type": "video",
                  "url": "https://cdn.jsdelivr.net/gh/josedvq/covfee@master/samples/keypoints/www/person_reading.mp4"
                },
                "intensityInput": {
                  "mode": "ranktrace"
                }
              },    
              {
                "name": "Feedback",
                "type": "QuestionnaireTask",
                "form": {
                  "fields": [
                      {
                          "name": "rating",
                          "label": "How would you rate your experience in completing this experiment?",
                          "required": true,
                          "input": {
                              "inputType": "Rate",
                              "half": true
                          }
                      },{
                          "name": "feedback",
                          "label": "Do you have any comments that can help us improve the experience?",
                          "input": {
                              "inputType": "Input.TextArea"
                          }
                      }
                  ]
                }
              }

        ],
        "interface": {
          "type": "timeline"
        }
      }
    ]
  }
  

.
├── example.covfee.json
└── www
    └── instructions.md

Unable to install covfee on MacOS and Ubuntu

pip install -e .

returns

e/include -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -I/home/soren/miniconda3/envs/covfee/include/python3.11 -c zmq/backend/cython/_device.c -o build/temp.linux-x86_64-cpython-311/zmq/backend/cython/_device.o
      zmq/backend/cython/_device.c:217:12: fatal error: longintrepr.h: No such file or directory
        217 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      ************************************************
      ************************************************
      ************************************************
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
Successfully built covfee flask-jwt-extended halo MarkupSafe
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects

Error - covfee-installjs

Hello!
I would like to use covfee to annotate human behaviour. However, when I try to install Javascript dependencies by running the command covfee-installjs, I get the following error: bash: covfee-installjs: command not found. Do you know how can I fix it?
Thank you in advance!

covfee-webpack not found

After installing covfee with pip install -e . and running yarn install no executable file covfee-webpack is found:

Only:

covfee covfee-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.