learningmatter-mit / NeuralForceField

Neural Network Force Field based on PyTorch
MIT License
237 stars 50 forks source link

NeuralFF material science modules missing #21

Closed wanfuse123 closed 9 months ago

wanfuse123 commented 10 months ago

I do not find the NeuralFF python module in the nff directory after installing with pip install . after building conda virtual env

the module for material science development for modeling mechanics of materials, I believe this is a requirement?

Can you tell me where it is?

Traceback (most recent call last): File "/tmp/ipykernel_776040/2079156642.py", line 22, in from nff import NeuralFF, AtomsBatch, EnsembleNFF ImportError: cannot import name 'NeuralFF' from 'nff' (/home/top/miniconda3/envs/nff/lib/python3.9/site-packages/nff/init.py)

wanfuse123 commented 10 months ago

%xmode Verbose

import traceback import sys

Add the path to sys.path

sys.path.append('/home/top/miniconda3/envs/nff/lib/python3.9/site-packages/') from nff import nn # Import the nn submodule

List the contents of the nn submodule

print(dir(nn))

print(sys.version) !conda activate nff !conda init !conda list !pip install . !echo $PYTHONPATH
try:

import torch
from nff import NeuralFF, AtomsBatch, EnsembleNFF
Exception reporting mode: Verbose

['AttentionPool', 'BatchedPreActivation', 'BondPrior', 'ChemPropConv', 'ChemPropInit', 'ChemPropMsgToNode', 'ConfAttention', 'CosineEnvelope', 'CpSchNetConv', 'DEFAULT_BONDPRIOR_PARAM', 'DEFAULT_DROPOUT_RATE', 'DataLoader', 'Dense', 'DiabaticReadout', 'Diagonalize', 'DimeNet', 'DimeNetDelta', 'DimeNetDiabat', 'DimeNetDiabatDelta', 'DimeNetRadialBasis', 'DimeNetSphericalBasis', 'DirectedMessage', 'DirectedMessagePP', 'EPS', 'EPSILON', 'EdgeEmbedding', 'EdgeUpdateModule', 'EmbeddingBlock', 'Envelope', 'ExpNormalBasis', 'F', 'Gaussian', 'GaussianSmearing', 'GraphAttention', 'InteractionBlock', 'LeakyReLU', 'Linear', 'LinearConfAttention', 'MeanPool', 'MessagePassingModule', 'MixedSchNetConv', 'ModuleDict', 'MolFpPool', 'NodeEmbedding', 'NodeMultiTaskReadOut', 'OutputBlock', 'PainnRadialBasis', 'PreActivation', 'RadialBasis', 'ReLU', 'ResidualBlock', 'ScaleShift', 'SchNet', 'SchNetConv', 'SchNetDiabat', 'SchNetEdgeFilter', 'SchNetEdgeUpdate', 'Sequential', 'Softmax', 'SphericalBasis', 'StochasticIncrease', 'SumPool', 'TestModules', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'activations', 'add_stress', 'adj_nbrs_and_z', 'att_readout_probs', 'batch_and_sum', 'bessel_basis', 'chemprop_msg_to_node', 'chemprop_msg_update', 'clean_matrix', 'collections', 'compute_angle', 'compute_grad', 'compute_hess', 'computejacobian', 'constant', 'construct_module_dict', 'construct_sequential', 'copy', 'diabat', 'dimenet', 'gaussian_smearing', 'general_batched_hessian', 'get_act', 'get_default_readout', 'get_dense', 'get_offsets', 'get_painn_hessians', 'get_rij', 'get_schnet_hessians', 'grad', 'graphconv', 'graphop', 'hess_from_atoms', 'hess_from_pad', 'hess_from_results', 'inspect', 'lattice_points_in_supercell', 'layer_types', 'layers', 'models', 'modules', 'nn', 'np', 'pad', 'partial', 'real_sph_harm', 'remove_bias', 'results_from_stack', 'scatter_add', 'schnet', 'schnet_batched_hessians', 'shifted_softplus', 'single_spec_nbrs', 'softmax', 'sum_and_grad', 'sym', 'tensorgrad', 'to_module', 'torch', 'torch_nbr_list', 'unittest', 'utils', 'xavieruniform', 'zeros_initializer'] 3.8.18 | packaged by conda-forge | (default, Oct 10 2023, 15:44:36) [GCC 12.3.0]

CondaError: Run 'conda init' before 'conda activate'

no change /home/top/miniconda3/condabin/conda no change /home/top/miniconda3/bin/conda no change /home/top/miniconda3/bin/conda-env no change /home/top/miniconda3/bin/activate no change /home/top/miniconda3/bin/deactivate no change /home/top/miniconda3/etc/profile.d/conda.sh no change /home/top/miniconda3/etc/fish/conf.d/conda.fish no change /home/top/miniconda3/shell/condabin/Conda.psm1 no change /home/top/miniconda3/shell/condabin/conda-hook.ps1 no change /home/top/miniconda3/lib/python3.11/site-packages/xontrib/conda.xsh no change /home/top/miniconda3/etc/profile.d/conda.csh no change /home/top/.bashrc No action taken. packages in environment at /home/top/VENV/conda_surface_sampling: Name Version Build Channel

_libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_kmp_llvm conda-forge aioitertools 0.11.0 pyhd8ed1ab_0 conda-forge alsa-lib 1.2.10 hd590300_0 conda-forge annotated-types 0.6.0 pyhd8ed1ab_0 conda-forge anyio 4.1.0 pyhd8ed1ab_0 conda-forge argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py38h01eb140_4 conda-forge arrow 1.3.0 pyhd8ed1ab_0 conda-forge arviz 0.15.1 pyhd8ed1ab_0 conda-forge ase 3.22.1 pyhd8ed1ab_1 conda-forge astroid 3.0.2 py38h578d9bd_0 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge async-lru 2.0.4 pyhd8ed1ab_0 conda-forge attr 2.5.1 h166bdaf_1 conda-forge attrs 23.1.0 pyh71513ae_1 conda-forge babel 2.14.0 pyhd8ed1ab_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge bcrypt 4.1.1 py38h0cc4f7c_0 conda-forge beautifulsoup4 4.12.2 pyha770c72_0 conda-forge binutils 2.40 hdd6e379_0 conda-forge binutils_impl_linux-64 2.40 hf600244_0 conda-forge binutils_linux-64 2.40 hbdbef99_2 conda-forge blas 2.120 openblas conda-forge blas-devel 3.9.0 20_linux64_openblas conda-forge bleach 6.1.0 pyhd8ed1ab_0 conda-forge blinker 1.7.0 pyhd8ed1ab_0 conda-forge blosc 1.21.5 h0f2a231_0 conda-forge boto3 1.34.0 pyhd8ed1ab_0 conda-forge botocore 1.34.0 pyhd8ed1ab_0 conda-forge brotli 1.1.0 hd590300_1 conda-forge brotli-bin 1.1.0 hd590300_1 conda-forge brotli-python 1.1.0 py38h17151c0_1 conda-forge bzip2 1.0.8 hd590300_5 conda-forge c-ares 1.23.0 hd590300_0 conda-forge c-compiler 1.5.2 h0b41bf4_0 conda-forge ca-certificates 2023.11.17 hbcca054_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cachetools 5.3.2 pyhd8ed1ab_0 conda-forge cairo 1.18.0 h3faef2a_0 conda-forge catkit 0.5.4 pypi_0 pypi certifi 2023.11.17 py38h06a4308_0 cffi 1.16.0 py38h6d47a40_0 conda-forge cfgv 3.3.1 pyhd8ed1ab_0 conda-forge chardet 5.2.0 py38h578d9bd_1 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge click 8.1.7 unix_pyh707e725_0 conda-forge cloudpickle 3.0.0 pyhd8ed1ab_0 conda-forge cmake 3.28.1 hcfe8598_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.1.4 pyhd8ed1ab_0 conda-forge cons 0.4.6 pyhd8ed1ab_0 conda-forge contourpy 1.1.1 py38h7f3f72f_1 conda-forge cryptography 41.0.7 py38he241bfc_1 conda-forge cuda-cudart 11.7.99 0 nvidia cuda-cupti 11.7.101 0 nvidia cuda-libraries 11.7.1 0 nvidia cuda-nvrtc 11.7.99 0 nvidia cuda-nvtx 11.7.91 0 nvidia cuda-runtime 11.7.1 0 nvidia cuda-version 11.8 h70ddcb2_2 conda-forge cudatoolkit 11.8.0 h4ba93d1_12 conda-forge cudnn 8.8.0.121 hcdd5f01_4 conda-forge cxx-compiler 1.5.2 hf52228f_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge debugpy 1.8.0 py38h17151c0_1 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge dill 0.3.7 pyhd8ed1ab_0 conda-forge distlib 0.3.8 pyhd8ed1ab_0 conda-forge dnspython 2.4.2 pyhd8ed1ab_1 conda-forge e3fp 1.2.5 pyh56297ac_0 conda-forge emmet-core 0.69.5 pyhd8ed1ab_0 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge etuples 0.3.9 pyhd8ed1ab_0 conda-forge exceptiongroup 1.2.0 pyhd8ed1ab_0 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge expat 2.5.0 hcb278e6_1 conda-forge f90wrap 0.2.9 py38h5856114_0 conda-forge fastapi 0.103.0 pyhd8ed1ab_0 conda-forge fastprogress 1.0.3 pyhd8ed1ab_0 conda-forge fftw 3.3.10 nompi_hc118613_108 conda-forge filelock 3.13.1 pyhd8ed1ab_0 conda-forge fireworks 2.0.3 pypi_0 pypi flake8 6.1.0 pyhd8ed1ab_0 conda-forge flask 3.0.0 pyhd8ed1ab_0 conda-forge flask-paginate 2023.10.24 pypi_0 pypi font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_1 conda-forge fontconfig 2.14.2 h14ed4e7_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.46.0 py38h01eb140_0 conda-forge fqdn 1.5.1 pyhd8ed1ab_0 conda-forge freetype 2.12.1 h267a509_2 conda-forge freetype-py 2.3.0 pyhd8ed1ab_0 conda-forge future 0.18.3 pyhd8ed1ab_0 conda-forge gcc 11.4.0 h7baecda_2 conda-forge gcc_impl_linux-64 11.4.0 h7aa1c59_3 conda-forge gcc_linux-64 11.4.0 hfd045f2_2 conda-forge gettext 0.21.1 h27087fc_0 conda-forge gfortran_impl_linux-64 11.4.0 h86428dc_3 conda-forge gfortran_linux-64 11.4.0 h3047280_2 conda-forge glib 2.78.3 hfc55251_0 conda-forge glib-tools 2.78.3 hfc55251_0 conda-forge gmp 6.3.0 h59595ed_0 conda-forge gmpy2 2.1.2 py38h793c122_1 conda-forge graphite2 1.3.13 h58526e2_1001 conda-forge greenlet 3.0.2 py38h17151c0_0 conda-forge gsl 2.7 he838d99_0 conda-forge gst-plugins-base 1.22.7 h8e1006c_1 conda-forge gstreamer 1.22.7 h98fc4e7_1 conda-forge gunicorn 21.2.0 pypi_0 pypi gxx 11.4.0 h7baecda_2 conda-forge gxx_impl_linux-64 11.4.0 h7aa1c59_3 conda-forge gxx_linux-64 11.4.0 hfc1ae95_2 conda-forge h11 0.14.0 pyhd8ed1ab_0 conda-forge h2 4.1.0 pyhd8ed1ab_0 conda-forge h5netcdf 1.1.0 pyhd8ed1ab_1 conda-forge h5py 3.10.0 nompi_py38h2c1edd7_101 conda-forge harfbuzz 8.3.0 h3d44ed6_0 conda-forge hdf4 4.2.15 h2a13503_7 conda-forge hdf5 1.14.3 nompi_h4f84152_100 conda-forge hpack 4.0.0 pyh9f0ad1d_0 conda-forge httpcore 1.0.2 pyhd8ed1ab_0 conda-forge hyperframe 6.0.1 pyhd8ed1ab_0 conda-forge icu 73.2 h59595ed_0 conda-forge identify 2.5.33 pyhd8ed1ab_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge importlib-metadata 7.0.0 pyha770c72_0 conda-forge importlib-resources 6.1.1 pyhd8ed1ab_0 conda-forge importlib_metadata 7.0.0 hd8ed1ab_0 conda-forge importlib_resources 6.1.1 pyhd8ed1ab_0 conda-forge ipykernel 6.26.0 pyhf8b6a83_0 conda-forge ipython 8.12.2 pyh41d4057_0 conda-forge isoduration 20.11.0 pyhd8ed1ab_0 conda-forge isort 5.13.2 pyhd8ed1ab_0 conda-forge itsdangerous 2.1.2 pyhd8ed1ab_0 conda-forge jedi 0.19.1 pyhd8ed1ab_0 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge jmespath 1.0.1 pyhd8ed1ab_0 conda-forge joblib 1.3.2 pyhd8ed1ab_0 conda-forge json5 0.9.14 pyhd8ed1ab_0 conda-forge jsonpointer 2.4 py38h578d9bd_3 conda-forge jsonschema 4.20.0 pyhd8ed1ab_0 conda-forge jsonschema-specifications 2023.11.2 pyhd8ed1ab_0 conda-forge jsonschema-with-format-nongpl 4.20.0 pyhd8ed1ab_0 conda-forge jupyter-lsp 2.2.1 pyhd8ed1ab_0 conda-forge jupyter_client 8.6.0 pyhd8ed1ab_0 conda-forge jupyter_core 5.5.0 py38h578d9bd_0 conda-forge jupyter_events 0.9.0 pyhd8ed1ab_0 conda-forge jupyter_server 2.12.1 pyhd8ed1ab_0 conda-forge jupyter_server_terminals 0.5.0 pyhd8ed1ab_0 conda-forge jupyterlab 4.0.9 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.3.0 pyhd8ed1ab_0 conda-forge jupyterlab_server 2.25.2 pyhd8ed1ab_0 conda-forge kernel-headers_linux-64 2.6.32 he073ed8_16 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge kim-api 2.3.0 h097297d_1 conda-forge kiwisolver 1.4.5 py38h7f3f72f_1 conda-forge krb5 1.21.2 h659d440_0 conda-forge lame 3.100 h166bdaf_1003 conda-forge lammps 2023.08.02 cpu_py38_hc50ecde_mpich_7 conda-forge latexcodec 2.0.1 pyh9f0ad1d_0 conda-forge lcms2 2.16 hb7c19ff_0 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge lerc 4.0.0 h27087fc_0 conda-forge libabseil 20230802.1 cxx17_h59595ed_0 conda-forge libaec 1.1.2 h59595ed_1 conda-forge libblas 3.9.0 20_linux64_openblas conda-forge libboost 1.82.0 h6fcfa73_6 conda-forge libboost-python 1.82.0 py38hae673b5_6 conda-forge libbrotlicommon 1.1.0 hd590300_1 conda-forge libbrotlidec 1.1.0 hd590300_1 conda-forge libbrotlienc 1.1.0 hd590300_1 conda-forge libcap 2.69 h0f662aa_0 conda-forge libcblas 3.9.0 20_linux64_openblas conda-forge libclang 15.0.7 default_hb11cfb5_4 conda-forge libclang13 15.0.7 default_ha2b6cf4_4 conda-forge libcublas 11.10.3.66 0 nvidia libcufft 10.7.2.124 h4fbf590_0 nvidia libcufile 1.8.1.2 0 nvidia libcups 2.3.3 h4637d8d_4 conda-forge libcurand 10.3.4.101 0 nvidia libcurl 8.5.0 hca28451_0 conda-forge libcusolver 11.4.0.1 0 nvidia libcusparse 11.7.4.91 0 nvidia libdeflate 1.19 hd590300_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 hd590300_2 conda-forge libevent 2.1.12 hf998b51_1 conda-forge libexpat 2.5.0 hcb278e6_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libflac 1.4.3 h59595ed_0 conda-forge libgcc-devel_linux-64 11.4.0 h922705a_103 conda-forge libgcc-ng 13.2.0 h807b86a_3 conda-forge libgcrypt 1.10.3 hd590300_0 conda-forge libgfortran-ng 13.2.0 h69a702a_3 conda-forge libgfortran5 13.2.0 ha4646dd_3 conda-forge libglib 2.78.3 h783c2da_0 conda-forge libgomp 13.2.0 h807b86a_3 conda-forge libgpg-error 1.47 h71f35ed_0 conda-forge libhwloc 2.9.3 default_h554bfaf_1009 conda-forge libiconv 1.17 hd590300_1 conda-forge libidn2 2.3.4 h166bdaf_0 conda-forge libjpeg-turbo 3.0.0 hd590300_1 conda-forge liblapack 3.9.0 20_linux64_openblas conda-forge liblapacke 3.9.0 20_linux64_openblas conda-forge libllvm15 15.0.7 h5cf9203_3 conda-forge libmagma 2.7.2 h09159a4_1 conda-forge libmagma_sparse 2.7.2 h09b5827_1 conda-forge libnetcdf 4.9.2 nompi_h80fb2b6_112 conda-forge libnghttp2 1.58.0 h47da74e_1 conda-forge libnpp 11.7.4.75 0 nvidia libnsl 2.0.1 hd590300_0 conda-forge libnvjpeg 11.8.0.2 0 nvidia libogg 1.3.4 h7f98852_1 conda-forge libopenblas 0.3.25 pthreads_h413a1c8_0 conda-forge libopus 1.3.1 h7f98852_1 conda-forge libpng 1.6.39 h753d276_0 conda-forge libpq 16.1 h33b98f1_7 conda-forge libprotobuf 4.24.4 hf27288f_0 conda-forge libsanitizer 11.4.0 h4dcbe23_3 conda-forge libsndfile 1.2.2 hc60ed4a_1 conda-forge libsodium 1.0.18 h36c2ea0_1 conda-forge libsqlite 3.44.2 h2797004_0 conda-forge libssh2 1.11.0 h0841786_0 conda-forge libstdcxx-devel_linux-64 11.4.0 h922705a_103 conda-forge libstdcxx-ng 13.2.0 h7e041cc_3 conda-forge libsystemd0 255 h3516f8a_0 conda-forge libtiff 4.6.0 ha9c0a0a_2 conda-forge libunistring 0.9.10 h7f98852_0 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libuv 1.46.0 hd590300_0 conda-forge libvorbis 1.3.7 h9c3ff4c_0 conda-forge libwebp-base 1.3.2 hd590300_0 conda-forge libxcb 1.15 h0b41bf4_0 conda-forge libxkbcommon 1.6.0 h5d7e998_0 conda-forge libxml2 2.11.6 h232c23b_0 conda-forge libzip 1.10.1 h2629f0a_3 conda-forge libzlib 1.2.13 hd590300_5 conda-forge llvm-openmp 17.0.6 h4dfa4b3_0 conda-forge logical-unification 0.4.6 pyhd8ed1ab_0 conda-forge lz4-c 1.9.4 hcb278e6_0 conda-forge maggma 0.46.1 pyhd8ed1ab_0 conda-forge magma 2.7.2 h4aca40b_1 conda-forge make 4.3 hd18ef5c_1 conda-forge markupsafe 2.1.3 py38h01eb140_1 conda-forge matplotlib 3.7.3 py38h578d9bd_0 conda-forge matplotlib-base 3.7.3 py38h58ed7fa_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mccabe 0.7.0 pyhd8ed1ab_0 conda-forge minikanren 1.0.3 pyhd8ed1ab_0 conda-forge mistune 3.0.2 pyhd8ed1ab_0 conda-forge mkl 2022.2.1 h84fe81f_16997 conda-forge mkl-service 2.4.0 py38h80f09db_0 conda-forge mlip 2.0 hd0d41c4_0 conda-forge mmh3 4.0.1 py38h17151c0_2 conda-forge mongogrant 0.3.3 pyhd8ed1ab_0 conda-forge mongomock 4.0.0 pyhd8ed1ab_0 conda-forge monty 2023.11.3 pyhd8ed1ab_0 conda-forge mp-api 0.37.1 pyhd8ed1ab_1 conda-forge mpc 1.3.1 hfe3b2da_0 conda-forge mpfr 4.2.1 h9458935_0 conda-forge mpg123 1.32.3 h59595ed_0 conda-forge mpi 1.0 mpich conda-forge mpich 4.1.2 h846660c_100 conda-forge mpmath 1.3.0 pyhd8ed1ab_0 conda-forge msgpack-python 1.0.7 py38h7f3f72f_0 conda-forge multipledispatch 0.6.0 py_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mysql-common 8.0.33 hf1915f5_6 conda-forge mysql-libs 8.0.33 hca2cd23_6 conda-forge n2p2 2.2.0 py38h329ad1e_4 conda-forge nbclient 0.8.0 pyhd8ed1ab_0 conda-forge nbconvert-core 7.12.0 pyhd8ed1ab_0 conda-forge nbformat 5.9.2 pyhd8ed1ab_0 conda-forge nccl 2.19.4.1 h6103f9b_0 conda-forge ncurses 6.4 h59595ed_2 conda-forge nest-asyncio 1.5.8 pyhd8ed1ab_0 conda-forge networkx 3.1 pyhd8ed1ab_0 conda-forge nodeenv 1.8.0 pyhd8ed1ab_0 conda-forge notebook 7.0.6 pyhd8ed1ab_0 conda-forge notebook-shim 0.2.3 pyhd8ed1ab_0 conda-forge nspr 4.35 h27087fc_0 conda-forge nss 3.95 h1d7d5a4_0 conda-forge numpy 1.22.4 py38h99721a1_0 conda-forge openblas 0.3.25 pthreads_h7a3da1a_0 conda-forge openjpeg 2.5.0 h488ebb8_3 conda-forge openkim-models 2021.01.28 h2cc385e_1 conda-forge openssl 3.2.0 hd590300_1 conda-forge orjson 3.9.10 py38h0488081_0 conda-forge overrides 7.4.0 pyhd8ed1ab_0 conda-forge packaging 23.2 pyhd8ed1ab_0 conda-forge palettable 3.3.3 pyhd8ed1ab_0 conda-forge pandas 2.0.3 py38h01efb38_1 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge paramiko 3.3.1 pyhd8ed1ab_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge pcre2 10.42 hcad00b1_0 conda-forge pexpect 4.8.0 pyh1a96a4e_2 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.1.0 py38ha43c96d_0 conda-forge pip 23.3.1 pyhd8ed1ab_0 conda-forge pixman 0.42.2 h59595ed_0 conda-forge pkg-config 0.29.2 h36c2ea0_1008 conda-forge pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge platformdirs 4.1.0 pyhd8ed1ab_0 conda-forge plotly 5.18.0 pyhd8ed1ab_0 conda-forge ply 3.11 py_1 conda-forge pooch 1.8.0 pyhd8ed1ab_0 conda-forge pre-commit 3.5.0 pyha770c72_0 conda-forge prometheus_client 0.19.0 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.42 pyha770c72_0 conda-forge prompt_toolkit 3.0.42 hd8ed1ab_0 conda-forge psutil 5.9.5 py38h01eb140_1 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pulseaudio-client 16.1 hb77b528_5 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge pybtex 0.24.0 pyhd8ed1ab_2 conda-forge pycairo 1.25.1 py38h1a1917b_0 conda-forge pycodestyle 2.11.1 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pydantic 2.5.2 pyhd8ed1ab_0 conda-forge pydantic-core 2.14.5 py38h0cc4f7c_0 conda-forge pydantic-settings 2.1.0 pyhd8ed1ab_1 conda-forge pydash 7.0.6 pyh1a96a4e_0 conda-forge pyflakes 3.1.0 pyhd8ed1ab_0 conda-forge pygments 2.17.2 pyhd8ed1ab_0 conda-forge pylint 3.0.3 pyhd8ed1ab_0 conda-forge pymatgen 2023.5.10 py38h905acbe_0 conda-forge pymc 5.6.1 hd8ed1ab_0 conda-forge pymc-base 5.6.1 pyhd8ed1ab_0 conda-forge pymongo 4.6.1 py38h17151c0_0 conda-forge pynacl 1.5.0 py38h01eb140_3 conda-forge pynng 0.7.2 py38h01eb140_1 conda-forge pyopenssl 23.3.0 pyhd8ed1ab_0 conda-forge pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge pyqt 5.15.9 py38hffdaa6c_5 conda-forge pyqt5-sip 12.12.2 py38h17151c0_5 conda-forge pysocks 1.7.1 pyha2e5f31_6 conda-forge pytensor 2.13.1 py38h1128e8f_0 pytensor-base 2.12.3 py38h01efb38_3 conda-forge python 3.8.18 hd12c33a_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-dotenv 1.0.0 pyhd8ed1ab_1 conda-forge python-fastjsonschema 2.19.0 pyhd8ed1ab_0 conda-forge python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge python-tzdata 2023.3 pyhd8ed1ab_0 conda-forge python_abi 3.8 4_cp38 conda-forge pytorch 2.0.0 cuda118py38hde7dd16_304 conda-forge pytorch-cuda 11.7 h778d358_5 pytorch pytz 2023.3.post1 pyhd8ed1ab_0 conda-forge pyyaml 6.0.1 py38h01eb140_1 conda-forge pyzmq 25.1.2 py38h34c975a_0 conda-forge qt-main 5.15.8 h82b777d_17 conda-forge quippy 0.9.12 py38h6939b76_1 conda-forge rdkit 2023.09.3 py38h6c71e64_1 conda-forge readline 8.2 h8228510_1 conda-forge referencing 0.32.0 pyhd8ed1ab_0 conda-forge reportlab 4.0.8 py38h01eb140_0 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge rhash 1.4.4 hd590300_0 conda-forge rlpycairo 0.2.0 pyhd8ed1ab_0 conda-forge rpds-py 0.13.2 py38h0cc4f7c_0 conda-forge ruamel.yaml 0.18.5 py38h01eb140_0 conda-forge ruamel.yaml.clib 0.2.7 py38h01eb140_2 conda-forge s3transfer 0.9.0 pyhd8ed1ab_0 conda-forge scikit-learn 1.3.2 py38ha25d942_2 conda-forge scipy 1.10.1 py38h59b608b_3 conda-forge sdaxen_python_utilities 0.1.5 pyhd8ed1ab_0 conda-forge send2trash 1.8.2 pyh41d4057_0 conda-forge sentinels 1.0.0 py_1 conda-forge setuptools 68.2.2 pyhd8ed1ab_0 conda-forge sip 6.7.12 py38h17151c0_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge sleef 3.5.1 h9b69904_2 conda-forge smart_open 6.4.0 pyhd8ed1ab_0 conda-forge snappy 1.1.10 h9fff704_0 conda-forge sniffio 1.3.0 pyhd8ed1ab_0 conda-forge soupsieve 2.5 pyhd8ed1ab_1 conda-forge spglib 2.2.0 py38hb851694_1 conda-forge sqlalchemy 2.0.23 py38h01eb140_0 conda-forge sshtunnel 0.4.0 pyhd8ed1ab_1 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge starlette 0.27.0 pyhd8ed1ab_0 conda-forge sympy 1.12 pypyh9d50eac_103 conda-forge sysroot_linux-64 2.12 he073ed8_16 conda-forge tabulate 0.9.0 pyhd8ed1ab_1 conda-forge tbb 2021.11.0 h00ab1b0_0 conda-forge tenacity 8.2.3 pyhd8ed1ab_0 conda-forge terminado 0.18.0 pyh0d859eb_0 conda-forge threadpoolctl 3.2.0 pyha21a80b_0 conda-forge tinycss2 1.2.1 pyhd8ed1ab_0 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlkit 0.12.3 pyha770c72_0 conda-forge toolz 0.12.0 pyhd8ed1ab_0 conda-forge tornado 6.3.3 py38h01eb140_1 conda-forge tqdm 4.66.1 pyhd8ed1ab_0 conda-forge traitlets 5.14.0 pyhd8ed1ab_0 conda-forge types-python-dateutil 2.8.19.14 pyhd8ed1ab_0 conda-forge typing-extensions 4.9.0 hd8ed1ab_0 conda-forge typing_extensions 4.9.0 pyha770c72_0 conda-forge typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge ukkonen 1.0.1 py38h7f3f72f_4 conda-forge uncertainties 3.1.7 pyhd8ed1ab_0 conda-forge unicodedata2 15.1.0 py38h01eb140_0 conda-forge uri-template 1.3.0 pyhd8ed1ab_0 conda-forge urllib3 1.26.18 pyhd8ed1ab_0 conda-forge virtualenv 20.25.0 pyhd8ed1ab_0 conda-forge voro 0.4.6 h00ab1b0_0 conda-forge wcwidth 0.2.12 pyhd8ed1ab_0 conda-forge webcolors 1.13 pyhd8ed1ab_0 conda-forge webencodings 0.5.1 pyhd8ed1ab_2 conda-forge websocket-client 1.7.0 pyhd8ed1ab_0 conda-forge werkzeug 3.0.1 pyhd8ed1ab_0 conda-forge wget 1.20.3 ha35d2d1_1 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge xarray 2022.11.0 py38h06a4308_0 xarray-einstats 0.5.1 pyhd8ed1ab_0 conda-forge xcb-util 0.4.0 hd590300_1 conda-forge xcb-util-image 0.4.0 h8ee46fc_1 conda-forge xcb-util-keysyms 0.4.0 h8ee46fc_1 conda-forge xcb-util-renderutil 0.3.9 hd590300_1 conda-forge xcb-util-wm 0.4.1 h8ee46fc_1 conda-forge xkeyboard-config 2.40 hd590300_0 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.1.1 hd590300_0 conda-forge xorg-libsm 1.2.4 h7391055_0 conda-forge xorg-libx11 1.8.7 h8ee46fc_0 conda-forge xorg-libxau 1.0.11 hd590300_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h0b41bf4_2 conda-forge xorg-libxrender 0.9.11 hd590300_0 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h0b41bf4_1003 conda-forge xorg-xf86vidmodeproto 2.3.1 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.6 h166bdaf_0 conda-forge yaml 0.2.5 h7f98852_2 conda-forge zeromq 4.3.5 h59595ed_0 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 hd590300_5 conda-forge zstd 1.5.5 hfc55251_0 conda-forge ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found. /home/top/VENV/conda_surface_sampling/lib/python3.8/site-packages An error occurred: cannot import name 'NeuralFF' from 'nff' (/home/top/miniconda3/envs/nff/lib/python3.9/site-packages/nff/init.py)

Traceback (most recent call last): File "/tmp/ipykernel_776040/2079156642.py", line 22, in from nff import NeuralFF, AtomsBatch, EnsembleNFF ImportError: cannot import name 'NeuralFF' from 'nff' (/home/top/miniconda3/envs/nff/lib/python3.9/site-packages/nff/init.py)

simonaxelrod commented 10 months ago

Try inserting the path to NFF into your Python path instead of pip installing the repo. In Python, add sys.path.insert(, 0) at the top of your script or notebook. Or alternatively, in your bashrc, add export PYTHONPATH=:$PYTHONPATH

wanfuse123 commented 9 months ago

the issue is these "functions" are not included in the source. These functions are missing , perhaps you can recommend a git commit that does have them?

For all the packages used, ( don't remember but there was three packages that are used for this project--- note: I put my project to the side for a while because I couldn't find these functions in any of the three packages.

thank you in advance for the trouble.

I have an idea that is a simple solution. If I could be a pain in the back side, and ask a favor.

Since it is open source and there is no issue forking it ( as far as I am aware) , perhaps you could push the software ( three required packages ) to your git repository and share the links? Don't forget to push all the sub modules too, and make it publicly readable, and don't push anything private!

I have a very important and specific use for this software ( one world changing engineering project and this software just may provide the shortcut I need!)

Regards,

steven

On Sat, Jan 27, 2024 at 6:17 PM simonaxelrod @.***> wrote:

Closed #21 https://github.com/learningmatter-mit/NeuralForceField/issues/21 as completed.

— Reply to this email directly, view it on GitHub https://github.com/learningmatter-mit/NeuralForceField/issues/21#event-11618284120, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDBZWJRXLWYFHAHCCFKSZDYQWDHTAVCNFSM6AAAAABAW46PUSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGYYTQMRYGQYTEMA . You are receiving this because you authored the thread.Message ID: <learningmatter-mit/NeuralForceField/issue/21/issue_event/11618284120@ github.com>

simonaxelrod commented 9 months ago

Try inserting the path first and see if that works