Hi,

I found 
this: http://stackoverflow.com/questions/2384064/python-winreg-problem
So, you could try installing 
win32all http://python.net/crew/skippy/win32/Downloads.html

You don't need to install sqlite3 separately, but there's no command line 
tool out of the box. I've used http://sqliteadmin.orbmu2k.de/ before.

Collin

On Thursday, November 20, 2014 11:05:35 PM UTC-5, Alvin Panugayan wrote:
>
> I'm following the django tutorial online and I'm stuck on the migrate bit 
> (bottom of the post).
>
> 1. Do I need to install south ? Tried to install but am getting a similar 
> error.  OpenKey() argument...
> 2. Do I need to install sqlite3 separately ? Running import sqlite inside 
> the python prompt seems to work, but typing sqlite3 on the windows command 
> prompt doesn't work.
>
> C:\Python33\kaizen>python manage.py migrate
> Traceback (most recent call last):
>   File "manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File "C:\Python33\lib\site-packages\django\core\management\__init__.py", 
> line 385, in execute_from_command_
>     utility.execute()
>   File "C:\Python33\lib\site-packages\django\core\management\__init__.py", 
> line 354, in execute
>     django.setup()
>   File "C:\Python33\lib\site-packages\django\__init__.py", line 21, in 
> setup
>     apps.populate(settings.INSTALLED_APPS)
>   File "C:\Python33\lib\site-packages\django\apps\registry.py", line 108, 
> in populate
>     app_config.import_models(all_models)
>   File "C:\Python33\lib\site-packages\django\apps\config.py", line 202, in 
> import_models
>     self.models_module = import_module(models_module_name)
>   File "C:\Python33\lib\importlib\__init__.py", line 90, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1532, in 
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
>   File "<frozen importlib._bootstrap>", line 1022, in load_module
>   File "<frozen importlib._bootstrap>", line 1003, in load_module
>   File "<frozen importlib._bootstrap>", line 560, in 
> module_for_loader_wrapper
>   File "<frozen importlib._bootstrap>", line 868, in _load_module
>   File "<frozen importlib._bootstrap>", line 313, in 
> _call_with_frames_removed
>   File "C:\Python33\lib\site-packages\django\contrib\auth\models.py", line 
> 13, in <module>
>     from django.contrib.auth.hashers import (
>   File "C:\Python33\lib\site-packages\django\contrib\auth\hashers.py", 
> line 11, in <module>
>     from django.test.signals import setting_changed
>   File "C:\Python33\lib\site-packages\django\test\__init__.py", line 6, in 
> <module>
>     from django.test.testcases import (
>   File "C:\Python33\lib\site-packages\django\test\testcases.py", line 26, 
> in <module>
>     from django.core.servers.basehttp import WSGIRequestHandler, WSGIServer
>   File "C:\Python33\lib\site-packages\django\core\servers\basehttp.py", 
> line 16, in <module>
>     from wsgiref import simple_server
>   File "C:\Python33\lib\wsgiref\simple_server.py", line 13, in <module>
>     from http.server import BaseHTTPRequestHandler, HTTPServer
>   File "C:\Python33\lib\http\server.py", line 654, in <module>
>     class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
>   File "C:\Python33\lib\http\server.py", line 839, in 
> SimpleHTTPRequestHandler
>     mimetypes.init() # try to read system mime.types
>   File "C:\Python33\lib\mimetypes.py", line 348, in init
>     db.read_windows_registry()
>   File "C:\Python33\lib\mimetypes.py", line 255, in read_windows_registry
>     with _winreg.OpenKey(hkcr, subkeyname) as subkey:
> TypeError: OpenKey() argument 2 must be str without null characters or 
> None, not str
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e5474eaa-1dcf-45bb-af84-d64b3981f927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to