microsoft / microsoft/Graphormer

windows cannot run bash

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2.5k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

Using git bash under windwos OS, it reports errors:

$ bash pcqv1.sh
Your OS does not support multiprocessing based on fork, please use num_workers=0
2022-10-17 19:22:19 | WARNING | root | The OGB package is out of date. Your version is 1.3.2, while the latest version is 1.3.4.
Using backend: pytorch
Traceback (most recent call last):
File "D:\python\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "D:\python\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\python\Scripts\fairseq-train.exe_main
.py", line 7, in
File "D:\python\lib\site-packages\fairseq_cli\train.py", line 541, in cli_main
parser = options.get_training_parser()
File "D:\python\lib\site-packages\fairseq\options.py", line 38, in get_training_parser
parser = get_parser("Trainer", default_task)
File "D:\python\lib\site-packages\fairseq\options.py", line 234, in get_parser
utils.import_user_module(usr_args)
File "D:\python\lib\site-packages\fairseq\utils.py", line 497, in import_user_module
import_tasks(tasks_path, f"{module_name}.tasks")
File "D:\python\lib\site-packages\fairseq\tasks_init
.py", line 117, in import_tasks
importlib.import_module(namespace + "." + task_name)
File "D:\python\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "D:\PycharmProjects\Graphormer\graphormer\tasks\is2re.py", line 25, in
class LMDBDataset:
File "D:\PycharmProjects\Graphormer\graphormer\tasks\is2re.py", line 43, in LMDBDataset
def getitem(self, idx: int) -> dict[str, Union[Tensor, float]]:
TypeError: 'type' object is not subscriptable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "D:\python\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
return stream.closed
ValueError: underlying buffer has been detached

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running bash pcqv1.sh under Git Bash on Windows and trace the reported failure into graphormer/tasks/is2re.py, especially LMDBDataset.getitem at line 43. Compare the Python environment with the traceback and verify that the training entry point completes without the reported TypeError and shutdown error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.