sunfounder / SunFounder_PiCar-V

Smart Video Car Kit V2.0 for Raspberry Pi from SunFounder
GNU General Public License v2.0
112 stars 176 forks source link

Server running failed [django] #56

Closed hannesa2 closed 3 years ago

hannesa2 commented 3 years ago

With sudo ./start I run into

image

Ok, I do what they want and run python manage.py migrate

image

ImportError: cannot import name 'render_to_response' from 'django.shortcuts'

I've no clue what's going on. Does someone has a hint to get rid of it ?

hannesa2 commented 3 years ago

I guess, it's related to a previous issue

image

That's why I installed pip install django and this command uses 3.1.4 https://files.pythonhosted.org/packages/08/c7/7ce40e5a5cb47ede081b9fa8a3dd93d101c884882ae34927967b0792f5fb/Django-3.1.4-py3-none-any.whl

But the render_to_response shortcut was deprecated in Django 2.0, and is removed in Django 3.0.

Solution

pip uninstall django
pip install django==2.1

follow up

... but now new errors appears 👎

  File "/home/pi/git/SunFounder_PiCar-V/remote_control/remote_control/driver/camera.py", line 14, in <module>
    from picar.SunFounder_PCA9685 import Servo
ModuleNotFoundError: No module named 'picar'