Thanks to visit codestin.com
Credit goes to github.com

Skip to content

autodock_plugin not working for python 3 / pymol 3 #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
camattelaer opened this issue Feb 26, 2025 · 2 comments
Open

autodock_plugin not working for python 3 / pymol 3 #156

camattelaer opened this issue Feb 26, 2025 · 2 comments

Comments

@camattelaer
Copy link

Hi

I am using pymol 3.0.0 and just installed the autodock_plugin

When i try to start it, it returns the following error:

Traceback (most recent call last):
  File "/home/camattelaer/Programs/miniconda3/envs/pymol/lib/python3.12/site-packages/pmg_tk/startup/autodock_plugin.py", line 109, in <lambda>
    command=lambda s=self: Autodock(s))
                           ^^^^^^^^^^^
  File "/home/camattelaer/Programs/miniconda3/envs/pymol/lib/python3.12/site-packages/pmg_tk/startup/autodock_plugin.py", line 592, in __init__
    self.notebook = Pmw.NoteBook(self.dialog.interior())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/camattelaer/Programs/miniconda3/envs/pymol/lib/python3.12/site-packages/Pmw/Pmw_2_0_1/lib/PmwNoteBook.py", line 60, in __init__
    Pmw.Color.bordercolors(self, self['hull_background'])
  File "/home/camattelaer/Programs/miniconda3/envs/pymol/lib/python3.12/site-packages/Pmw/Pmw_2_0_1/lib/PmwColor.py", line 359, in bordercolors
    '#%04x%04x%04x' % (lightRGB[0], lightRGB[1], lightRGB[2]),
    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: %x format: an integer is required, not float

Kind regards

Charles-Alexandre

@pslacerda
Copy link
Member

This problem you're facing seems related to #136. Can you change the lightRGB[0] to int(lightRGB[0]) and so on?

You may also want to check the following script: https://tiny.cc/XDrugPy. It contains a module for docking with AutoDock Vina. It doesn't supersedes the plugin you're trying to use because only works with Vina.

@pslacerda
Copy link
Member

@camattelaer, if the plugin works as expected after the changes, we can manage it into this repository.

Kind regards
Pedro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants