Skip to content

AttributeError: 'module' object has no attribute 'next' #2852

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

Merged
merged 1 commit into from
Mar 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ def compare_versions(a, b):
else:
return False

if not compare_versions(six.__version__, '1.5'):
raise ImportError(
'six 1.5 or later is required; you have %s' % (
six.__version__))

try:
import pyparsing
except ImportError:
Expand Down
8 changes: 7 additions & 1 deletion setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ def get_extension(self):

class Six(SetupPackage):
name = "six"
min_version = "1.5"

def check(self):
try:
Expand All @@ -1098,10 +1099,15 @@ def check(self):
return (
"six was not found.")

if not is_min_version(six.__version__, self.min_version):
raise CheckFailed(
"Requires six %s or later. Found %s." %
(self.min_version, version))

return "using six version %s" % six.__version__

def get_install_requires(self):
return ['six']
return ['six>={0}'.format(self.min_version)]


class Dateutil(SetupPackage):
Expand Down