DJANGO Migrations from older version : South db

2018-05-02 Thread Ank
Dear All, 

I would like to do some migrations that are compatible with older django 
version using southdb to the newer version. How can these files be 
updated.iḿ attaching one of the file that is needed to be migrated.  

Any help will be appreciated 

 Best 
Ank

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/043a69c6-4ea9-48b8-9b42-b088e02ddd37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

def forwards(self, orm):
# Deleting model 'Component'
db.delete_table('component')

# Adding model 'ConstraintsToSegmentMap'
db.create_table('catmaid_constraintstosegmentmap', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('origin_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('target_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('segments', self.gf('catmaid.fields.IntegerArrayField')()),
))
db.send_create_signal('catmaid', ['ConstraintsToSegmentMap'])

# Adding model 'SliceContoursHighres'
db.create_table('catmaid_slicecontourshighres', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContoursHighres'])

# Adding model 'SliceContours'
db.create_table('catmaid_slicecontours', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContours'])

# Adding model 'Slices'
db.create_table('catmaid_slices', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('creation_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('edition_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack&#

Re: ARGPARSE ERROR

2018-04-16 Thread Ank
HI all , 

Installed Python 3.5 and still getting an error

django-rest-swagger 2.1.2 has requirement djangorestframework>=3.5.4, but 
you'll have djangorestframework 3.5.3 which is incompatible.


Any pointers to solve this

Thanks in advance 

best 
Ankush

On Friday, April 13, 2018 at 11:07:58 AM UTC+2, Michal Petrucha wrote:
>
> On Thu, Apr 12, 2018 at 07:58:08PM +, Ankush Sharma wrote: 
> > Hi Babatunde , 
> > I installed other listed tools ! Here the main concern im talking about 
> is 
> > Argsparse - 
> > the Progressbar2 3.6.2 requires argparse, which is not installed. 
> > Thanks in advance 
> > Ank 
>
> What version of Python are you running this on? Either it's a very old 
> one (2.6, 3.1), which would be unsupported by pretty much any 
> reasonably recent Python package, or your Python environment is messed 
> up somehow, and it lacks a part of the standard library. If the former 
> is the case, you need to migrate to a newer Python; if the latter, 
> then you need to fix your Python installation, and make sure that it 
> includes the entire standard library. 
>
> Good luck, 
>
> Michal 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/65019800-10a1-40bb-98e0-a22a74cc6ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ARGPARSE ERROR

2018-04-12 Thread Ank
Hi all, 

Iḿ trying to setup Catmaid - http://catmaid.readthedocs.io/en/stable/. Iḿ 
receiving this error when installing requirements. 

Progressbar2 3.6.2 requires argparse, which is not installed.
twisted 17.9.0 requires zope.interface>=3.6.0, which is not installed.
matplotlib 2.1.0 requires backports.functools-lru-cache, which is not 
installed.
django-rest-swagger 2.1.2 has requirement djangorestframework>=3.5.4, but 
you'll have djangorestframework 3.5.3 which is incompatible



 How it can be resolved ? 

Best
Ank

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1fb16f72-1837-48f1-a8f6-c7bd64ca212f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.