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

Error running make_checkpoint.py #24

Closed
tom-doerr opened this issue Jul 8, 2019 · 1 comment
Closed

Error running make_checkpoint.py #24

tom-doerr opened this issue Jul 8, 2019 · 1 comment

Comments

@tom-doerr
Copy link

When running python3 make_checkpoint.py I get the error ImportError: No module named 'xdg'.
After installing it with pip3 install pyxdg I get the following error when trying to execute make_checkpoint.py:

root@710e3f9a8769:/bachelorarbeit/robust_audio_ae# python3 make_checkpoint.py
Traceback (most recent call last):
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_flag.py", line 181, in _parse
    return self.parser.parse(argument)
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_argument_parser.py", line 114, in parse
    type(argument)))
TypeError: flag value must be a string, found "<class 'int'>"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "make_checkpoint.py", line 28, in <module>
    import DeepSpeech
  File "DeepSpeech/DeepSpeech.py", line 50, in <module>
    tf.app.flags.DEFINE_string  ('coord_retries',    100,         'number of tries of workers connecting to training coordinator before failing')
  File "/root/.local/lib/python3.5/site-packages/tensorflow/python/platform/flags.py", line 58, in wrapper
    return original_function(*args, **kwargs)
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_defines.py", line 241, in DEFINE_string
    DEFINE(parser, name, default, help, flag_values, serializer, **args)
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_defines.py", line 81, in DEFINE
    DEFINE_flag(_flag.Flag(parser, serializer, name, default, help, **args),
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_flag.py", line 110, in __init__
    self._set_default(default)
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_flag.py", line 211, in _set_default
    self.default = self._parse(value)
  File "/root/.local/lib/python3.5/site-packages/absl/flags/_flag.py", line 184, in _parse
    'flag --%s=%s: %s' % (self.name, argument, e))
absl.flags._exceptions.IllegalFlagValueError: flag --coord_retries=100: flag value must be a string, found "<class 'int'>"

I run it with different versions of python, deepspeech, tensorflow and xdg. I also tried to run it in virtualenvs and docker, but I always get the same error message.
Any help is greatly appreciated!

@tom-doerr
Copy link
Author

I solved it by changing the value 100 to '100' (string instead of int) in DeepSpeech/DeepSpeech.py.

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