Search code examples
pythondjangofandjango

NameError: name 'execfile' is not defined installing fandjango on Python3


I am trying to install fandjango by using:

pip install fandjango

However I get the error:

Collecting fandjango
  Using cached fandjango-4.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\setup.py", line 5, in <module>
        execfile('fandjango/version.py')
    NameError: name 'execfile' is not defined

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\

Any help would be greatly appreciated


Solution

  • Fandjango only supports Python2 according to its Pypi entry, and you are using Python3 (Python3 does not have the execfile builtin function).