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

ValueError: Number of processes must be at least 1 #141

Open
wonyoungtae opened this issue Sep 18, 2023 · 2 comments
Open

ValueError: Number of processes must be at least 1 #141

wonyoungtae opened this issue Sep 18, 2023 · 2 comments

Comments

@wonyoungtae
Copy link

When I attempted to use RoseTTAFold, I encountered the following error at the end.

$ nano /log/pick.stderr

Traceback (most recent call last):
  File "/home/yt/RoseTTAFold/DAN-msa/pick_final_models.div.py", line 113, in <module>
    pool = mp.Pool(n_core_pool)
  File "/home/yt/anaconda3/envs/folding/lib/python3.7/multiprocessing/context.py", line 119, in Pool
    context=self.get_context())
  File "/home/yt/anaconda3/envs/folding/lib/python3.7/multiprocessing/pool.py", line 169, in __init__
    raise ValueError("Number of processes must be at least 1")
ValueError: Number of processes must be at least 1

How can I solve this problem?

@supernova4869
Copy link

Seems caused of the conflicts among python 3.7, tensorflow, numpy, and so on. Same as #135

@jayyoonakajaeha
Copy link

jayyoonakajaeha commented Apr 18, 2024

Hello, I did the following instruction.
[#135]

However, then i got new error like this:

/bin/sh: 1: /bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found/mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found

/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found/bin/sh: 1: 
/mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
/bin/sh: 1: /mnt/D/RoseTTAFold-1.1.0/lddt/lddt: not found
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/ypkim/miniconda3/envs/folding/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/ypkim/miniconda3/envs/folding/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/mnt/D/RoseTTAFold-1.1.0/DAN-msa/pick_final_models.div.py", line 72, in calc_lddt_dist
    lddt_1 = float(os.popen("%s/lddt/lddt -c %s %s | grep Glob"%(script_dir, pose_i, pose_j)).readlines()[-1].split()[-1])
IndexError: list index out of range
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/mnt/D/RoseTTAFold-1.1.0/DAN-msa/pick_final_models.div.py", line 114, in <module>
    raw_dist = pool.map(calc_lddt_dist, args)
  File "/home/ypkim/miniconda3/envs/folding/lib/python3.7/multiprocessing/pool.py", line 268, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/home/ypkim/miniconda3/envs/folding/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
IndexError: list index out of range

Is there anyone can solve this problem?

Thank you.

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