Skip to content

Issue Running Example with Automartini_M3 #10

@ksy141

Description

@ksy141

Hello,

Thank you for providing the detailed installation and usage instructions for Automartini_M3. I was able to install Automartini_M3 and activate the conda environment without any problems. However, when I tried running one of the examples, I encountered the following issue (see below).
Any guidance would be greatly appreciated. For context, I’m working on a MacBook Pro and have confirmed that lxml is installed, though I’m not sure if the error is related to it.

> conda activate automartiniM3
> python -m auto_martiniM3 --smi "CC(=O)OC1=CC=CC=C1C(=O)O" --mol ASP
Traceback (most recent call last):
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/site-packages/auto_martiniM3/__main__.py", line 128, in <module>
    cg = solver.Cg_molecule(mol, smiles, args.molname, args.simple_model, topname, bartenderfname, args.bartender_output, args.logp, args.forcepred)
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/site-packages/auto_martiniM3/solver.py", line 232, in __init__
    if not check_additivity(forcepred, bead_types, molecule, mol_smi):
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/site-packages/auto_martiniM3/solver.py", line 70, in check_additivity
    whole_mol_dg,_ = topology.smi2alogps(forcepred, mol_smi, wc_log_p, "MOL",None,None,True) # AutoM3 change : None,None=converted_smi, real_smi not needed here
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/site-packages/auto_martiniM3/topology.py", line 1401, in smi2alogps
    doc = BeautifulSoup(req.content, "lxml")
  File "/Users/siyoungkim/miniconda3/envs/automartiniM3/lib/python3.8/site-packages/bs4/__init__.py", line 366, in __init__
    raise FeatureNotFound(
bs4.exceptions.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions