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

amch import is not working for some packages #16

Open
bessarabov opened this issue Aug 18, 2015 · 0 comments
Open

amch import is not working for some packages #16

bessarabov opened this issue Aug 18, 2015 · 0 comments

Comments

@bessarabov
Copy link
Contributor

This does not work:

root@b4aec628ad47:/app# cat data/tmp.list
namespace,name,source
perl,YAPC::Russia,https://github.com/bessarabov/YAPC-Russia.git

root@b4aec628ad47:/app# cat data/tmp.list | amch import
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Traceback (most recent call last):
  File "/usr/local/bin/amch", line 9, in <module>
    load_entry_point('allmychanges==0.6.2', 'console_scripts', 'amch')()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
    self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/client.py", line 87, in _import
    _add_changelogs(config, dataset.dict)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/client.py", line 220, in _add_changelogs
    track_changelog(config, changelog)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/api.py", line 91, in track_changelog
    return _post(config, changelog['resource_uri'] + 'track/')
TypeError: list indices must be integers, not str
root@b4aec628ad47:/app#

But for some other library I don't see this error:

root@b4aec628ad47:/app# cat data/tmp.list
namespace,name,source
perl,SQL::Easy,https://github.com/bessarabov/SQL-Easy.git

root@b4aec628ad47:/app# cat data/tmp.list | amch import
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
root@b4aec628ad47:/app#
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