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

gixy: fix error - no module named pkg_resources #68344

Merged
merged 1 commit into from Sep 9, 2019
Merged

Conversation

Izorkin
Copy link
Contributor

@Izorkin Izorkin commented Sep 9, 2019

Motivation for this change

Fix this error:
gixy /nix/store/967yv78zr0yxjwld3lv6z0gllzi3mdg9-nginx.conf

Traceback (most recent call last):
  File "/nix/store/4bg063gqg869h3xkh78dw388kx4zzci2-gixy-0.1.20/bin/.gixy-wrapped", line 11, in <module>
    sys.exit(main())
  File "/nix/store/4bg063gqg869h3xkh78dw388kx4zzci2-gixy-0.1.20/lib/python2.7/site-packages/gixy/cli/main.py", line 153, in main
    formatter = formatters()[config.output_format]()
  File "/nix/store/4bg063gqg869h3xkh78dw388kx4zzci2-gixy-0.1.20/lib/python2.7/site-packages/gixy/formatters/console.py", line 10, in __init__
    self.template = load_template('console.j2')
  File "/nix/store/4bg063gqg869h3xkh78dw388kx4zzci2-gixy-0.1.20/lib/python2.7/site-packages/gixy/formatters/_jinja.py", line 8, in load_template
    env = Environment(loader=PackageLoader('gixy', 'formatters/templates'), trim_blocks=True, lstrip_blocks=True)
  File "/nix/store/17whr42gf4ckf07m64vak2q2dw87qjw8-python2.7-Jinja2-2.10.1/lib/python2.7/site-packages/jinja2/loaders.py", line 222, in __init__
    from pkg_resources import DefaultProvider, ResourceManager, \
ImportError: No module named pkg_resources

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@ofborg ofborg bot requested a review from WilliButz September 9, 2019 08:14
@etu etu merged commit eae0eb0 into NixOS:master Sep 9, 2019
@Izorkin Izorkin deleted the gixy branch September 9, 2019 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants