Giter Club home page Giter Club logo

suite's People

Contributors

nfriedly avatar philipithomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

suite's Issues

[Question] Recurring shifts not being converted into real shifts, time off requests

Hello,
Thank you for open sourcing this. I appreciate this is no longer being maintained, but I imagine this is a bit of a noob question.

After wrangling a bit with upgrading packages, Python behaviour changes, and so on, I managed to get the dev environment up and running. But now as I try to use it, I have two issues that do not appear to be errors:

  1. I create recurring shifts for roles or employees, but these never seem to appear on the schedules. They're there when I list shifts, but the schedule is clean, no shifts are added unless I add them manually. No errors are thrown anywhere, and the recurring shifts are there in the database. At what point are they supposed to be created? There are many references in the code to a schedule being unpublished/published, but nothing in the interface seems to refer to this.

  2. It does not appear that users can request time-off from their own accounts. Managers are able to create time off requests and accept them in their own accounts, but users don't seem to be able to. Is this actually not supported? or am I missing something?

The tutorial videos may have helped, but it seems they've been taken off Youtube. If there's any alternative place for me to find them, I'd appreciate a pointer.

Many thanks for your help,.

500 Error in production after signup

ERROR Exception on /auth/free-trial [POST] Traceback (most recent call last):   
...
File "./app/auth/views.py", line 512, in free_trial     provision(form)   
File "./app/auth/free_trial.py", line 103, in provision     True)   
File "./app/models/user_model.py", line 620, in send_email     send_email(self.email, subject, html_body)   
File "./app/email.py", line 11, in send_email     _send_email.apply_async(args=[to, subject, html_body])   
...

Exception on /favicon.ico / 502 Bad Gateway

I think I mucked up something with the assets file here...

ERROR Exception on /favicon.ico [GET] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 271, in error_router return original_handler(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1370, in handle_user_exception return self.handle_http_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1330, in handle_http_exception return handler(e) File "./app/init.py", line 173, in page_not_found resp = make_response(render_template("404.html")) File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template context, ctx.app) File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render rv = template.render(context) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 989, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception reraise(exc_type, exc_value, tb) File "/src/app/templates/404.html", line 1, in top-level template code {% extends "error.html" %} File "/src/app/templates/error.html", line 1, in top-level template code {% extends "bootstrap.html" %} File "/src/app/templates/bootstrap.html", line 74, in top-level template code {% block intercom %} File "/src/app/templates/bootstrap.html", line 76, in block "intercom" window.intercomSettings = {{ current_user.intercom_settings() | safe }}; File "./app/models/user_model.py", line 488, in intercom_settings hashlib.sha256, ).hexdigest(), File "/usr/lib/python2.7/hmac.py", line 133, in new return HMAC(key, msg, digestmod) File "/usr/lib/python2.7/hmac.py", line 68, in init if len(key) > blocksize: TypeError: object of type 'NoneType' has no len()

Default password?

Hello!

This is very definitely a dumb question, but: what is the default password, if any, of the user/s created via the user.txt file?
I saw in the code it might be "staffjoydev", but that seems not to work.

Any help is greatly appreciated.
Thank you :)

First time "make dev" results in [db-deploy] Error 1

Hello friends, I am trying to figure out how to get this project running locally on my machine, It seems to stop working after i have installed all dependencies with the "make dev" command.

File "main.py", line 9, in <module>
    from app.models import *
  File "/vagrant/app/models/__init__.py", line 16, in <module>
    exec ("from %s import %s" % (module, classname)) # pylint: disable=exec-used
  File "<string>", line 1, in <module>
  File "/vagrant/app/models/schedule2_model.py", line 11, in <module>
    import recurring_shift_model  # pylint: disable=relative-import
  File "/vagrant/app/models/recurring_shift_model.py", line 12, in <module>
    import organization_model  # pylint: disable=relative-import
  File "/vagrant/app/models/organization_model.py", line 10, in <module>
    import user_model  # pylint: disable=relative-import
  File "/vagrant/app/models/user_model.py", line 21, in <module>
    from app.email import send_email
  File "/vagrant/app/email.py", line 5, in <module>
    celery = create_celery_app()
  File "/vagrant/app/__init__.py", line 49, in create_celery_app
    os.environ.get("ENV", "prod"), register_blueprints=False)
  File "/vagrant/app/__init__.py", line 135, in create_app
    css_blog.build()
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/bundle.py", line 663, in build
    disable_cache=disable_cache))
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/bundle.py", line 600, in _build
    force, disable_cache=disable_cache, extra_filters=extra_filters)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/bundle.py", line 524, in _merge_and_apply
    kwargs=item_data)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/merge.py", line 276, in apply
    return self._wrap_cache(key, func)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/merge.py", line 218, in _wrap_cache
    content = func().getvalue()
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/merge.py", line 251, in func
    getattr(filter, type)(data, out, **kwargs_final)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/filter/less.py", line 139, in input
    self._apply_less(_in, out, source_path)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/filter/less.py", line 131, in _apply_less
    self.subprocess(args, out, in_)
  File "/vagrant/vagrant-venv/local/lib/python2.7/site-packages/webassets/filter/__init__.py", line 523, in subprocess
    proc.returncode, stdout, stderr))
webassets.exceptions.FilterError: less: subprocess returned a non-success result code: 1, stdout=, stderr=[TypeError: Object function Object() { [native code] } has no method 'assign']

make: *** [db-deploy] Error 1

I am not too sure what this error is exactly coming from, I feel like I am missing a vital dependency to get this project working. Any help would be appreciated!

Unirest in throws errors in smoke tests

Traceback (most recent call last):
  File "/opt/python/2.7.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/opt/python/2.7.12/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages/unirest/__init__.py", line 82, in __request
    encoded_string = base64.b64encode(user + ':' + password)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Getting mobius to consume the queue?

Short question, grateful for any pointers in the right direction.

I've managed to get suite up and running using docker-compose (and some manual wrangling). Can create users, roles, the whole shebang. Seems to work as it should.

However, I can't get mobius to consume any tasks from the queue.

Steps:

  1. Get suite up and running, create a sudo user and create an API key.

  2. Create some shifts

  3. Configure mobius (self-hosted) with the API key, start server.sh. Polling commences.

  4. Call cron to enqueue tasks. Works.

     {
       "schedules_created": 0,
       "schedules_queued_mobius": 12
     }
    

... However, nothing gets picked up by mobius. It just keeps reporting

2017-04-21T08:08:22 mobius-dev mobius DEBUG No task found. Sleeping.
2017-04-21T08:08:27 mobius-dev mobius DEBUG No task found. Sleeping.

And in /euler i just see a lot of entries like the one below.

img 2017-04-21 at 08 10 58

Is there something I'm missing? (On the main instance I see a lot of celery processes, so I guess the queue should be up.) Something more I need to do to get mobius to pick up the tasks?

Best regards,
/
uvesten

Unable to build Dockerfile or Docker-compose

Hi,

I am trying to get the staffjoy v1 suite-master using Docker-compose and I am running into the following error message. Building the dockerfile also throws up a similar error. It looks like it is unable to install the cryptography package. Any thoughts or suggestions will be greatly appreciated.

Running setup.py (path:/tmp/pip_build_root/pycparser/setup.py) egg_info for package pycparser

warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'

Downloading/unpacking pylint==1.5.5 (from -r requirements.txt (line 51))
Downloading/unpacking pylint-flask==0.3 (from -r requirements.txt (line 52))
Downloading pylint-flask-0.3.tar.gz
Running setup.py (path:/tmp/pip_build_root/pylint-flask/setup.py) egg_info for package pylint-flask

Downloading/unpacking pylint-plugin-utils==0.2.3 (from -r requirements.txt (line 53))
Downloading pylint-plugin-utils-0.2.3.tar.gz
Running setup.py (path:/tmp/pip_build_root/pylint-plugin-utils/setup.py) egg_info for package pylint-plugin-utils

Downloading/unpacking PyMySQL==0.7.2 (from -r requirements.txt (line 54))
Downloading/unpacking pyOpenSSL==0.15.1 (from -r requirements.txt (line 55))
Downloading/unpacking pyparsing==2.1.10 (from -r requirements.txt (line 56))
Downloading/unpacking pytest==2.9.1 (from -r requirements.txt (line 57))
Downloading/unpacking python-dateutil==2.4.2 (from -r requirements.txt (line 58))
Downloading/unpacking python-editor==0.5 (from -r requirements.txt (line 59))
Downloading python-editor-0.5.tar.gz
Running setup.py (path:/tmp/pip_build_root/python-editor/setup.py) egg_info for package python-editor

Downloading/unpacking pytz==2015.7 (from -r requirements.txt (line 60))
Downloading/unpacking redis==2.10.5 (from -r requirements.txt (line 61))
Downloading/unpacking requests==2.9.1 (from -r requirements.txt (line 62))
Downloading/unpacking six==1.10.0 (from -r requirements.txt (line 63))
Downloading six-1.10.0-py2.py3-none-any.whl
Downloading/unpacking SQLAlchemy==1.0.12 (from -r requirements.txt (line 64))
Running setup.py (path:/tmp/pip_build_root/SQLAlchemy/setup.py) egg_info for package SQLAlchemy

warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching '*.mako' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'

Downloading/unpacking stripe==1.29.1 (from -r requirements.txt (line 65))
Running setup.py (path:/tmp/pip_build_root/stripe/setup.py) egg_info for package stripe

Downloading/unpacking twilio==5.4.0 (from -r requirements.txt (line 66))
Running setup.py (path:/tmp/pip_build_root/twilio/setup.py) egg_info for package twilio

Downloading/unpacking Unirest==1.1.7 (from -r requirements.txt (line 67))
Downloading Unirest-1.1.7.tar.gz
Running setup.py (path:/tmp/pip_build_root/Unirest/setup.py) egg_info for package Unirest

warning: no files found matching '*.txt' under directory 'docs'

Downloading/unpacking visitor==0.1.2 (from -r requirements.txt (line 68))
Downloading visitor-0.1.2.tar.gz
Running setup.py (path:/tmp/pip_build_root/visitor/setup.py) egg_info for package visitor

Downloading/unpacking webassets==0.11.1 (from -r requirements.txt (line 69))
Running setup.py (path:/tmp/pip_build_root/webassets/setup.py) egg_info for package webassets

warning: no files found matching 'run_tests.py'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching 'out.css' found under directory 'examples'
warning: no previously-included files matching 'out.js' found under directory 'examples'
no previously-included directories found matching 'examples/appengine-sdk'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.gitignore' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching 'webassets-cache/*' found anywhere in distribution
warning: no previously-included files matching '.sass-cache/*' found anywhere in distribution

Downloading/unpacking Werkzeug==0.11.4 (from -r requirements.txt (line 70))
Downloading/unpacking wrapt==1.10.8 (from -r requirements.txt (line 71))
Downloading wrapt-1.10.8.tar.gz
Running setup.py (path:/tmp/pip_build_root/wrapt/setup.py) egg_info for package wrapt

Downloading/unpacking WTForms==2.1 (from -r requirements.txt (line 72))
Running setup.py (path:/tmp/pip_build_root/WTForms/setup.py) egg_info for package WTForms

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'tests'

Downloading/unpacking yapf==0.16.0 (from -r requirements.txt (line 73))
Requirement already satisfied (use --upgrade to upgrade): setuptools>=1.0 in /usr/lib/python2.7/dist-packages (from cryptography==1.2.2->-r requirements.txt (line 12))
Installing collected packages: alembic, amqp, aniso8601, anyjson, appdirs, astroid, billiard, blinker, celery, cffi, colorama, cryptography, docopt, dominate, enum34, Flask, Flask-Assets, Flask-Bootstrap, Flask-Limiter, Flask-Login, Flask-Mail, Flask-Migrate, Flask-Redis-Helper, Flask-RESTful, Flask-Script, Flask-SQLAlchemy, Flask-WTF, httplib2, idna, ipaddress, iso8601, itsdangerous, Jinja2, jsmin, kombu, lazy-object-proxy, limits, logilab-common, Mako, mandrill, Markdown, MarkupSafe, MySQL-python, ndg-httpsclient, packaging, phonenumbers, poster, py, pyasn1, pycparser, pylint, pylint-flask, pylint-plugin-utils, PyMySQL, pyOpenSSL, pyparsing, pytest, python-dateutil, python-editor, pytz, redis, requests, six, SQLAlchemy, stripe, twilio, Unirest, visitor, webassets, Werkzeug, wrapt, WTForms, yapf
Running setup.py install for alembic

warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.sty' under directory 'docs'
warning: no files found matching '*.dat' under directory 'tests'
no previously-included directories found matching 'docs/build/output'
Installing alembic script to /usr/local/bin

Running setup.py install for aniso8601

Running setup.py install for anyjson

Compiling /tmp/pip_build_root/astroid/astroid/tests/testdata/python3/data/module2.py ...
File "/tmp/pip_build_root/astroid/astroid/tests/testdata/python3/data/module2.py", line 100
print('bonjour', file=stream)
^
SyntaxError: invalid syntax

Running setup.py install for billiard
building '_billiard' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/usr/include/python2.7 -c Modules/_billiard/multiprocessing.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/multiprocessing.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/usr/include/python2.7 -c Modules/_billiard/socket_connection.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/socket_connection.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/usr/include/python2.7 -c Modules/_billiard/semaphore.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/semaphore.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/Modules/_billiard/multiprocessing.o build/temp.linux-x86_64-2.7/Modules/_billiard/socket_connection.o build/temp.linux-x86_64-2.7/Modules/_billiard/semaphore.o -lrt -o build/lib.linux-x86_64-2.7/_billiard.so

warning: no files found matching '*.py' under directory 'Lib'

Running setup.py install for blinker

Running setup.py install for cffi
building '_cffi_backend' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/c/_cffi_backend.o -lffi -o build/lib.linux-x86_64-2.7/_cffi_backend.so

Found existing installation: colorama 0.2.5
Not uninstalling colorama at /usr/lib/python2.7/dist-packages, owned by OS
Running setup.py install for cryptography
warning: no previously-included files matching 'yacctab.' found under directory 'tests'
warning: no previously-included files matching 'lextab.
' found under directory 'tests'
warning: no previously-included files matching 'yacctab.' found under directory 'examples'
warning: no previously-included files matching 'lextab.
' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.ygen: module references file
pycparser.ply.yacc: module references file
pycparser.ply.yacc: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module MAY be using inspect.stack
pycparser.ply.lex: module references file
pycparser.ply.lex: module MAY be using inspect.getsourcefile

Installed /tmp/pip_build_root/cryptography/pycparser-2.18-py2.7.egg
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip_build_root/cryptography/setup.py", line 318, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 243, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 277, in finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 161, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 24, in execfile
    exec(code, glob, glob)
  File "src/_cffi_src/build_openssl.py", line 98, in <module>
    extra_link_args=extra_link_args(compiler_type()),
  File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 64, in build_ffi_for_binding
    extra_link_args=extra_link_args,
  File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 73, in build_ffi
    ffi.cdef(cdef_source)
  File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 105, in cdef
    self._cdef(csource, override=override, packed=packed)
  File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 119, in _cdef
    self._parser.parse(csource, override=override, **options)
  File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 289, in parse
    self._internal_parse(csource)
  File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 294, in _internal_parse
    ast, macros, csource = self._parse(csource)
  File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 252, in _parse
    self.convert_pycparser_error(e, csource)
  File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 281, in convert_pycparser_error
    raise api.CDefError(msg)
cffi.api.CDefError: cannot parse "typedef int __dotdotdot__  time_t;"
:13:28: before: time_t
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-JIFOMk-record/install-record.txt --single-version-externally-managed --compile:
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'

warning: no previously-included files matching 'lextab.*' found under directory 'tests'

warning: no previously-included files matching 'yacctab.*' found under directory 'examples'

warning: no previously-included files matching 'lextab.*' found under directory 'examples'

zip_safe flag not set; analyzing archive contents...

pycparser.ply.ygen: module references file

pycparser.ply.yacc: module references file

pycparser.ply.yacc: module MAY be using inspect.getsourcefile

pycparser.ply.yacc: module MAY be using inspect.stack

pycparser.ply.lex: module references file

pycparser.ply.lex: module MAY be using inspect.getsourcefile

Installed /tmp/pip_build_root/cryptography/pycparser-2.18-py2.7.egg

Traceback (most recent call last):

File "", line 1, in

File "/tmp/pip_build_root/cryptography/setup.py", line 318, in

**keywords_with_side_effects(sys.argv)

File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 243, in init

_Distribution.__init__(self,attrs)

File "/usr/lib/python2.7/distutils/dist.py", line 287, in init

self.finalize_options()

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 277, in finalize_options

ep.load()(self, ep.name, value)

File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 161, in cffi_modules

add_cffi_module(dist, cffi_module)

File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module

execfile(build_file_name, mod_vars)

File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 24, in execfile

exec(code, glob, glob)

File "src/_cffi_src/build_openssl.py", line 98, in

extra_link_args=extra_link_args(compiler_type()),

File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 64, in build_ffi_for_binding

extra_link_args=extra_link_args,

File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 73, in build_ffi

ffi.cdef(cdef_source)

File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 105, in cdef

self._cdef(csource, override=override, packed=packed)

File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 119, in _cdef

self._parser.parse(csource, override=override, **options)

File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 289, in parse

self._internal_parse(csource)

File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 294, in _internal_parse

ast, macros, csource = self._parse(csource)

File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 252, in _parse

self.convert_pycparser_error(e, csource)

File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 281, in convert_pycparser_error

raise api.CDefError(msg)

cffi.api.CDefError: cannot parse "typedef int dotdotdot time_t;"

:13:28: before: time_t


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-JIFOMk-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /root/.pip/pip.log
ERROR: Service 'website' failed to build: The command '/bin/sh -c cd /src; pip install -r requirements.txt' returned a non-zero code: 1

Docker Compose configuration

As noted in the README:

The development environment works, but really needs a ground-up rewrite to something like Docker Compose. (It hasn't been extensively modified since before Staffjoy was a full-time job!)

It looks like this project would definitely benefit from a docker-compose config. This should speed up on-boarding for any new contributors, as I'm currently trying to spin up the environment myself.

Change javascript without having to restart Vagrant

I am attempting to make changes to some of the Backbone JS files, but modifying them will not result in the server code being changed, I believe it has something to do with the webcache. To have the updates take place, I have to do "make dev" again. Changing the HTML or Python works fine.

How do I fix this?

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.