Hi Thomas,

Thank you for your help. Updating ipython solved the problem.


On Mon, Mar 3, 2014 at 6:47 AM, Thomas Kluyver <tak...@gmail.com> wrote:

> Hi Mann,
>
> Try updating the version of IPython you're using - it had some special
> logic for the frozen case which might be the source of the problem, but has
> since been removed:
> https://github.com/ipython/ipython/pull/3677/files
>
> Thomas
>
>
> On 27 February 2014 00:36, Mann Jani <m...@cirextech.com> wrote:
>
>> following code builds correctly however gives error on running the
>> executable.
>> Any help is apperciated.
>>
>> code:
>>
>> "
>>
>> import IPython
>> print("Hello World")
>> IPython.embed()
>>
>> "
>>
>> error stack:
>>
>> "
>>
>> Traceback (most recent call last):
>>   File
>> "/usr/local/lib/python3.3/site-packages/cx_Freeze/initscripts/Console3.py",
>> line 27, in <module>
>>     exec(code, m.__dict__)
>>
>>   File "ipython.py", line 3, in <module>
>>     IPython.embed()
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/frontend/terminal/embed.py",
>> line 282, in embed
>>     _embedded_shell = InteractiveShellEmbed(**kwargs)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/frontend/terminal/embed.py",
>> line 97, in __init__
>>     display_banner=display_banner
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/frontend/terminal/interactiveshell.py",
>> line 360, in __init__
>>     user_module=user_module, custom_exceptions=custom_exceptions
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/interactiveshell.py",
>> line 414, in __init__
>>     self.init_profile_dir(profile_dir)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/interactiveshell.py",
>> line 530, in init_profile_dir
>>     ProfileDir.create_profile_dir_by_name(self.ipython_dir, 'default')
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/profiledir.py",
>> line 181, in create_profile_dir_by_name
>>     return cls(location=profile_dir, config=config)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/config/configurable.py",
>> line 87, in __init__
>>     super(Configurable, self).__init__(**kwargs)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/utils/traitlets.py",
>> line 420, in __init__
>>     setattr(self, key, value)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/utils/traitlets.py",
>> line 308, in __set__
>>     obj._notify_trait(self.name, old_value, new_value)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/utils/traitlets.py",
>> line 457, in _notify_trait
>>     c(name, old_value, new_value)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/profiledir.py",
>> line 86, in _location_changed
>>     self.startup_dir = os.path.join(new, self.startup_dir_name)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/utils/traitlets.py",
>> line 308, in __set__
>>     obj._notify_trait(self.name, old_value, new_value)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/utils/traitlets.py",
>> line 457, in _notify_trait
>>     c(name, old_value, new_value)
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/profiledir.py",
>> line 98, in _startup_dir_changed
>>     self.check_startup_dir()
>>
>>   File
>> "/usr/local/lib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/core/profiledir.py",
>> line 106, in check_startup_dir
>>     shutil.copy(src, readme)
>>
>>   File "/usr/local/lib/python3.3/shutil.py", line 221, in copy
>>     copyfile(src, dst, follow_symlinks=follow_symlinks)
>>
>>   File "/usr/local/lib/python3.3/shutil.py", line 109, in copyfile
>>     with open(src, 'rb') as fsrc:
>>
>> NotADirectoryError: [Errno 20] Not a directory:
>> '/data/tvarit/combiPhase1/a101/phase1/pythonTrials/dist/ipython/IPython/config/profile/README_STARTUP'
>>
>> "
>>
>>
>> ------------------------------------------------------------------------------
>> Flow-based real-time traffic analytics software. Cisco certified tool.
>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
>> Customize your own dashboards, set traffic alerts and generate reports.
>> Network behavioral analysis & security monitoring. All-in-one tool.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> cx-freeze-users mailing list
>> cx-freeze-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and
> the
> freedom to use Git, Perforce or both. Make the move to Perforce.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to