{"action":"opened","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/4553","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/4553/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/4553/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/4553/events","html_url":"https://github.com/BVLC/caffe/issues/4553","id":169408229,"number":4553,"title":"Python import caffe: invalid syntax ","user":{"login":"ciampluca","id":11208686,"avatar_url":"https://avatars.githubusercontent.com/u/11208686?v=3","gravatar_id":"","url":"https://api.github.com/users/ciampluca","html_url":"https://github.com/ciampluca","followers_url":"https://api.github.com/users/ciampluca/followers","following_url":"https://api.github.com/users/ciampluca/following{/other_user}","gists_url":"https://api.github.com/users/ciampluca/gists{/gist_id}","starred_url":"https://api.github.com/users/ciampluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciampluca/subscriptions","organizations_url":"https://api.github.com/users/ciampluca/orgs","repos_url":"https://api.github.com/users/ciampluca/repos","events_url":"https://api.github.com/users/ciampluca/events{/privacy}","received_events_url":"https://api.github.com/users/ciampluca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T15:50:30Z","updated_at":"2016-08-04T15:50:30Z","closed_at":null,"body":"Hi,\r\nI have a problem when I try to import the caffe module for python.\r\n\r\nI have done\r\n\r\n```\r\nmake all\r\nmake pycaffe\r\nmake distribute\r\n```\r\n\r\nI have the _caffe.so module under caffe/distribute/python/caffe.\r\n\r\nI set my PYTHONPATH: it looks like this:\r\n\r\n/home/luca/caffe/distribute/python:\r\n\r\nBut when I run import caffe in the python shell (under /home/luca/caffe/python) I have this output:\r\n\r\n```\r\n>>> import caffe\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/luca/caffe/python/caffe/__init__.py\", line 1, in <module>\r\n    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver\r\n  File \"/home/luca/caffe/python/caffe/pycaffe.py\", line 15, in <module>\r\n    import caffe.io\r\n  File \"/home/luca/caffe/python/caffe/io.py\", line 2, in <module>\r\n    import skimage.io\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/__init__.py\", line 15, in <module>\r\n    reset_plugins()\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/manage_plugins.py\", line 93, in reset_plugins\r\n    _load_preferred_plugins()\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/manage_plugins.py\", line 73, in _load_preferred_plugins\r\n    _set_plugin(p_type, preferred_plugins['all'])\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/manage_plugins.py\", line 85, in _set_plugin\r\n    use_plugin(plugin, kind=plugin_type)\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/manage_plugins.py\", line 255, in use_plugin\r\n    _load(name)\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/manage_plugins.py\", line 299, in _load\r\n    fromlist=[modname])\r\n  File \"/usr/lib/python3.5/site-packages/skimage/io/_plugins/matplotlib_plugin.py\", line 3, in <module>\r\n    import matplotlib.pyplot as plt\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/pyplot.py\", line 36, in <module>\r\n    from matplotlib.figure import Figure, figaspect\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/figure.py\", line 40, in <module>\r\n    from matplotlib.axes import Axes, SubplotBase, subplot_class_factory\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/axes/__init__.py\", line 4, in <module>\r\n    from ._subplots import *\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/axes/_subplots.py\", line 10, in <module>\r\n    from matplotlib.axes._axes import Axes\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/axes/_axes.py\", line 23, in <module>\r\n    import matplotlib.dates as _  # <-registers a date unit converter\r\n  File \"/usr/lib/python3.5/site-packages/matplotlib/dates.py\", line 126, in <module>\r\n    from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,\r\n  File \"/usr/lib/python3.5/site-packages/dateutil/rrule.py\", line 55\r\n    raise ValueError, \"Can't create weekday with n == 0\"\r\n                    ^\r\n**SyntaxError: invalid syntax**\r\n\r\n>>> \r\n```\r\n\r\nAnyone could help me?\r\n\r\nRegards"}}
{"actor":{"display_login":"ciampluca"}}