Djngo 1.9.2 + django_autocomplete_light=3.0.4
Please advise on the below error..
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Users/bernard/.virtualenvs/hingex/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line
utility.execute()
File "/Users/username.virtualenvs/project/lib/python2.7/site-packages/django/core/management/init.py", line 327, in execute
django.setup()
File "/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named autocomplete_light
Yeah v3 is backward compatible.
On Sun, Feb 21, 2016, 00:16 Bernard Mallala [email protected]
wrote:
Djngo 1.9.2 + django_autocomplete_light=3.0.4
Please advise on the below error..
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File
"/Users/bernard/.virtualenvs/hingex/lib/python2.7/site-packages/django/core/management/
_init_.py", line 353, in execute_from_command_line
utility.execute()
File
"/Users/username.virtualenvs/project/lib/python2.7/site-packages/django/core/management/
_init_.py", line 327, in execute
django.setup()
File
"/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/
_init_.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File
"/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/apps/registry.py",
line 85, in populate
app_config = AppConfig.create(entry)
File
"/Users/username/.virtualenvs/project/lib/python2.7/site-packages/django/apps/config.py",
line 90, in create
module = import_module(entry)
File
"/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/
_init_.py", line 37, in import_module
_import_(name)
ImportError: No module named autocomplete_lightโ
Reply to this email directly or view it on GitHub
https://github.com/yourlabs/django-autocomplete-light/issues/600.
Yes thank you for verifying. Any feedback based on this trace?
My bad, I meant not backward compatible :)
Solution: pin 'django-autocomplete-light>=2.0,<3.0' in requirements.
@ezawadzki it's working for me:
$ virtualenv /tmp/test
Using real prefix '/usr'
New python executable in /tmp/test/bin/python2
Also creating executable in /tmp/test/bin/python
Installing setuptools, pip, wheel...source done.
$ source /tmp/test/bin/activate
$ pip install django-autocomplete-light
Collecting django-autocomplete-light
Downloading django-autocomplete-light-3.1.8.tar.gz (396kB)
100% |โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 397kB 803kB/s
Building wheels for collected packages: django-autocomplete-light
Running setup.py bdist_wheel for django-autocomplete-light ... done
Stored in directory: /home/jpic/.cache/pip/wheels/0c/5b/66/1b93251a98a6a3b1cb6ce30c43ee457cb97d4130bf862dfdcf
Successfully built django-autocomplete-light
Installing collected packages: django-autocomplete-light
Successfully installed django-autocomplete-light-3.1.8
You are using pip version 8.0.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ python
Python 2.7.12 (default, Jun 28 2016, 08:31:05)
[GCC 6.1.1 20160602] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dal
>>> dal.__path__
['/tmp/test/lib/python2.7/site-packages/dal']
I suspect you're having another issue.
I'm sorry but unless you're able to provide more technical information, ie. virtualenv creation and dal install logs, I'm not able to help any further, because my crystal ball is at the garage for repair.
v2 and v3 are not compatible. v2 uses autocomplete_light module name, and v3 uses dal, to prevent any incompatible code from compiling at all and defering errors for users upgrading.
My question to you is: what version do you want to use ?
Also, what are the install logs ?
C:\Users\hamza>pip install django-autocomplete-light==2.3.3
Most helpful comment
C:\Users\hamza>pip install django-autocomplete-light==2.3.3