selimsami / qforce

Apache License 2.0
57 stars 13 forks source link

Dependency on pycolt #9

Closed xiki-tempula closed 3 years ago

xiki-tempula commented 3 years ago

I wonder if it is possible to fix the issue with pycolt? It seems that if I install pycolt from the github repo and run qforce, I would get

          ____         ______
         / __ \       |  ____|
        | |  | |______| |__ ___  _ __ ___ ___
        | |  | |______|  __/ _ \| '__/ __/ _ \
        | |__| |      | | | (_) | | | (_|  __/
         \___\_\      |_|  \___/|_|  \___\___|

                     Selim Sami
            University of Groningen - 2020
            ==============================

Section = qm unknown, maybe typo?
Traceback (most recent call last):
  File "/biggin/b120/grte2001/miniconda3/envs/qforce/bin/qforce", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/biggin/b120/grte2001/GitHub/qforce/bin/qforce", line 23, in <module>
    run_qforce(input_arg=input_arg, config=config_file)
  File "/biggin/b120/grte2001/GitHub/qforce/qforce/main.py", line 14, in run_qforce
    config, job = initialize(input_arg, config, presets)
  File "/biggin/b120/grte2001/GitHub/qforce/qforce/initialize.py", line 147, in initialize
    init = Initialize.from_questions(input_arg=input_arg, config=config, presets=presets,
  File "/biggin/b120/grte2001/miniconda3/envs/qforce/lib/python3.9/site-packages/colt/colt.py", line 198, in from_questions
    return cls._from_config(answers, *args, **kwargs)
  File "/biggin/b120/grte2001/miniconda3/envs/qforce/lib/python3.9/site-packages/colt/colt.py", line 309, in _from_config
    return cls.from_config(answer, *args, **kwargs)
  File "/biggin/b120/grte2001/GitHub/qforce/qforce/initialize.py", line 103, in from_config
    return cls(config, input_arg)
  File "/biggin/b120/grte2001/GitHub/qforce/qforce/initialize.py", line 83, in __init__
    self.config = self._set_config(config)
  File "/biggin/b120/grte2001/GitHub/qforce/qforce/initialize.py", line 87, in _set_config
    config['qm'].update(config['qm']['software'])
  File "/biggin/b120/grte2001/miniconda3/envs/qforce/lib/python3.9/site-packages/colt/answers.py", line 14, in __getitem__
    return self._data[key]
KeyError: 'qm'

The pip version of pycolt works fine but it has a dependency on readline which will not work on osx.

selimsami commented 3 years ago

I will discuss this with the developer of pycolt, could be a version issue.

selimsami commented 3 years ago

@xiki-tempula, this problem should be fixed in the latest version of qforce (0.5.5). let me know if you encounter any problems please.