Closed kangmg closed 1 month ago
Just reproduced this locally - whoops! We recently completed a big refactor and forgot to sync the API updates for rowan-python
- that's on us for not having CI/CD properly set up here yet.
I'll get this fixed and re-release rowan-python
in a few days. Note that only type="calculation"
should be malfunctioning, and everything else should work fine. I've tested a few workflows just now - here's an example:
import rowan
rowan.api_key = "rowan-skyoursecretkeyhere"
client = rowan.Client(blocking=True)
result = client.compute(
"pka",
input_smiles="c1ccccn1",
name="pyridine pka",
mode="careful",
pka_range=(0, 14),
deprotonate_elements=[7, 8, 16],
protonate_elements=[7]
)
print(result)
Hey @kangmg sorry for the delay - we ended up completely rewriting our entire API :/
We've released v1.0.0 on pypi and the new documentation is here. Here's a working example for the new API:
import rowan
from private import ROWAN_API
rowan.api_key = ROWAN_API
folder = rowan.Folder.create(
name="test Rowan API folder"
)
result = rowan.compute(
workflow_type="basic_calculation",
molecule="CC(=O)OC",
name="test",
settings={"method": "gfn_ff", "tasks": ["energy"]},
engine="xtb",
)
print(result)
I hope this helps, and please reach out again if you have more issues!
Sorry for the late response. I tested it today, and it worked fine in my local environment!
However, when I tried it in a colab environment, an error occurred.
[/usr/local/lib/python3.10/dist-packages/rowan/workflow.py](https://localhost:8080/#) in Workflow()
14 workflow_data: dict,
15 name: Optional[str] = None,
---> 16 folder_uuid: Optional[stjames.UUID] = None,
17 ) -> dict:
18 if isinstance(initial_molecule, stjames.Molecule):
AttributeError: module 'stjames' has no attribute 'UUID'
It seems that rowan-python==1.0.0
requires stjames = ">=0.0.42"
, which in turn requires Python 3.11 or higher. However, rowan-python==1.0.0
is set with requires-python = ">=3.8"
. This means it can be installed on Python 3.10 or lower, but version dependency issues can lead to errors.
Thank you for your excellent service :)
Dear rowan developers,
I am currently working on a simple project using the Rowan API. I've encountered an issue during basic API testing and would like to request your assistance.
Error detail
API test code