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

RuntimeError in python 2 - instantiating EnergyModels #155

Closed
avirshup opened this issue Jun 9, 2017 · 0 comments
Closed

RuntimeError in python 2 - instantiating EnergyModels #155

avirshup opened this issue Jun 9, 2017 · 0 comments

Comments

@avirshup
Copy link
Contributor

avirshup commented Jun 9, 2017

h/t @loriab

Raises this error in Python 2.7, not 3.x

>>> mol = mdt.from_name('bipyridine')
Connecting to docker host at None... done
Job "opsin, bipyridine" launched. id:411304c323496c3b36d86ee1ddc9a8530878fb2e2e583b19fadce64c5bb29853
>>> mol.set_energy_model(mdt.models.RHF(basis='STO-3G'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "moldesign/utils/callsigs.py", line 236, in f
    return self.mthd(obj, *args, **kwargs)
  File "moldesign/models/models.py", line 48, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/loriab/linux/miniconda3/envs/moldesign_env/lib/python2.7/site-packages/future/builtins/newsuper.py", line 100, in newsuper
    raise RuntimeError('super() called outside a method')
RuntimeError: super() called outside a method

Appears to be PythonCharmers/python-future#267

@avirshup avirshup added the bug label Jun 9, 2017
@avirshup avirshup changed the title ImportError in python 2 RuntimeError in python 2 Jun 9, 2017
@avirshup avirshup changed the title RuntimeError in python 2 RuntimeError in python 2 - instantiating EnergyModels Jun 9, 2017
@avirshup avirshup closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant