RGI预测抗性基因代码报错

RGI版本是6.0.2,系统是macOS13.4.1。启动终端运行rgi main -i SAMD00245602.fa -o SAMD00245602 --clean出现以下报错,是因为什么?


Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main

    exitcode = _main(fd, parent_sentinel)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 125, in _main

    prepare(preparation_data)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 236, in prepare

    _fixup_main_from_path(data['init_main_from_path'])

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 287, in _fixup_main_from_path

    main_content = runpy.run_path(main_path,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 265, in run_path

    return _run_module_code(code, init_globals, run_name,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 97, in _run_module_code

    _run_code(code, mod_globals, init_globals,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 87, in _run_code

    exec(code, run_globals)

  File "/Users/bingfengchen/miniconda3/envs/rgi/bin/rgi", line 4, in <module>

    MainBase()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 83, in __init__

    getattr(self, args.command)()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 88, in main

    self.main_run(args)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 128, in main_run

    rgi_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 255, in run

    self.filter_process()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 387, in filter_process

    filter_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 174, in run

    self.process_xml_file()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 102, in process_xml_file

    model_thread.start()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/process.py", line 121, in start

    self._popen = self._Popen(self)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 224, in _Popen

    return _default_context.get_context().Process._Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 284, in _Popen

    return Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__

    super().__init__(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__

    self._launch(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 42, in _launch

    prep_data = spawn.get_preparation_data(process_obj._name)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 154, in get_preparation_data

    _check_not_importing_main()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 134, in _check_not_importing_main

    raise RuntimeError('''

RuntimeError: 

        An attempt has been made to start a new process before the

        current process has finished its bootstrapping phase.



        This probably means that you are not using fork to start your

        child processes and you have forgotten to use the proper idiom

        in the main module:



            if __name__ == '__main__':

                freeze_support()

                ...



        The "freeze_support()" line can be omitted if the program

        is not going to be frozen to produce an executable.

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main

    exitcode = _main(fd, parent_sentinel)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 125, in _main

    prepare(preparation_data)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 236, in prepare

    _fixup_main_from_path(data['init_main_from_path'])

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 287, in _fixup_main_from_path

    main_content = runpy.run_path(main_path,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 265, in run_path

    return _run_module_code(code, init_globals, run_name,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 97, in _run_module_code

    _run_code(code, mod_globals, init_globals,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 87, in _run_code

    exec(code, run_globals)

  File "/Users/bingfengchen/miniconda3/envs/rgi/bin/rgi", line 4, in <module>

    MainBase()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 83, in __init__

    getattr(self, args.command)()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 88, in main

    self.main_run(args)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 128, in main_run

    rgi_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 255, in run

    self.filter_process()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 387, in filter_process

    filter_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 174, in run

    self.process_xml_file()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 102, in process_xml_file

    model_thread.start()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/process.py", line 121, in start

    self._popen = self._Popen(self)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 224, in _Popen

    return _default_context.get_context().Process._Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 284, in _Popen

    return Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__

    super().__init__(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__

    self._launch(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 42, in _launch

    prep_data = spawn.get_preparation_data(process_obj._name)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 154, in get_preparation_data

    _check_not_importing_main()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 134, in _check_not_importing_main

    raise RuntimeError('''

RuntimeError: 

        An attempt has been made to start a new process before the

        current process has finished its bootstrapping phase.



        This probably means that you are not using fork to start your

        child processes and you have forgotten to use the proper idiom

        in the main module:



            if __name__ == '__main__':

                freeze_support()

                ...



        The "freeze_support()" line can be omitted if the program

        is not going to be frozen to produce an executable.

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main

    exitcode = _main(fd, parent_sentinel)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 125, in _main

    prepare(preparation_data)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 236, in prepare

    _fixup_main_from_path(data['init_main_from_path'])

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 287, in _fixup_main_from_path

    main_content = runpy.run_path(main_path,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 265, in run_path

    return _run_module_code(code, init_globals, run_name,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 97, in _run_module_code

    _run_code(code, mod_globals, init_globals,

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/runpy.py", line 87, in _run_code

    exec(code, run_globals)

  File "/Users/bingfengchen/miniconda3/envs/rgi/bin/rgi", line 4, in <module>

    MainBase()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 83, in __init__

    getattr(self, args.command)()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 88, in main

    self.main_run(args)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/MainBase.py", line 128, in main_run

    rgi_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 255, in run

    self.filter_process()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/RGI.py", line 387, in filter_process

    filter_obj.run()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 174, in run

    self.process_xml_file()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/site-packages/app/Filter.py", line 102, in process_xml_file

    model_thread.start()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/process.py", line 121, in start

    self._popen = self._Popen(self)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 224, in _Popen

    return _default_context.get_context().Process._Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/context.py", line 284, in _Popen

    return Popen(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__

    super().__init__(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__

    self._launch(process_obj)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 42, in _launch

    prep_data = spawn.get_preparation_data(process_obj._name)

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 154, in get_preparation_data

    _check_not_importing_main()

  File "/Users/bingfengchen/miniconda3/envs/rgi/lib/python3.8/multiprocessing/spawn.py", line 134, in _check_not_importing_main

    raise RuntimeError('''

RuntimeError: 

        An attempt has been made to start a new process before the

        current process has finished its bootstrapping phase.



        This probably means that you are not using fork to start your

        child processes and you have forgotten to use the proper idiom

        in the main module:



            if __name__ == '__main__':

                freeze_support()

                ...



        The "freeze_support()" line can be omitted if the program

        is not going to be frozen to produce an executable.

Here are a few tips for falling asleep more quickly:

  • Establish a relaxing pre-bedtime routine - Take a warm bath or shower, read a book, listen to soothing music, etc. Doing the same sequence of relaxing activities before bed signals your body that it's time for sleep.
  • Make your bedroom environment conducive to sleep - Keep the room cool, dark and quiet. Use curtains or an eye mask to block out light. Consider using a fan, white noise machine or earplugs if necessary to reduce noise.
  • Avoid screens before bed - Don't use your phone, TV, computer, etc. for at least 30 minutes before bedtime. The blue light from screens suppresses melatonin production making it harder to fall asleep.
  • Do some gentle stretches or light yoga - Light stretching helps relax the muscles which prepares the body for sleep. Avoid vigorous exercise too close to bedtime though.
  • Practice relaxation techniques - Deep breathing, progressive muscle relaxation or guided imagery can help quiet your mind making it easier to drift off.
  • Avoid caffeine, alcohol and heavy meals before bed - All of these can disrupt your sleep. Limit fluids too so you won't wake up to go to the bathroom.
  • If you don't fall asleep within 20 minutes, get out of bed - Don't lie in bed frustrated. Get up and do a relaxing activity until you feel sleepy again, then return to bed.
  • Be consistent - Go to bed and wake up at the same times daily, even on weekends. This strengthens your body's sleep-wake cycle making it easier to fall asleep.
    Hope these tips help you fall asleep faster and get some quality rest! Let me know if you have any other questions.