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

Please help to load plumed #1

Open
debanjansen48 opened this issue Apr 16, 2022 · 6 comments
Open

Please help to load plumed #1

debanjansen48 opened this issue Apr 16, 2022 · 6 comments

Comments

@debanjansen48
Copy link

i used the command !pip install plumed from Jupiter notebook to install plumed. and installed successfully. From terminal I checked its working. but during import, it returns following error.

ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_4222/276985268.py in
----> 1 import plumed
2 import matplotlib.pyplot as plt

ModuleNotFoundError: No module named 'plumed'

@GiovanniBussi
Copy link
Member

GiovanniBussi commented Apr 16, 2022 via email

@debanjansen48
Copy link
Author

debanjansen48 commented Apr 17, 2022 via email

@debanjansen48
Copy link
Author

in the windows system i uninstalled all possiable pythons. then installed python 3.10 and pip but returens following error

Successfully installed pip-22.0.4 wheel-0.37.1
PS C:\Users\HP> pip -V
pip 22.0.4 from C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip (python 3.10)
PS C:\Users\HP> pip3 install plumed
Collecting plumed
Using cached plumed-2.8.0.tar.gz (273 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
File "", line 2, in
File "", line 34, in
File "C:\Users\HP\AppData\Local\Temp\pip-install-auay_m25\plumed_fb13f8b35be04147b0857698a73e4ca7\setup.py", line 56, in
plumedversion = subprocess.check_output(['grep','-v','#','./VERSION']).decode("utf-8").rstrip()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
PS C:\Users\HP> pip install plumed
Collecting plumed
Using cached plumed-2.8.0.tar.gz (273 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\HP\AppData\Local\Temp\pip-install-aszyx_74\plumed_01cf0862f92e47e3b871724c183532cf\setup.py", line 56, in
plumedversion = subprocess.check_output(['grep','-v','#','./VERSION']).decode("utf-8").rstrip()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@debanjansen48
Copy link
Author

debanjansen48 commented Apr 17, 2022

in Linux system..
using jupyter notebook
!pip3 install plumed
Requirement already satisfied: plumed in /home/debanjan/amber20/miniconda/lib/python3.9/site-packages (2.8.0)
import plumed
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_3014/1864219554.py in
----> 1 import plumed

ModuleNotFoundError: No module named 'plumed'

From command line
~$ python
Python 3.9.5 (default, Jun 4 2021, 12:28:51)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import plumed

@GiovanniBussi
Copy link
Member

This problem is not related to plumed but to jupyter. See for instance here.

You can try this:

import sys
!{sys.executable} -m pip install <package_name>

However, please read carefully the link above

@GiovanniBussi
Copy link
Member

This also seems relevant and well explained.

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