Dallinger / Griduniverse

Welcome to the Griduniverse.
7 stars 3 forks source link

running the experiment locally: Invalid requirement, parse error at "'-c const'" #189

Closed mmosleh closed 6 years ago

mmosleh commented 6 years ago

I installed Dallinger and it worked for the bartlett1932 demo. Then cloned Griduniverse from Github and used pip install -r requirements to install all requirements. When I want to run the experiment locally using "dallinger debug --verbose" I receive the following error:

Traceback (most recent call last):
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 90, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1632, in parseString
    raise exc
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1622, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 3395, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 3717, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 3378, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/pyparsing.py", line 2689, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pkg_resources._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2956, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 94, in __init__
    requirement_string[e.loc:e.loc + 8]))
pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'-c const'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/currentuser/.virtualenvs/dallinger2/bin/dallinger", line 11, in <module>
    load_entry_point('dallinger', 'console_scripts', 'dallinger')()
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/currentuser/Documents/dallinger2/Dallinger/dallinger/command_line.py", line 297, in debug
    debugger.run()
  File "/Users/currentuser/Documents/dallinger2/Dallinger/dallinger/deployment.py", line 390, in run
    self.setup()
  File "/Users/currentuser/Documents/dallinger2/Dallinger/dallinger/deployment.py", line 372, in setup
    self.out.log, exp_config=self.exp_config
  File "/Users/currentuser/Documents/dallinger2/Dallinger/dallinger/deployment.py", line 71, in setup_experiment
    pkg_resources.require(dependencies)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 737, in resolve
    requirements = list(requirements)[::-1]
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2949, in parse_requirements
    yield Requirement(line)
  File "/Users/currentuser/.virtualenvs/dallinger2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2958, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid requirement, parse error at "'-c const'"