Hi , I am very new to python dev.
I recently installed anaconda for windows 7 with 64 bit with python 2.7.7
Upon launching spyder I got following error in  '''import sitecustomize' 
failed; use -v for traceback''

Also I am not able to run any python script and getting error as NameError: 
name 'runfile' is not defined.

Can you plaese help.

Please find attached kernel console messages.

Thanks

On Friday, March 16, 2012 7:05:22 AM UTC-6, Roel De Coninck wrote:
>
> Dear all,
>
> I had 2 big problems with spyder (windows7, 64 bit)
> 1) the program does not always start (I see a window popping up for a 
> second, then it closes and nothing happens)
> 2) import sitecustomize failed
>
> The first problem seemed to occur more often after spyder was closed down: 
> restarting rarely worked.
> Now I found a solution to that problem, that is very surprising to me: I 
> right click on the shortcut to start spyder, and copy the target (looks 
> like this:
> C:\Python27\python.exe "C:\Python27\Scripts\spyder").  Then I go to a 
> windows command window, paste and enter ==> spyder starts without any 
> problem. Why would this work, but not by clicking on the shortcut?
>
> I just thought I'd let you know.  I'm extremely delighted that this works, 
> I hope the trick will keep on working in the future, or even better: that 
> spyder would launch from the shortcut directly.
> Regards,
> Roel
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" 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/spyderlib.
For more options, visit https://groups.google.com/d/optout.
'import sitecustomize' failed; use -v for traceback
---------------------------------------------------------------------------
ZMQError                                  Traceback (most recent call last)
C:\Users\PARTH\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\start_ipython_kernel.py
 in <module>()
    185 ipk_temp = IPKernelApp.instance()
    186 ipk_temp.config = kernel_config()
--> 187 ipk_temp.initialize()
        global ipk_temp.initialize = <bound method IPKernelApp.initialize of 
<IPython.kernel.zmq.kernelapp.IPKernelApp object at 0x00000000022FA748>>
    188 
    189 # Grabbing the kernel's shell to share its namespace with our

C:\Users\PARTH\Anaconda\lib\site-packages\IPython\kernel\zmq\kernelapp.pyc in 
initialize(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, argv=None)

C:\Users\PARTH\Anaconda\lib\site-packages\IPython\config\application.pyc in 
catch_config_error(method=<function initialize>, 
app=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, *args=(None,), 
**kwargs={})
     90     """
     91     try:
---> 92         return method(app, *args, **kwargs)
        method = <function initialize at 0x00000000022FBF28>
        app = <IPython.kernel.zmq.kernelapp.IPKernelApp object at 
0x00000000022FA748>
        args = (None,)
        kwargs = {}
     93     except (TraitError, ArgumentError) as e:
     94         app.print_help()

C:\Users\PARTH\Anaconda\lib\site-packages\IPython\kernel\zmq\kernelapp.pyc in 
initialize(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, argv=None)
    433         self.init_session()
    434         self.init_poller()
--> 435         self.init_sockets()
        self.init_sockets = <bound method IPKernelApp.init_sockets of 
<IPython.kernel.zmq.kernelapp.IPKernelApp object at 0x00000000022FA748>>
    436         self.init_heartbeat()
    437         # writing/displaying connection info must be *after* 
init_sockets/heartbeat

C:\Users\PARTH\Anaconda\lib\site-packages\IPython\kernel\zmq\kernelapp.pyc in 
init_sockets(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>)
    311 
    312         self.control_socket = context.socket(zmq.ROUTER)
--> 313         self.control_port = self._bind_socket(self.control_socket, 
self.control_port)
        self.control_port = 0
        self._bind_socket = <bound method IPKernelApp._bind_socket of 
<IPython.kernel.zmq.kernelapp.IPKernelApp object at 0x00000000022FA748>>
        self.control_socket = <zmq.sugar.socket.Socket object at 
0x000000000863CFA8>
    314         self.log.debug("control ROUTER Channel on port: %i" % 
self.control_port)
    315     

C:\Users\PARTH\Anaconda\lib\site-packages\IPython\kernel\zmq\kernelapp.pyc in 
_bind_socket(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, 
s=<zmq.sugar.socket.Socket object>, port=0)
    213         if self.transport == 'tcp':
    214             if port <= 0:
--> 215                 port = s.bind_to_random_port(iface)
        port = 0
        s.bind_to_random_port = <bound method Socket.bind_to_random_port of 
<zmq.sugar.socket.Socket object at 0x000000000863CFA8>>
        iface = u'tcp://127.0.0.1'
    216             else:
    217                 s.bind("tcp://%s:%i" % (self.ip, port))

C:\Users\PARTH\Anaconda\lib\site-packages\zmq\sugar\socket.pyc in 
bind_to_random_port(self=<zmq.sugar.socket.Socket object>, 
addr=u'tcp://127.0.0.1', min_port=49152, max_port=65536, max_tries=100)
    183             try:
    184                 port = random.randrange(min_port, max_port)
--> 185                 self.bind('%s:%s' % (addr, port))
        self.bind = <built-in method bind of Socket object at 
0x000000000863CFA8>
        addr = u'tcp://127.0.0.1'
        port = 63061
    186             except ZMQError as exception:
    187                 if not exception.errno == zmq.EADDRINUSE:

C:\Users\PARTH\Anaconda\lib\site-packages\zmq\backend\cython\socket.pyd in 
zmq.backend.cython.socket.Socket.bind (zmq\backend\cython\socket.c:4076)()

C:\Users\PARTH\Anaconda\lib\site-packages\zmq\backend\cython\socket.pyd in 
zmq.backend.cython.checkrc._check_rc (zmq\backend\cython\socket.c:6032)()

ZMQError: Permission denied
runfile('C:/Users/PARTH/.spyder2/temp.py', wdir=r'C:/Users/PARTH/.spyder2')

Reply via email to