wroberts / pytimeparse

A small Python module to parse various kinds of time expressions.
MIT License
285 stars 39 forks source link

No module named future.builtins #6

Closed Sighter closed 9 years ago

Sighter commented 10 years ago

Hey, nice Module so far. But if i want to use it in a python program i get the following error:

Traceback (most recent call last):
    File "./rollup.py", line 13, in <module>
    from repositories.rollout  import RolloutRepository
  File "/vagrant/app/repositories/rollout.py", line 8, in <module>
    from models.rollout import Rollout
  File "/vagrant/app/models/rollout.py", line 5, in <module>
    from pytimeparse.timeparse import timeparse
  File "/usr/local/lib/python2.6/dist-packages/pytimeparse/timeparse.py", line 1, in <module>
    from future.builtins import dict
ImportError: No module named future.builtins

I have the following version of python (its an old server :)

$ python --version
Python 2.6.6

thx in advance and cheers Sascha

Sighter commented 10 years ago

Fixed by installing the following module: https://pypi.python.org/pypi/future Isn't there a way to declare a dependency in your setup file?

fnkr commented 9 years ago

Thanks that worked for me too!

wroberts commented 9 years ago

Might be fixed in 1.1.2 for people using setuptools?

Trying to follow best practices as laid out in the Python Packaging User Guide. Can anyone confirm if this is working with a reasonable success rate?

wroberts commented 9 years ago

Passing travis tests on py2.7, py3.2, py3.3, py3.4. Closing.