Creating FeatureReporters in PyRosetta

Member Site Forums PyRosetta PyRosetta – General Creating FeatureReporters in PyRosetta

Viewing 2 reply threads
  • Author
    Posts
    • #2493
      Anonymous

        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?

         

      • #11811
        Anonymous

          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.  

        • #11814
          Anonymous

            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,

          • #11812
            Anonymous

              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…?

            • #11813
              Anonymous

                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. 

              • #11817
                Anonymous

                  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.

                • #11815
                  Anonymous

                    Thanks Jared!!

                    That was my experience so far… all of my classes just worked. I hope Sergey could point me in the right direction :)

                  • #11816
                    Anonymous

                      Sure. Thank you!

                  Viewing 2 reply threads
                  • You must be logged in to reply to this topic.