Link to home
Start Free TrialLog in
Avatar of dgrafx
dgrafxFlag for United States of America

asked on

python / django with mssql

i'm getting errors setting up a ms sql db

Python 3.3 & Django 1.7 on Windows 7 Pro & Ms Sql 2008

this is my starting point: http://django-mssql.readthedocs.org/en/latest/ 

first i pip install django-mssql

see attached image for error
User generated image
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

the message indicates that the failure is logged into a pip.log file, which you should check for further details ...
Avatar of dgrafx

ASKER

is this log file re.py?

and what do i do about this?
I found this explanation:  
 ... because of the following code from line 7 of setup.py in the traceback:

version = re.search('__version__ = "(.+?)"', f.read()).group(1)

This should work if the search pattern was a bytes object. A byte literal can be created by simply pre-pending the string literal with a b like the following:

version = re.search(b'__version__ = "(.+?)"', f.read()).group(1) 

Open in new window


not sure if that will solve your case, but it looks like it's the same issue: the package is not correctly tested, visibly...
Avatar of dgrafx

ASKER

here are the lines of code:

158: def search(pattern, string, flags=0):
159: """Scan through string looking for a match to the pattern, returning
160: a match object, or None if no match was found."""
161: return _compile(pattern, flags).search(string)

what are the edits you are suggesting?

thanks
Avatar of dgrafx

ASKER

or if not suggesting edits are you saying forget it?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dgrafx

ASKER

So I discovered that the newest version of Python that works with the unofficial django-mssql is 2.7

Thanks
Avatar of dgrafx

ASKER

using an older version of Python was the solution