Skip to content

fixed python3.6 dateutil requirement#492

Merged
weiliu89 merged 1 commit intoweiliu89:ssdfrom
dizcza:ssd
May 3, 2017
Merged

fixed python3.6 dateutil requirement#492
weiliu89 merged 1 commit intoweiliu89:ssdfrom
dizcza:ssd

Conversation

@dizcza
Copy link
Copy Markdown

@dizcza dizcza commented Mar 13, 2017

python-dateutil>1.4,<2.0 in requirements installs v1.5 by default which seems to be buggy at least for python3.6:

python3.6 -c "import caffe" produces raise ValueError, "Can't create weekday with n == 0" with python-dateutil==1.5.

The latest python-dateutil==2.6.0 doesn't have this error.

Full traceback:

$ python3.6 -c "import caffe"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dizcza/caffe/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/Users/dizcza/caffe/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "/Users/dizcza/caffe/python/caffe/io.py", line 2, in <module>
    import skimage.io
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/__init__.py", line 15, in <module>
    reset_plugins()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 93, in reset_plugins
    _load_preferred_plugins()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 73, in _load_preferred_plugins
    _set_plugin(p_type, preferred_plugins['all'])
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 85, in _set_plugin
    use_plugin(plugin, kind=plugin_type)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 255, in use_plugin
    _load(name)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 299, in _load
    fromlist=[modname])
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/skimage/io/_plugins/matplotlib_plugin.py", line 3, in <module>
    import matplotlib.pyplot as plt
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/pyplot.py", line 37, in <module>
    from matplotlib.figure import Figure, figaspect
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/figure.py", line 40, in <module>
    from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/__init__.py", line 4, in <module>
    from ._subplots import *
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/_subplots.py", line 10, in <module>
    from matplotlib.axes._axes import Axes
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 24, in <module>
    import matplotlib.dates as _  # <-registers a date unit converter
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/dates.py", line 125, in <module>
    from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dateutil/rrule.py", line 55
    raise ValueError, "Can't create weekday with n == 0"

Copy link
Copy Markdown
Owner

@weiliu89 weiliu89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it.

@weiliu89 weiliu89 merged commit 7e02cfd into weiliu89:ssd May 3, 2017
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

Successfully merging this pull request may close these issues.

2 participants