Re: Python requirements.
Hi Giancarlo, I did upgrade to celery and also django-celery but i am getting this : Traceback (most recent call last): File "manage.py", line 9, in execute_from_command_line(sys.argv) File "/home/jay/biostar-central/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/home/jay/biostar-central/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/jay/biostar-central/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv self.execute(*args, **options.__dict__) File "/home/jay/biostar-central/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute output = self.handle(*args, **options) File "/home/jay/biostar-central/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle return self.handle_noargs(**options) File "/home/jay/biostar-central/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 68, in handle_noargs migrations = migration.Migrations(app_label) File "/home/jay/biostar-central/lib/python2.7/site-packages/south/migration/base.py", line 64, in __call__ self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds) File "/home/jay/biostar-central/lib/python2.7/site-packages/south/migration/base.py", line 90, in __init__ self.set_application(application, force_creation, verbose_creation) File "/home/jay/biostar-central/lib/python2.7/site-packages/south/migration/base.py", line 154, in set_application module = importlib.import_module(self.migrations_module()) File "/home/jay/biostar-central/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module __import__(name) File "/home/jay/biostar-central/lib/python2.7/site-packages/djcelery/migrations/__init__.py", line 16, in raise ImproperlyConfigured(SOUTH_ERROR_MESSAGE) django.core.exceptions.ImproperlyConfigured: For South support, customize the SOUTH_MIGRATION_MODULES setting to point to the correct migrations module: SOUTH_MIGRATION_MODULES = { 'djcelery': 'djcelery.south_migrations', } On Mon, Apr 25, 2016 at 6:35 PM, Giancarlo Razzolini wrote: > Em abril 25, 2016 4:12 Jay Patel escreveu: > >> Hi Muhammad, >> >> I reinstalled everything but still same error. >> >> Is it platform error or python one? >> >> Thanks, >> Jay >> >> > Jay, > > This is an issue with kombu. You need to update your celery > installation. pip install -U celery should fix that. This happens because > kombu is using an internal python function that got removed from 2.7.9 to > 2.7.10, if I recall it correctly. I had this same issue recently. > > Cheers, > Giancarlo Razzolini
Re: Python requirements.
Em abril 25, 2016 4:12 Jay Patel escreveu: Hi Muhammad, I reinstalled everything but still same error. Is it platform error or python one? Thanks, Jay Jay, This is an issue with kombu. You need to update your celery installation. pip install -U celery should fix that. This happens because kombu is using an internal python function that got removed from 2.7.9 to 2.7.10, if I recall it correctly. I had this same issue recently. Cheers, Giancarlo Razzolini
Re: Python requirements.
Thanks Giancarlo. I will do that and report back. Regards, Jay On Mon, Apr 25, 2016 at 6:35 PM, Giancarlo Razzolini wrote: > Em abril 25, 2016 4:12 Jay Patel escreveu: > >> Hi Muhammad, >> >> I reinstalled everything but still same error. >> >> Is it platform error or python one? >> >> Thanks, >> Jay >> >> > Jay, > > This is an issue with kombu. You need to update your celery > installation. pip install -U celery should fix that. This happens because > kombu is using an internal python function that got removed from 2.7.9 to > 2.7.10, if I recall it correctly. I had this same issue recently. > > Cheers, > Giancarlo Razzolini
Re: Python requirements.
Hi Muhammad, I reinstalled everything but still same error. Is it platform error or python one? Thanks, Jay On Sun, Apr 24, 2016 at 6:22 AM, Muhammad Muntaza wrote: > On Apr 21, 2016 4:48 PM, "Jay Patel" wrote: > > > > Hi Muhammad, > Hi, > > > > > I did fresh install of 5.9 amd64 and tried to run it , it shows me this > error: > > > > > django.core.exceptions.ImproperlyConfigured: ImportError djcelery: cannot > import name _uuid_generate_random > > Chek your djcelery (django celery) installation. > > Muhammad Muntaza bin Hatta
Re: Python requirements.
On Apr 21, 2016 4:48 PM, "Jay Patel" wrote: > > Hi Muhammad, Hi, > > I did fresh install of 5.9 amd64 and tried to run it , it shows me this error: > > django.core.exceptions.ImproperlyConfigured: ImportError djcelery: cannot import name _uuid_generate_random Chek your djcelery (django celery) installation. Muhammad Muntaza bin Hatta
Re: Python requirements.
Hi Muhammad, I did fresh install of 5.9 amd64 and tried to run it , it shows me this error: Traceback (most recent call last): File "manage.py", line 9, in execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module __import__(name) File "/usr/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in import django.template.loaders.app_directories File "/usr/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 25, in raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0])) django.core.exceptions.ImproperlyConfigured: ImportError djcelery: cannot import name _uuid_generate_random everything seems to work on 5.8 though.. only problem in 5.8 is getting gunicorn to work with it Thanks, Jay On Tue, Apr 19, 2016 at 5:17 PM, Muhammad Muntaza wrote: > > On Apr 16, 2016 11:45 AM, "Jay Patel" wrote: > > > > Hi all, > Hi, > > > > Greetings! is it better to install Django and gunicorn using pip or via > > Pkg_add only like py-django ? > I install Django from tar.gz source with this command: > $ doas python setup.py install > > Because I want to use python 2 and Django 1.8 > > > > because i am having some trouble with gunicorn installed via pip. > > > > I am using 5.8 amd64 bit . > > > Upgrade to 5.9 > > Muhammad Muntaza bin Hatta
Re: Python requirements.
ohh. Thanks Muhmmad i will upgrade to 5.9 then do it again.. On Tue, Apr 19, 2016 at 5:17 PM, Muhammad Muntaza wrote: > > On Apr 16, 2016 11:45 AM, "Jay Patel" wrote: > > > > Hi all, > Hi, > > > > Greetings! is it better to install Django and gunicorn using pip or via > > Pkg_add only like py-django ? > I install Django from tar.gz source with this command: > $ doas python setup.py install > > Because I want to use python 2 and Django 1.8 > > > > because i am having some trouble with gunicorn installed via pip. > > > > I am using 5.8 amd64 bit . > > > Upgrade to 5.9 > > Muhammad Muntaza bin Hatta
Re: Python requirements.
i managed to get deployment working of Django using pip but its not working with Gunicorn : showing me this error : http://pastebin.com/s8g3WSBi thanks. On Sat, Apr 16, 2016 at 9:45 AM, Aioi Yuuko wrote: > Hi Jay, > > The designated way of doing things is to install the package if it fits > your needs in terms of versioning, whereas if you need something newer than > what the OpenBSD packages offer, you install them via pip. Also keep in > mind that since you're on the previous release, you may be missing out on a > newer version in packages until you upgrade to 5.9. > > -yuuko > > On 04/15/16 20:29, Jay Patel wrote: > >> Hi all, >> >> Greetings! is it better to install Django and gunicorn using pip or via >> Pkg_add only like py-django ? >> >> because i am having some trouble with gunicorn installed via pip. >> >> I am using 5.8 amd64 bit . >> >> Regards, >> >> Jay
Python requirements.
Hi all, Greetings! is it better to install Django and gunicorn using pip or via Pkg_add only like py-django ? because i am having some trouble with gunicorn installed via pip. I am using 5.8 amd64 bit . Regards, Jay