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

pootle CLI fails on new projects created from UI #6787

Open
zgypa opened this issue Nov 21, 2017 · 1 comment
Open

pootle CLI fails on new projects created from UI #6787

zgypa opened this issue Nov 21, 2017 · 1 comment

Comments

@zgypa
Copy link

zgypa commented Nov 21, 2017

After adding a new projects, any pootle command to that project fails with
pootle_fs.exceptions.FSFetchError: Error: Source directory does not exist.. A closer look reveals that there is no folder in the translations working path, and by manually adding the directory, the CLI tools seem to function.

Steps to reproduce:

  1. Admin > Projects > Add Project
  2. From CLI, execute a pootle fs fetch testproj and observe.

Results (Expected/Actual):

Actual

Traceback (most recent call last):
  File "/home/pootle/pootle/env/bin/pootle", line 11, in <module>
    sys.exit(main())
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", line 365, in main
    run_app(project='pootle', django_settings_module='pootle.settings')
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", line 346, in run_app
    management.execute_from_command_line(command)
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/pootle/core/management/subcommands.py", line 164, in run_from_argv
    return self.subcommands[known.subcommand]().run_from_argv(argv)
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_fs/management/commands/fs_commands/fetch.py", line 16, in handle
    self.get_fs(options["project"]).fetch()
  File "/home/pootle/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_fs/localfs.py", line 51, in fetch
    raise FSFetchError(e)
pootle_fs.exceptions.FSFetchError: Error: Source directory does not exist.

Expected

CLI tools expected to work properly with a newly created project.

Environment (i.e. 'pootle --version', DB, OS, Browser):

  • Pootle 2.9.0rc1 (Django 1.10.8, Translate Toolkit 2.2.5)
  • (PostgreSQL) 9.5.10
  • Ubuntu 16.04.3 LTS
@zgypa
Copy link
Author

zgypa commented Nov 21, 2017

This issue might be related to #6766 and #6765.

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

No branches or pull requests

2 participants