Comments (15)
from auto_martini.
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.
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.
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.
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.
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.
Really, thank you! I can run auto_martini!!
from auto_martini.
@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
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.
@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
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.
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.
@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.
@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.
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)
- Mismatch between dev branch and refactor branch result HOT 5
- Error run auto_martini HOT 2
- how validate auto_martini itp HOT 1
- Vcclabs website down - is it OK to use rdkit.Chem.Crippen module for ALOGP calculation? HOT 2
- No output file HOT 8
- Max. number of attempts: 54517 HOT 1
- VisibleDeprecationWarning
- Improving molecule sanitization HOT 1
- auto_martini as an interoperable component HOT 2
- auto_martini fails 4 tests
- auto_martini doesn't work for silica coarse graining HOT 1
- setup.py
- The CG model for ethanol is different from the original paper HOT 1
- martini3 HOT 3
- ALOGPS can't predict fragment HOT 2
- Installation instructions are incomplete HOT 5
- No Metadata for AutoMartini HOT 5
- Meets ValueError when testing example molecules HOT 6
- ValueError: setting an array element with a sequence HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto_martini.