I'm going to start learning web development useing Django. I'm following the tutorials on their site and when I run "python manage.py runserver" i get a traceback saying:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
362, in execute_manager
    utility.execute()
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", line 195,
 in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", line 222,
 in execute
    output = self.handle(*args, **options)
  File "C:\Python26\lib\site-packages\django\core\management\commands\runserver.
py", line 21, in handle
    from django.core.servers.basehttp import run, AdminMediaHandler, WSGIServerE
xception
  File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 10,
 in <module>
    from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
  File "C:\Python26\Lib\BaseHTTPServer.py", line 82, in <module>
    import SocketServer
  File "C:\Python26\lib\SocketServer.py", line 133, in <module>
    import select
  File "C:\Python26\Lib\select.py", line 5, in <module>
    import java.nio.channels.SelectableChannel
ImportError: No module named java.nio.channels.SelectableChannel

I know it has something to do with java but I'm not sure how to fix this problem.

There is something wonky in your post :
Why does it complains about Java missing library ?

I think you should be more explicit on your set up ...
OS (which windows ?)... because a Windows Server might refuse to open a port unless authorized ...
I would also look at the post in Django user's group (don't post on the dev list).

Are you using Jython ... ?
At first sight no ... but ...

\T,


I'm going to start learning web development useing Django. I'm following the tutorials on their site and when I run "python manage.py runserver" I get a traceback saying:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
362, in execute_manager
    utility.execute()
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", line 195,
 in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", line 222,
 in execute
    output = self.handle(*args, **options)
  File "C:\Python26\lib\site-packages\django\core\management\commands\runserver.
py", line 21, in handle
    from django.core.servers.basehttp import run, AdminMediaHandler, WSGIServerE
xception
  File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 10,
 in <module>
    from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
  File "C:\Python26\Lib\BaseHTTPServer.py", line 82, in <module>
    import SocketServer
  File "C:\Python26\lib\SocketServer.py", line 133, in <module>
    import select
  File "C:\Python26\Lib\select.py", line 5, in <module>
    import java.nio.channels.SelectableChannel
ImportError: No module named java.nio.channels.SelectableChannel

I know it has something to do with java but I'm not sure how to fix this problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.