Member Site › Forums › PyRosetta › PyRosetta – General › Creating FeatureReporters in PyRosetta
- This topic has 7 replies, 4 voices, and was last updated 8 years, 4 months ago by Anonymous.
-
AuthorPosts
-
-
August 24, 2016 at 6:50 am #2493Anonymous
Hi,
I’m trying to implement FeatureReporters in PyRosetta (compiled from release 3.5). I’m implementing the following methods:
- write_schema_to_db
- report_features
Both of these methods get utility::sql_database::sessionOP as input. When I try to run the code I get the following error message:
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<utility::sql_database::session>
Apparently , this issue comes up because the session class hasn’t been exposed to python. Is there any other way to write features reporters in python / solve this issue?
-
August 24, 2016 at 1:50 pm #11811Anonymous
I would guess you’re already the most experienced with FeatureReporters in PyRosetta (I don’t remember the people building that system using PyRosetta much).
Why are you still on 3.5?
I’d put this on devel or the Slack team.
-
August 24, 2016 at 8:55 pm #11814Anonymous
It might be possible that PyRosetta-3 is skipping binding this class. Lior could you please try PyRosetta-4 and see if that solve the issue? (i will mail you info diretly)
Thanks,
-
August 24, 2016 at 8:25 pm #11812Anonymous
Thanks.
I just wanted to make sure i’m not missing anything before implementing something of my own … I guess that the best way to do it is to expose utility::sql_database::session class to python…?
-
August 24, 2016 at 8:51 pm #11813Anonymous
Strange. I thought python should already understand all internal classes. Perhaps he had to put in directories? I don’t know. All my antibody and carbohydrate classes ‘just-work’.
I’ll email Sergey.
-
August 24, 2016 at 9:23 pm #11817Anonymous
I wouldn’t expose anything to python. My understanding from Sergey is that PyRosetta4, to be released soon, does a better job of wrapping code than older versions. See what he says about that timeframe.
-
August 24, 2016 at 8:57 pm #11815Anonymous
Thanks Jared!!
That was my experience so far… all of my classes just worked. I hope Sergey could point me in the right direction
-
August 24, 2016 at 8:58 pm #11816Anonymous
Sure. Thank you!
-
-
AuthorPosts
- You must be logged in to reply to this topic.