Skip to content
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

Installation fails under Python 3 on Mac #9

Open
ketch opened this issue Feb 19, 2018 · 5 comments
Open

Installation fails under Python 3 on Mac #9

ketch opened this issue Feb 19, 2018 · 5 comments

Comments

@ketch
Copy link

ketch commented Feb 19, 2018

I'm trying to install on a Mac (running OS X 10.12.5) under Python 3. Installation under Python 2 succeds, but with Python 3 I get the following output:

» pip3 install --no-cache-dir --upgrade preprocess
Collecting preprocess
  Downloading preprocess-1.1.0.zip (59kB)
    100% |████████████████████████████████| 61kB 357kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gm/8bn6zk2d3sd3wzk60tb08y180000gn/T/pip-build-uf_gm76_/preprocess/setup.py", line 28, in <module>
        import preprocess
      File "/private/var/folders/gm/8bn6zk2d3sd3wzk60tb08y180000gn/T/pip-build-uf_gm76_/preprocess/lib/preprocess.py", line 264
        except Exception, ex:
                        ^
    SyntaxError: invalid syntax
@ketch
Copy link
Author

ketch commented Feb 19, 2018

I also tried cloning the current master branch and installing, but I get this error:

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gm/8bn6zk2d3sd3wzk60tb08y180000gn/T/pip-kh4noipj-build/setup.py", line 28, in <module>
        import preprocess
      File "/private/var/folders/gm/8bn6zk2d3sd3wzk60tb08y180000gn/T/pip-kh4noipj-build/lib/preprocess.py", line 136, in <module>
        from past.builtins import cmp
    ImportError: No module named 'past'

@johannesring
Copy link
Contributor

Try this one instead: https://github.com/doconce/preprocess

@ketch
Copy link
Author

ketch commented Feb 19, 2018

That worked; thanks! Perhaps a release from that fork should be put on PyPi?

@johannesring
Copy link
Contributor

Yes, it should. Maybe you can register an issue for this?

@ketch
Copy link
Author

ketch commented Feb 19, 2018

I'm confused -- why open another issue when we already have this one?

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

No branches or pull requests

2 participants