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

UnboundLocalError: local variable 'rename_temp1' referenced before assignment #10

Open
vicscott opened this issue Mar 17, 2024 · 0 comments

Comments

@vicscott
Copy link

vicscott commented Mar 17, 2024

when I ran tractify under conda, it occured error like this:

Traceback (most recent call last):
  File "/home/**/Apps/miniforge3/envs/tractify/bin/tractify", line 8, in <module>
    sys.exit(main())
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/tractify/cli.py", line 135, in main
    wf = init_single_ses_wf(participant_label, session_label, parameters)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/tractify/workflows/base.py", line 22, in init_single_ses_wf
    tract_wf = init_tract_wf(parameters.gen5tt_algo)
  File "/home/**/Apps/miniforge3/envs/tractify/lib/python3.9/site-packages/tractify/workflows/tractography/base.py", line 260, in init_tract_wf
    (aseg_convert, rename_temp1, [("converted", "in_file")]),
UnboundLocalError: local variable 'rename_temp' referenced before `assignment`

it is strange when I tried to rename this variable and it would say renamed varaible not defined.

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

1 participant