Git Product home page Git Product logo

Comments (15)

tbereau avatar tbereau commented on July 21, 2024

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

Hi, the dev branch should be compatible with Python 3.

On Sat 12 Sep 2020 at 06:58, ALAN LI @.***> wrote: Hello! I have just installed the packages as the README file mentioned. I type "python auto_martini" to test, but it seems that your code is based on python 2. My environment is anaconda 2. Could you help me about this? Thank you! [image: 捕获] https://user-images.githubusercontent.com/49156229/92988622-d116ed80-f4ff-11ea-8ae6-0e770b2f46aa.GIF — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#25>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGE2MRCK3VYXMJVWF3ZZKDSFMEXNANCNFSM4RJCNICQ .

Really sorry. I still have some problems. When I type python auto_martini --smi "N1=C(N)NN=C1N" --mol GUA, it shows:
Traceback (most recent call last): File "auto_martini", line 1389, in <module> cg_molecule(mol, args.molname, args.aa, args.cg, args.forcepred) File "auto_martini", line 1270, in cg_molecule ring_atoms_flat) File "auto_martini", line 507, in find_bead_pos heavyatom_coords, list_heavy_atoms, list_bonds): File "auto_martini", line 582, in all_atoms_in_beads_connected num_atoms = voronoi.values().count(voronoi[list_heavyatoms.index(cg_bead)]) AttributeError: 'dict_values' object has no attribute 'count'

Is the code on github is the latest version? Thank you!!!!

from auto_martini.

kkanekal avatar kkanekal commented on July 21, 2024

Please clearly state a) the version of Python you are using. b) the branch of the auto-martini code you are using. The error message which you posted suggests that you are still using the master branch rather than switching to the dev branch, as was recommended by Tristan.

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

I see I used the master branch previously, and I found the dev branch. However, how can I run the dev branch after the packages have been installed?

from auto_martini.

kkanekal avatar kkanekal commented on July 21, 2024

The dev branch has its own readme file that gives instructions on how to use the code. Please follow these instructions and try the GUA example as specified there.

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

I have tried added all the packages. However, I type python -m auto_martini test. The screen showed C:\Users\alanl\Anaconda3\python.exe: No module named auto_martini. Thank you!

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

Really, thank you! I can run auto_martini!!

from auto_martini.

mlhossen avatar mlhossen commented on July 21, 2024

@ALANLI0258
What have you done after getting "C:\Users\alanl\Anaconda3\python.exe: No module named auto_martini" this message to run auto_martini successfully? I am having the same problem. Anyway, do we need to install auto_martini also? I didn't find anything says like thins in the README file.

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

@ALANLI0258
What have you done after getting "C:\Users\alanl\Anaconda3\python.exe: No module named auto_martini" this message to run auto_martini successfully? I am having the same problem. Anyway, do we need to install auto_martini also? I didn't find anything says like thins in the README file.

please use the dev version.

from auto_martini.

mlhossen avatar mlhossen commented on July 21, 2024

@ALANLI0258
I have tried both dev and master branch. But in dev branch folder I can't see any auto_martini file. Is there anything I am missing? Like other dependencies, do I need to install auto_martini also? or it is just a script to run? Actually, I am first in python, so you find a few of the questions are very basic. Sorry about that. Any help would be highly appreciated.

from auto_martini.

ALANLI0258 avatar ALANLI0258 commented on July 21, 2024

@ALANLI0258
What have you done after getting "C:\Users\alanl\Anaconda3\python.exe: No module named auto_martini" this message to run auto_martini successfully? I am having the same problem. Anyway, do we need to install auto_martini also? I didn't find anything says like thins in the README file.

please use the dev version.

No worries! It’s been a long time, I don’t remember clearly. You may try run "python setup.py".

from auto_martini.

maojinyuan avatar maojinyuan commented on July 21, 2024

Hi, @tbereau @ALANLI0258
I still counter the same problem, so I change to use the dev version in python3 environment, but the website of full documentation seem to not work(https://tbereau.github.io/auto_martini/docs/html/index.html), so I just didn't how to install it?

from auto_martini.

tbereau avatar tbereau commented on July 21, 2024

@maojinyuan I've edited the README of the dev branch. Make sure you've installed cython (for instance using pip). Then run:

python setup.py install

that should do it.

from auto_martini.

mlhossen avatar mlhossen commented on July 21, 2024

@tbereau,
I am using dev branch of auto-martini and python3. I installed Cython also as you recommended. After I run python3 setup.py install, all the dependencies have been processed and showed the following line at the end of the process:
Finished processing dependencies for auto-martini==0.0.2
However, still I can't see any auto_amrtini file generated inside the dev folder. I'm asking because the following command requires this file:
python -m auto_martini [mode] [options].
How can I get the auto_martini file?

from auto_martini.

HumanOsv avatar HumanOsv commented on July 21, 2024

Hello
If you are using python 3 or higher versions, the solution to the problem of:

AttributeError: 'dict_values' object has no attribute 'count'

is as follows:

num_atoms = voronoi.values().count(voronoi[list_heavyatoms.index(cg_bead)])

You only need to convert the "view" into a list, simply wrap voronoi.values() in a list():

num_atoms = list(voronoi.values()).count(voronoi[list_heavyatoms.index(cg_bead)])

Regards - Osvaldo

from auto_martini.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.