Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression on pyparsing 2.1.0 #38

Closed
richardotis opened this issue Feb 22, 2016 · 6 comments
Closed

Regression on pyparsing 2.1.0 #38

richardotis opened this issue Feb 22, 2016 · 6 comments
Assignees
Labels

Comments

@richardotis
Copy link
Collaborator

Database loading appears to hang on pyparsing 2.1.0.

Reporting user traceback:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pycalphad/io/database.py", line 110, in __new__
    return cls.from_file(fname, fmt=fmt)
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pycalphad/io/database.py", line 183, in from_file
    format_registry[fmt.lower()].read(dbf, fd)
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pycalphad/io/tdb.py", line 747, in read_tdb
    tokens = _tdb_grammar().parseString(command)
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1152, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2554, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2440, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2695, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2423, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2695, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1083, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1018, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 2625, in parseImpl
    if e.canParseNext(instring, tmpLoc):
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1066, in canParseNext
    self.tryParse(instring, loc)
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1060, in tryParse
    return self._parse( instring, loc, doActions=False )[0]
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 1080, in _parseCache
    return (value[0],value[1].copy())
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 548, in copy
    ret = ParseResults( self.__toklist )
  File "/Users/firebird/allPythonEnv/pycalphad031/lib/python2.7/site-packages/pyparsing.py", line 285, in __init__
    self.__asList = asList
KeyboardInterrupt
@richardotis richardotis self-assigned this Feb 22, 2016
@richardotis
Copy link
Collaborator Author

I can reproduce this error on Python 2.7 and 3.5 with pyparsing 2.1.0. Downgrading to 2.0.7 makes the problem disappear.

@richardotis
Copy link
Collaborator Author

Issue reported upstream https://sourceforge.net/p/pyparsing/bugs/91/

@richardotis
Copy link
Collaborator Author

https://sourceforge.net/p/pyparsing/bugs/92/ is the new issue tracking the bug -- upstream is reporting it's fixed in master.

@richardotis
Copy link
Collaborator Author

pyparsing 2.1.1 has been released. Once this issue is confirmed fixed, we'll bump the version in setup.py

@richardotis
Copy link
Collaborator Author

pyparsing 2.1.1 seems to have a different regression, so we're just going to stay on 2.0.7 for the near future.

@richardotis
Copy link
Collaborator Author

a7be84a should have fixed this for all recent versions of pyparsing.

bocklund pushed a commit to bocklund/pycalphad that referenced this issue Aug 17, 2021
…had#38)

Add multiprocessing option through emcee and make it default.

* Add warning that MPIPool does not take cores argument.
* Add default to available cores for emcee and dask (total number of cores)
* Change expected default scheduler to emcee in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant