dgrafx
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
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
the message indicates that the failure is logged into a pip.log file, which you should check for further details ...
ASKER
is this log file re.py?
and what do i do about this?
and what do i do about this?
I found this explanation:
not sure if that will solve your case, but it looks like it's the same issue: the package is not correctly tested, visibly...
... 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)
not sure if that will solve your case, but it looks like it's the same issue: the package is not correctly tested, visibly...
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
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
ASKER
or if not suggesting edits are you saying forget it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So I discovered that the newest version of Python that works with the unofficial django-mssql is 2.7
Thanks
Thanks
ASKER
using an older version of Python was the solution