Forums

Trouble installing IMDBpy module

I'm trying to install the IMDBpy module in python 3.6 but I get the following error:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rvb5xgem/IMDbpy/

The install works fine for 2.7, but the rest of my project is coded in 3.6 so I'm trying to find a workaround. Any suggestions?

I just tried it and got the following full error:

06:50 ~$ pip3.6 install imdbpy
Collecting imdbpy
  Downloading IMDbPY-5.1.1.tar.gz (362kB)
    100% |████████████████████████████████| 368kB 625kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nfzk9mf3/imdbpy/setup.py", line 200
        print 'Created locale for: %s.' % ' '.join(languages)
                                      ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nfzk9mf3/imdbpy/

If you look at the stack trace, you'll see that it's trying to run Python 2.7 code, which means that IMDBpy is Python 2-only.

The package's maintainer has an outstanding issue on GitHub for tracking the work on the port, and it looks like someone is working on it. Probably worth tracking their progress there.

Thanks for the help!