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

AttributeError 'NoneType' has no attribute 'group' in package_index #42

Closed
bb-migration opened this Issue Jul 15, 2013 · 4 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Jul 15, 2013

Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)


When attempting to install packages from a custom cheeseshop (chishop), the latest setuptools doesn't handle blank md5 values well.

Best match: nose 1.1.2
Downloading http://yfiles.example.com/dists/nose-1.1.2.tar.gz#md5=
Traceback (most recent call last):
  File "setup.py", line 159, in <module>
    setup(**setup_params)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/develop.py", line 27, in run
  File "build/bdist.linux-x86_64/egg/setuptools/command/develop.py", line 129, in install_for_development
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 706, in process_distribution
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 618, in resolve
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 862, in best_match
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 874, in obtain
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 623, in easy_install
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 653, in install_item
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 849, in install_eggs
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1130, in build_and_install
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1115, in run_setup
  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 69, in run_setup
  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 120, in run
  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 71, in <lambda>
  File "setup.py", line 23, in <module>

  File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 265, in __init__
  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 289, in fetch_build_eggs
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 618, in resolve
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 862, in best_match
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 874, in obtain
  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 339, in fetch_build_egg
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 611, in easy_install
  File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 541, in fetch_distribution
  File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 455, in download
  File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 711, in _download_url
  File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 718, in _attempt_download
  File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 608, in _download_to
AttributeError: 'NoneType' object has no attribute 'group'

@bb-migration

This comment has been minimized.

bb-migration commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Extracted hash-checking functionality into its own classes. Hashes are no longer checked when the proper pattern isn't detected. Fixes #42.

@bb-migration

This comment has been minimized.

bb-migration commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Released as 0.9.2

@bb-migration

This comment has been minimized.

bb-migration commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


There's a new AttributeError in 0.9.2 (HashChecker.valid).

@bb-migration

This comment has been minimized.

bb-migration commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Use 'is_valid' instead of simply 'valid' or 'check', which are less clear about the purpose of the method. Fixes AttributeError introduces in 0.9.2. Fixes #42.

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