Skip to content

Fix: FileNotFoundError #12

Description

@chrisbc
  • deluge-card version: 0.4.1
  • Python version: 3.9
  • Operating System: OSX

Description

dmv.py raises exception file-not-found try to move all the kicks.

What I Did

(deluge-card-LoHzB_5j-py3.9) bash-3.2$ python scripts/dmv.py ~/Music/DELUGE/TEST/02 "**/DRUMS/Kick/*" ~/Music/DELUGE/TEST/02/SAMPLES
/Users/chrisbc/Music/DELUGE/TEST/02/SAMPLES/CR78 Kick.wav
Traceback (most recent call last):
  File "/Users/chrisbc/DEV/ENV/mupaduw/deluge-card/scripts/dmv.py", line 44, in <module>
    main()  # pragma: no cover
  File "/Users/chrisbc/DEV/ENV/mupaduw/deluge-card/scripts/dmv.py", line 39, in main
    for moved in mv_samples(card.card_root, song_samples, args.pattern, new_path):
  File "/Users/chrisbc/DEV/ENV/mupaduw/deluge-card/deluge_card/deluge_sample.py", line 88, in mv_samples
    move_op.do_move()
  File "/Users/chrisbc/DEV/ENV/mupaduw/deluge-card/deluge_card/deluge_sample.py", line 124, in do_move
    self.old_path.rename(self.new_path)
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/pathlib.py", line 1382, in rename
    self._accessor.rename(self, target)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/chrisbc/Music/DELUGE/TEST/02/SAMPLES/DRUMS/Kick/CR78 Kick.wav' -> '/Users/chrisbc/Music/DELUGE/TEST/02/SAMPLES/CR78 Kick.wav'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions