[Ironpython-users] Telnetlib exception - "getaddrinfo returns an empty list"

2014-07-21 Thread Cemre Mengu
Hi everyone, I am trying to port a native python script into an IronPython project. The script gathers data from a list of IPs with telnet. The native version works perfectly fine however the IronPython version keeps giving me an exception saying "getaddrinfo returns an empty list". I am almost s

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
Thanks for your help anyway. Saves me time trying to manually compile .pyc files when they aren't available :( ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users

Re: [Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread Slide
Oh, looking at the source, it's a debug option only, not for production use. On Mon, Jul 21, 2014 at 5:51 AM, John Trinder wrote: > Nope - nothing under -X remotely like it! In fact I can't see any options > for saving anything. > > [Re] Should be an option -X:SaveAssemblies or something like t

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
Nope - nothing under -X remotely like it! In fact I can't see any options for saving anything. [Re] Should be an option -X:SaveAssemblies or something like that. IronPython doesn't support pyo files either. Both pyc and pyo files require support for Python bytecode, which IronPython does not h

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
What do you mean 'save off assemblies'? I looked at 'ipy -h' as you suggested but couldn't find anything of ehlp. I tried 'ipy -O file.py' but no optimised file (file.pyo) was generated. Thanks for the response btw. [Re] IronPython doesn't support pyc files. There is a way to save off assembli

[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

2014-07-21 Thread John Trinder
If I try to compile a .pyc file doing the following, I get: >>> import py_compile as p >>> p.compile('dummy.py') Traceback (most recent call last): File "", line 1, in File "D:\Programming\IronPython 2.7\Lib\py_compile.py", line 126, in compile marshal.dump(codeobject, fc) ValueError: