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

maximum recursion depth exceeded while calling a Python object error #2

Closed
brainie opened this issue Apr 24, 2022 · 3 comments
Closed

Comments

@brainie
Copy link

brainie commented Apr 24, 2022

Good evening sir.

please I come across this error

"RecursionError: maximum recursion depth exceeded while calling a Python object"

whenever i run main.py even after installing all the dependencies
please is there anything I can do to make the code work?

@vaseline555
Copy link
Owner

Dear @brainie
Hi, could you please clarify what line does the error occur, please?

Thank you.

p.s.) I will update the whole repo. (i.e., ver 2.0 of this implementation) as soon.

@brainie
Copy link
Author

brainie commented Apr 30, 2022

Good afternoon

the error started from line 32

  Traceback (most recent call last):
  File "D:\Johnson Ibironke\Documents\Masters Programme\Git_Repos\Federated_learning\Federated-Averaging-PyTorch-main\Federated-Averaging-PyTorch-main\main.py", line 32, in <module>

Here is the error in full

Traceback (most recent call last):
  File "D:\Johnson Ibironke\Documents\Masters Programme\Git_Repos\Federated_learning\Federated-Averaging-PyTorch-main\Federated-Averaging-PyTorch-main\main.py", line 32, in <module>
    writer = SummaryWriter(log_dir=log_config["log_path"], filename_suffix="FL")
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\torch\utils\tensorboard\writer.py", line 220, in __init__
    self._get_file_writer()
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\torch\utils\tensorboard\writer.py", line 250, in _get_file_writer
    self.file_writer = FileWriter(self.log_dir, self.max_queue,
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\torch\utils\tensorboard\writer.py", line 60, in __init__
    self.event_writer = EventFileWriter(
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\tensorboard\summary\writer\event_file_writer.py", line 72, in __init__
    tf.io.gfile.makedirs(logdir)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\tensorboard\compat\tensorflow_stub\io\gfile.py", line 900, in makedirs
    return get_filesystem(path).makedirs(path)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\site-packages\tensorboard\compat\tensorflow_stub\io\gfile.py", line 201, in makedirs
    os.makedirs(path, exist_ok=True)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\os.py", line 225, in makedirs
    makedirs(name, mode)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\os.py", line 225, in makedirs
    makedirs(name, mode)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\os.py", line 225, in makedirs
    makedirs(name, mode)
  [Previous line repeated 984 more times]
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\os.py", line 210, in makedirs
    head, tail = path.split(name)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\ntpath.py", line 186, in split
    seps = _get_bothseps(p)
  File "C:\Users\Johnson Ibironke\.conda\envs\FEDAVG\lib\ntpath.py", line 35, in _get_bothseps
    if isinstance(path, bytes):
RecursionError: maximum recursion depth exceeded while calling a Python object

Please I would greatly appreciate it, if you can put me through implementing the code set by step, especially with the use of the dataset.

@vaseline555
Copy link
Owner

Sorry for super late reply. I think you might give a wrong path to the configuration file. Please kindly check your config.yaml file.

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