setup issues with vbench or pytz or pandas

72 views
Skip to first unread message

Tom Augspurger

unread,
Sep 7, 2013, 11:35:43 AM9/7/13
to pyd...@googlegroups.com
Hi,

I'm a bit confused with this one.  I'm setting up a vbench for statsmodels here, and I'm basing it off pandas'.

When I try to run something like `python test_perf.py -h` from the `vb_suite` module I get this traceback:

(pandas-dev)Toms-MacBook-Pro:vb_suite tom$ python test_perf.py -h
Traceback (most recent call last):
  File "test_perf.py", line 55, in <module>
    import pandas as pd
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/__init__.py", line 25, in <module>
    import pandas.core.config_init
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/core/config_init.py", line 4, in <module>
    from pandas.core.format import detect_console_encoding
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/core/format.py", line 7, in <module>
    from pandas.core.index import Index, MultiIndex, _ensure_index
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/core/index.py", line 10, in <module>
    import pandas.index as _index
  File "index.pyx", line 34, in init pandas.index (pandas/index.c:14959)
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pytz-2013d-py2.7.egg/pytz/__init__.py", line 31, in <module>
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pkg_resources.py", line 74, in <module>
    import parser
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas/vb_suite/parser.py", line 1, in <module>
    from vbench.api import Benchmark
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/vbench/__init__.py", line 2, in <module>
    import vbench.log
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/vbench/vbench/__init__.py", line 2, in <module>
    import vbench.log
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/vbench/log.py", line 34, in <module>
    from vbench.config import is_interactive
  File "/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/vbench/vbench/config.py", line 3, in <module>
    TIME_ZONE = pytz.timezone('US/Eastern')
AttributeError: 'module' object has no attribute 'timezone'

Which is odd since when I open up an interpreter, the command work fine.  Has anyone else had this problem?

Tom Augspurger

unread,
Sep 7, 2013, 2:56:49 PM9/7/13
to pyd...@googlegroups.com
I should add that this is from the pandas repository, not my statsmodels branch.

I'll start a GH issue if need be, but I wanted to make sure I wasn't doing something dumb first.

Jeff Tratner

unread,
Sep 10, 2013, 8:30:55 PM9/10/13
to pyd...@googlegroups.com
Is there a file (or directory) called `pytz` nearby? Maybe it's that. I personally vbench to be very finicky on OSX (unfortunately)

Tom Augspurger

unread,
Sep 11, 2013, 9:18:13 AM9/11/13
to pyd...@googlegroups.com
It's some kind of import issue from within the `pandas/vbench` directory specifically (i.e. not just from `pandas` and not from, say, `statsmodels/vbench`.  If I find anything out I'll push a fix up to the vbench repo.
Reply all
Reply to author
Forward
0 new messages