Goodman-lab / DP5

Python workflow for DP5 and DP4 analysis of organic molecules
Other
175 stars 102 forks source link

TypeError: unsupported operand type(s) for &: 'NoneType' and 'str' #26

Closed WeiYongqiang55 closed 4 years ago

WeiYongqiang55 commented 4 years ago

File "/home/wyq/Downloads/DP4-AI-master3/DP4-AI-master/MacroModel.py", line 134, in RunMacroModel if shutil.which(os.path.join(settings.SCHRODINGER,'bmin')) is None & settings.SCHRODINGER != "not-installed": TypeError: unsupported operand type(s) for &: 'NoneType' and 'str'

in MacroModel.py line 134 ,& should be and if shutil.which(os.path.join(settings.SCHRODINGER,'bmin')) is None and settings.SCHRODINGER != "not-installed":

KristapsE commented 4 years ago

Yea, this was only meant as a quick fix, a more robust code has been put in it's place in the latest version I just pushed to this repo. This issue should now have been fixed - certainly didn't crop up in my testing, so I will close the issue, but feel free to reopen if it persists.