[Ironpython-users] IronPython, Daily Digest 12/11/2011

2011-12-12 Thread no_reply
Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New comment] Ironpython 2.7.1 on Windows 7 64bit Machines
2. [New comment] Ironpython 2.7.1 on Windows 7 64bit Machines
3. [New comment] IPy version string somewhat misleading.

--

ISSUES

1. [New comment] Ironpython 2.7.1 on Windows 7 64bit Machines
http://ironpython.codeplex.com/workitem/31918
User jdhardy has commented on the issue:

"Someone who can read that error message is going to need to translate it to 
English before much can be done."-

2. [New comment] Ironpython 2.7.1 on Windows 7 64bit Machines
http://ironpython.codeplex.com/workitem/31918
User vernondcole has commented on the issue:

"I just tried an installation of 2.7.1 onto a virgin (never had IronPython 
installed before) Windows 7 Home Premium 64 bit machine with English/United 
States localization.
ipy64.exe and ipy.exe both work fine. 
Therefore, we must guess that the problem is somehow connected to 
internationalization or localities. 
What nation/location are you using?
If you change your localization to use a western script does the problem go 
away?
"-

3. [New comment] IPy version string somewhat misleading.
http://ironpython.codeplex.com/workitem/31420
User vernondcole has commented on the issue:

"I noticed today that ipy64.exe also emits the same version information.  It 
would probably also be useful to state whether the 64 or 32 bit implementation 
is in use.  This could be very helpful to uncover some errors, such as the way 
that 32 and 64 bit COM fail to interact -- 64 bit python trying to control 32 
bit Word for example.
"
--



--
You are receiving this email because you subscribed to notifications on 
CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue 
Tracker. You can unsubscribe or change your issue notification settings on 
CodePlex.com.___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


[Ironpython-users] Visual studio C# using IronPython "no module named ssl" import error‏

2011-12-12 Thread 楊 鈞凱

Hello Everyone, I want to use Ironpython to call a simple ssl socket test 
programbut I got a ImportException error called "no module named ssl".Strange 
thing is I can import socket and run as "import socket".(tested with another 
simple socket program without ssl)But I cant import ssl as "import ssl" and got 
a big error, Any tips?My code in c# to call python:using System;using 
System.Collections.Generic;using System.ComponentModel;using System.Data;using 
System.Drawing;using System.Linq;using System.Text;using 
System.Windows.Forms;using IronPython.Hosting;using 
Microsoft.Scripting.Hosting;namespace test{public partial class Form1 : 
Form{public Form1(){InitializeComponent();  
  }private void button1_Click(object sender, EventArgs e){  
  ScriptRuntime pyRuntime = Python.CreateRuntime();dynamic obj 
= pyRuntime.UseFile("sslsocket.py");string response = 
obj.openssl("hello");if (response == "true")
MessageBox.Show("success", "success", MessageBoxButtons.OK, 
MessageBoxIcon.Exclamation);this.Close();}}And the 
sslsocket.py code is:import socketimport ssldef openssl(data):   HOST = 
'192.168.1.6'PORT = 1234 d = data.encode('utf-8')s = 
socket.socket(socket.AF_INET, socket.SOCK_STREAM)   ssl_sock = 
ssl.wrap_socket(s,ca_certs="C:\Users\test\Documents\Visual Studio 
2008\Projects\testupload\root.crt",cert_reqs=ssl.CERT_NONE)
ssl_sock.connect((HOST, PORT))  ssl_sock.send(d)ssl_sock.close()
return "true"Platform: Win7 32 bit, Python 2.7, Visual studio 2010, IronPython 
2.7.1(latest one)
PS.If this mail appeared twice, my bad >.<  
  ___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


[Ironpython-users] Visual studio C# "no module named ssl" import error

2011-12-12 Thread 楊 鈞凱

Hello Everyone, I want to use Ironpython to call a simple ssl socket test 
program

but I got a ImportException error called "no module named ssl".
Strange thing is I can import socket and run as "import socket".(tested with 
another simple socket program without ssl)
But I cant import ssl as "import ssl" and got a big error, Any tips?
My code in c# to call python:
using System;using System.Collections.Generic;using System.ComponentModel;using 
System.Data;using System.Drawing;using System.Linq;using System.Text;using 
System.Windows.Forms;
using IronPython.Hosting;using Microsoft.Scripting.Hosting;
namespace test{public partial class Form1 : Form{public Form1() 
   {InitializeComponent();}
private void button1_Click(object sender, EventArgs e){ 
   ScriptRuntime pyRuntime = Python.CreateRuntime();
dynamic obj = pyRuntime.UseFile("sslsocket.py");
string response = obj.openssl("hello");
if (response == "true")MessageBox.Show("success", 
"success", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
this.Close();}}
And the sslsocket.py code is:
import socketimport ssl
def openssl(data):  HOST = '192.168.1.6'PORT = 1234 d = 
data.encode('utf-8')s = socket.socket(socket.AF_INET, 
socket.SOCK_STREAM)   ssl_sock = 
ssl.wrap_socket(s,ca_certs="C:\Users\test\Documents\Visual Studio 
2008\Projects\testupload\root.crt",cert_reqs=ssl.CERT_NONE)
ssl_sock.connect((HOST, PORT))  ssl_sock.send(d)ssl_sock.close()
return "true"
Platform: Win7 32 bit, Python 2.7, Visual studio 2010, IronPython 2.7.1(latest 
one)
   ___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


Re: [Ironpython-users] Visual studio C# "no module named ssl" import error

2011-12-12 Thread Slide
socket is provided via IronPython.Modules, but only _ssl (the "native"
module) is implemented in IronPython.Modules. You would need the Python
stdlib which has the ssl module (which uses _ssl).

Thanks,

slide

2011/12/12 楊 鈞凱 

>  Hello Everyone, I want to use Ironpython to call a simple ssl socket
> test program
>
> but I got a ImportException error called "no module named ssl".
>
> Strange thing is I can import socket and run as "import socket".(tested
> with another simple socket program without ssl)
>
> But I cant import ssl as "import ssl" and got a big error, Any tips?
>
> My code in c# to call python:
>
> using System;
> using System.Collections.Generic;
> using System.ComponentModel;
> using System.Data;
> using System.Drawing;
> using System.Linq;
> using System.Text;
> using System.Windows.Forms;
>
> using IronPython.Hosting;
> using Microsoft.Scripting.Hosting;
>
> namespace test
> {
> public partial class Form1 : Form
> {
> public Form1()
> {
> InitializeComponent();
> }
>
> private void button1_Click(object sender, EventArgs e)
> {
> ScriptRuntime pyRuntime = Python.CreateRuntime();
>
> dynamic obj = pyRuntime.UseFile("sslsocket.py");
>
> string response = obj.openssl("hello");
>
> if (response == "true")
> MessageBox.Show("success", "success",
> MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
>
>   &nbs p; this.Close();
> }
> }
>
> And the sslsocket.py code is:
>
> import socket
> import ssl
>
> def openssl(data):
> HOST = '192.168.1.6'
> PORT = 1234
> d = data.encode('utf-8')
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> ssl_sock = ssl.wrap_socket(s,ca_certs="C:\Users\test\Documents\Visual
> Studio 2008\Projects\testupload\root.crt",cert_reqs=ssl.CERT_NONE)
> ssl_sock.connect((HOST, PORT))
> ** ssl_sock.send(d)
> ssl_sock.close()
> return "true"
>
> Platform: Win7 32 bit, Python 2.7, Visual studio 2010, IronPython
> 2.7.1(latest one)
>
> ___
> Ironpython-users mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/ironpython-users
>
>


-- 
Website: http://earl-of-code.com
___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


Re: [Ironpython-users] FW: How to install Scipy and Numpy for .net offline?

2011-12-12 Thread Cheng-B.Li
Hi Jason,
 
I used your recommended way to install the numpy and scipy packages. It works 
fine for numpy but failed on scipy. I put the python source file under 
lib/site-packages and the dlls under the folder IronPython 2.7.1/DLLs.  The 
error messgae reads as follows:
 
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\IronPython 2.7.1\lib\site-packages\scipy\__init__.py", 
line 124, in 
pkgload = PackageLoader()
  File "C:\Program Files\IronPython 
2.7.1\lib\site-packages\numpy\_import_tools.py", line 15, in __init__
self.parent_frame = frame = sys._getframe(_level)
AttributeError: 'module' object has no attribute '_getframe'
 
Do you know where the problem lies. Much thx.
 
Regards,
Cheng



From: Li, Cheng-B 
Sent: 2011年12月6日 10:20
To: 'Jason McCampbell'
Cc: [email protected]
Subject: RE: FW: How to install Scipy and Numpy for .net offline?


Hi Jason,
 
Don't worry. The internet problem is due to my internet connection's 
restriction. There is nothing wrong on your side. I'll try to install it 
manually. Thx for your kindly reply!
 
Regards,
Cheng



From: Jason McCampbell [mailto:[email protected]] 
Sent: 2011年12月5日 22:48
To: Li, Cheng-B
Cc: [email protected]
Subject: Re: FW: How to install Scipy and Numpy for .net offline?


Hi Cheng, 

That's odd that the installation isn't working correctly.  If you are seeing 
any error messages please send them to me and I'll take a look.

You can install the eggs manually.  Each egg file is just a ZIP archive with 
some defined metadata in it.  If you extract the numpy and scipy eggs, you will 
get a directory named 'numpy' or 'scipy' plus an 'EGG-INFO' directory.  Move 
the numpy or scipy directory to the lib/site-packages directory under your 
IronPython installation.  There are also some DLL files in each egg under 
EGG-INFO/prefix/DLLs.  Each of the DLL files should be copied to the DLLs 
directory under your IronPython install tree.

After that you should be able to use both packages as though you used the 
automatic installer.  

Please let me know if you have any trouble getting this to work or any other 
questions.

Regards,
Jason




From: [email protected] 
[mailto:ironpython-users-bounces+smortaz 
 [email protected]] On 
Behalf Of [email protected]
Sent: Saturday, December 03, 2011 2:44 AM
To: [email protected]
Subject: [Ironpython-users] How to install Scipy and Numpy for .net 
offline?

 

Hi Everyone, 

I am a newbie to Iron python. I find the below link is very useful 
since it make the scipy and numpy usable in ironpython

http://www.enthought.com/repo/.iron/ 
  

Unfortunately the installation is done automatically on line. Due to 
some reason I can't install them in this way. I have just download the eggs 
from that site. But I don't know what should I do next.. Is there anyone have 
encountered the same problem and resolved it?

Regards, 
Cheng 


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

 
UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


Re: [Ironpython-users] FW: How to install Scipy and Numpy for .net offline?

2011-12-12 Thread Zachary Gramana
Try running: ipy.exe -X:FullFrames ...


On Dec 12, 2011, at 21:16,  wrote:

> self.parent_frame = frame = sys._getframe(_level)
> AttributeError: 'module' object has no attribute '_getframe
___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users


[Ironpython-users] FW: Visual studio C# "no module named ssl" import error

2011-12-12 Thread 楊 鈞凱

Good Day!~~
Thanks for your fast reply.
So there is _ssl module in IronPython, but no ssl module, and I need to find a 
standard library to call _ssl module, am I right?
C has stdlib module so I can do such as , but seems there is no 
module called stdlib in IronPython.(Import error again >.<) 
Can you be more specific about Python stdlib(standard library) which has ssl 
module to call _ssl?
Or could you tell me how to use Python "ssl.py" (I found it under Python/lib 
folder) to let things work if this is the one I needed.
Thank you very much ^ ^
KayDate: Mon, 12 Dec 2011 12:58:51 -0700
Subject: Re: [Ironpython-users] Visual studio C# "no module named ssl" import 
error
From: [email protected]
To: [email protected]
CC: [email protected]

socket is provided via IronPython.Modules, but only _ssl (the "native" module) 
is implemented in IronPython.Modules. You would need the Python stdlib which 
has the ssl module (which uses _ssl).

Thanks,
slide

2011/12/12 楊 鈞凱 






Hello Everyone, I want to use Ironpython to call a simple ssl socket test 
program

but I got a ImportException error called "no module named ssl".

Strange thing is I can import socket and run as "import socket".(tested with 
another simple socket program without ssl)

But I cant import ssl as "import ssl" and got a big error, Any tips?
My code in c# to call python:

using System;using System.Collections.Generic;using System.ComponentModel;using 
System.Data;using System.Drawing;
using System.Linq;using System.Text;using System.Windows.Forms;
using IronPython.Hosting;using Microsoft.Scripting.Hosting;
namespace test
{public partial class Form1
  : Form{public Form1(){InitializeComponent();  
  }
private void button1_Click(object sender, EventArgs e)
{ScriptRuntime pyRuntime = Python.CreateRuntime();
dynamic obj = pyRuntime.UseFile("sslsocket.py");
string response = obj.openssl("hello");

if (response == "true")MessageBox.Show("success", 
"success", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

  &nbs
 p; this.Close();}}
And the sslsocket.py code is:
import socketimport ssl
def openssl(data):
HOST = '192.168.1.6'PORT = 1234 d = data.encode('utf-8')
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)   ssl_sock = 
ssl.wrap_socket(s,ca_certs="C:\Users\test\Documents\Visual Studio 
2008\Projects\testupload\root.crt",cert_reqs=ssl.CERT_NONE)
ssl_sock.connect((HOST, PORT))  ssl_sock.send(d)ssl_sock.close()
return "true"
Platform: Win7 32 bit, Python 2.7, Visual studio 2010, IronPython 2.7.1(latest 
one)   
  

___

Ironpython-users mailing list

[email protected]

http://mail.python.org/mailman/listinfo/ironpython-users




-- 
Website: http://earl-of-code.com


  ___
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users