Skip to content
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

Installation fails in Python 3.12 (Windows); possibly due to old versioneer version in torsiondrive fork #26

Open
jcrozum opened this issue Nov 21, 2024 · 6 comments

Comments

@jcrozum
Copy link

jcrozum commented Nov 21, 2024

Trying to install using Python 3.12 gives the following error:

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

I traced this to the file here: https://github.com/dmejiar/torsiondrive/blob/master/versioneer.py

The version upstream (https://github.com/lpwgroup/torsiondrive/blob/master/versioneer.py) is updated for 3.12.

@kimdn
Copy link

kimdn commented Nov 21, 2024

Thank you for your report @jcrozum . I've used briefly PTM_psi briefly either at my mac or linux. Can you use non-windows (maybe deception) for now?

@jcrozum
Copy link
Author

jcrozum commented Nov 21, 2024

Thank you for your report @jcrozum . I've used briefly PTM_psi briefly either at my mac or linux. Can you use non-windows (maybe deception) for now?

I think the issue is with the Python version, not with the OS. So yes, for now I can use an older version of Python (on any OS should work).

@kimdn
Copy link

kimdn commented Nov 22, 2024

Thank you for your report @jcrozum . I've used briefly PTM_psi briefly either at my mac or linux. Can you use non-windows (maybe deception) for now?

I think the issue is with the Python version, not with the OS. So yes, for now I can use an older version of Python (on any OS should work).

I see.
FYI, I've used python3.9 before
Screenshot 2024-11-21 at 4 00 09 PM

@jcrozum
Copy link
Author

jcrozum commented Nov 22, 2024

I was able to install this in Python 3.10, but also needed to run pip install prody to get it to import. I also had to modify the tutorial slightly to get it to work:

I think that

from ptmpsi.polymers import gen_pdb

should be

from ptmpsi.polymers.tools import gen_pdb

@neffrw
Copy link
Collaborator

neffrw commented Nov 22, 2024

@jcrozum What branch of PTM-Psi are you using?

@jcrozum
Copy link
Author

jcrozum commented Nov 22, 2024

@jcrozum What branch of PTM-Psi are you using?

The master branch, I believe. I ran this:

> git clone https://github.com/pnnl/PTMPSI.git PTMPSI_git

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

3 participants