Skip to content

Instantly share code, notes, and snippets.

@sjbertolani
Last active November 9, 2016 20:04
Show Gist options
  • Select an option

  • Save sjbertolani/96eba61298debce3bd5356744a5abbf8 to your computer and use it in GitHub Desktop.

Select an option

Save sjbertolani/96eba61298debce3bd5356744a5abbf8 to your computer and use it in GitHub Desktop.

Revisions

  1. Steve Bertolani revised this gist Nov 9, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## This is a note on how to fix the new Pyrosetta4 bindings (which now pip install!!!) if you are using anaconda's python.
    This is a note on how to fix the new Pyrosetta4 bindings (which now pip install!!!) if you are using anaconda's python.

    So assuming you have downloaded the latest bindings, unzipped them, pip installed them (all with anaconda's python at the front of your path).

    @@ -11,11 +11,12 @@ Then, you open up python (in a jupyter notebook) and try

    Unfortunately, it dies with the following error:

    ```
    Traceback (most recent call last):
    import rosetta
    ImportError: /home/carlin/bin/anaconda/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/carlin/bin/anaconda/lib/python3.5/site-packages/pyrosetta-4.0-py3.5.egg/rosetta.so)
    ```

    """
    This seems to stem from the version of libgcc that comes installed in anaconda. You can fix this by updating that lib with the following line

    ```
  2. Steve Bertolani renamed this gist Nov 9, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Steve Bertolani created this gist Nov 9, 2016.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ## This is a note on how to fix the new Pyrosetta4 bindings (which now pip install!!!) if you are using anaconda's python.

    So assuming you have downloaded the latest bindings, unzipped them, pip installed them (all with anaconda's python at the front of your path).

    Then, you open up python (in a jupyter notebook) and try

    ```
    >>>import rosetta
    >>>import pyrosetta
    ```

    Unfortunately, it dies with the following error:

    Traceback (most recent call last):
    import rosetta
    ImportError: /home/carlin/bin/anaconda/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/carlin/bin/anaconda/lib/python3.5/site-packages/pyrosetta-4.0-py3.5.egg/rosetta.so)

    """
    This seems to stem from the version of libgcc that comes installed in anaconda. You can fix this by updating that lib with the following line

    ```
    conda install libgcc
    ```

    Now import rosetta should work ( this works for both python 2.7 and 3.5 )