<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
            "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">

<channel>
<title>visualpython-discuss archive @ ASPN</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/visualpython-discuss</link>
<description>Discussion of Visual Python, ActiveState's Python plug-in for Visual Studio .NET.</description>
<language>en-us</language>
<copyright>Copyright 2005, ActiveState</copyright>
<managingEditor>aspn-feedback@activestate.com</managingEditor>
<webMaster>aspn-feedback@activestate.com</webMaster>

<image>
<title>visualpython-discuss @ ASPN Mail Archive</title>
<url>http://ASPN.ActiveState.com/ASPN/img/logo_78x25.gif</url>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/visualpython-discuss</link>
</image>

<item>
<title>[Visualpython-discuss]  swig init function problem</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2841104</link>
<description>&lt;PRE>Hi at all,

 

i have a big problem.

I use visual studio.net 2003, xp-prof, swigwin-1.3.25 and active python. I
can compile my project "dll_project" without problems, but when I try to
import the _dll_project into python I get following error:

 

Traceback (most recent call last):

  File "&lt;stdin>", line 1, in ?

ImportError: dynamic module does not define init function (init_dll_project)

 

I have no clue what I have to do. In my "dll_project_wrap.c" file there is a
"init_dll_project" function, see below

 

.

#define SWIG_init    init_dll_project

#define SWIG_name    "_dll_project"

.

 

Is it possible, that the "dll_project_wrap.c" is not correct implementet in
my .net project? What's wrong?

In the attachment you can find some settings that I made in my project!

 

Please help, I need this for my thesis!

Thanks in advance and sorry for my bad English, but I'm not a native English
speaker!

 

Greetings alex
&lt;/PRE></description>
</item>

<item>
<title>Re: [Visualpython-discuss]  Problems debugging Modules..</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2786806</link>
<description>&lt;PRE>Michael Collins wrote:
> Hi,
> 
> I've been asked to download and evaluate the Visual Python Trial for
> the company I work for.
> 
> Unfortunately it doesn't seem to be going too well so far.
> 
> First off, I'm using Visual Studio .Net 2003, it has all microsoft
> service packs installed etc.
> My workstation is a Windows XP professional machine, again with all
> service packs etc. applied.
> I already had Python 2.4.1 from python.org installed on my machine,
> along with a bunch of python modules including pywin32.
> I downloaded the Latest Visual Python, 1.83 from the activestate site.
> 
> I have set up a Solution with 2 projects which corresponds to the
> directory structure for the python I am trying to debug.
> 
> This is the directory stucture roughly
> 
> Services>    __init__.py
>    ServicesCommon>	    __init__.py
>	file1.py
>	file2.py
>	...
>    Teams>	  __init__.py
>	file3.py
>	file4.py
>	...
> 
> 
> My Solution is Services.sln with 2 projects, ServicesCommon and Teams.
> 
> In the a Teams Service in the teams directory I have a this line:
> from Services.ServicesCommon.XmlHelper import XmlHelper
> 
> Trying to debug one of this program in the Teams modules which refers
> to files in the ServicesCommon doesn't work.
> 
> I get output like this:
> 
> Starting Python debug run ...
> Traceback (most recent call last):
>   File "c:\program files\activestate visual python\callvpython.py ",
> line 105, in ?
>     main(sys.argv[1:])
>   File "c:\program files\activestate visual python\callvpython.py ",
> line 100, in main
>     else: requestor.start(script_args)
>   File "c:\program files\activestate visual python\kdbxml.py", line
> 709, in start
>     return Requester.start(self, debug_args)
>   File "c:\program files\activestate visual python\kdbxml.py", line
> 311, in start
>     self._do_start(debug_args)
>   File "c:\program files\activestate visual python\kdbxml.py", line
> 343, in _do_start
>     self.kdb.run(code_ob, locals, locals)
>   File "C:\Python24\lib\bdb.py", line 366, in run
>     exec cmd in globals, locals
>   File "c:\michael\code\Services\Teams\Teams_Service.py", line 26, in ?
>     from MMP_Services.Teams.Teams_Core import Teams
> ImportError: No module named MMP_Services.Teams.Teams_Core
>  
> If it was a standard vc++ project I would be able to add a dependancy
> from Teams to ServicesCommon.
> 
> I have tried adding the path to the Services directory, and the
> directory below it to the PYTHONPATH environment variable. (Both in
> Tools -> Options -> Projects -> VisualPython Python Path in visual
> studio, and by setting a windows environment PYTHON_PATH variable)
> 
> Using the pyDev Eclipse plugin I create a workspace in Services and am
> able to add the ServicesCommon and Teams directory as additional paths
> in the pyDev PythonPath.
> 
> Running it in pdb from the command line I just start a python session
> in the c:\michael\code directory, import pdb, import the module and
> start it running.
> 
> What really puzzles me is that the context menu when i right lcick on
> the import statement	in the ide which the debugger is crashing on the
> ide can pull up the file which it references.
> 
> Any pointers or tips?

I've added a bug -- http://bugs.activestate.com/show_bug.cgi?id=40489 --
requiring that we put in a field in the project properties to specify
the directory to run a script from.

I'm not sure why the PYTHONPATH isn't being used.

Thanks for reporting this,
Eric

> 
> Cheers
> 
> Michael
> 
> _______________________________________________
> Visualpython-discuss mailing list
> Visualpython-discuss@...
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Problems debugging Modules..</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2786600</link>
<description>&lt;PRE>Hi,

I've been asked to download and evaluate the Visual Python Trial for
the company I work for.

Unfortunately it doesn't seem to be going too well so far.

First off, I'm using Visual Studio .Net 2003, it has all microsoft
service packs installed etc.
My workstation is a Windows XP professional machine, again with all
service packs etc. applied.
I already had Python 2.4.1 from python.org installed on my machine,
along with a bunch of python modules including pywin32.
I downloaded the Latest Visual Python, 1.83 from the activestate site.

I have set up a Solution with 2 projects which corresponds to the
directory structure for the python I am trying to debug.

This is the directory stucture roughly

   __init__.py
   ServicesCommon	__init__.py
      file1.py
      file2.py
      ...
   Teams      __init__.py
      file3.py
      file4.py
      ...


My Solution is Services.sln with 2 projects, ServicesCommon and Teams.

In the a Teams Service in the teams directory I have a this line:
from Services.ServicesCommon.XmlHelper import XmlHelper

Trying to debug one of this program in the Teams modules which refers
to files in the ServicesCommon doesn't work.

I get output like this:

Starting Python debug run ...
Traceback (most recent call last):
  File "c:\program files\activestate visual python\callvpython.py ",
line 105, in ?
    main(sys.argv[1:])
  File "c:\program files\activestate visual python\callvpython.py ",
line 100, in main
    else: requestor.start(script_args)
  File "c:\program files\activestate visual python\kdbxml.py", line
709, in start
    return Requester.start(self, debug_args)
  File "c:\program files\activestate visual python\kdbxml.py", line
311, in start
    self._do_start(debug_args)
  File "c:\program files\activestate visual python\kdbxml.py", line
343, in _do_start
    self.kdb.run(code_ob, locals, locals)
  File "C:\Python24\lib\bdb.py", line 366, in run
    exec cmd in globals, locals
  File "c:\michael\code\Services\Teams\Teams_Service.py", line 26, in ?
    from MMP_Services.Teams.Teams_Core import Teams
ImportError: No module named MMP_Services.Teams.Teams_Core
 
If it was a standard vc++ project I would be able to add a dependancy
from Teams to ServicesCommon.

I have tried adding the path to the Services directory, and the
directory below it to the PYTHONPATH environment variable. (Both in
Tools -> Options -> Projects -> VisualPython Python Path in visual
studio, and by setting a windows environment PYTHON_PATH variable)

Using the pyDev Eclipse plugin I create a workspace in Services and am
able to add the ServicesCommon and Teams directory as additional paths
in the pyDev PythonPath.

Running it in pdb from the command line I just start a python session
in the c:\michael\code directory, import pdb, import the module and
start it running.

What really puzzles me is that the context menu when i right lcick on
the import statement  in the ide which the debugger is crashing on the
ide can pull up the file which it references.

Any pointers or tips?

Cheers

Michael

_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Debugging a multi-threaded app with	breakpoints</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2740673</link>
<description>&lt;PRE>I am using VisualPython (VP)
1.8.2 Build 2090.

I have written a mult-threaded Python app and I am trying to debug it
with VP. My problem is that breakpoints are ignored. I know that this
problem is not unique to VP - breakpoints seem to be ignored similarly
in the PythonWin IDE.

I derived my class from threading.Thread in a very standard way. I've
seen many scripts that look like my class:

class CMyThread(threading.Thread):

     def __init__(self, anObjectINeed)
	  self._stopevent = threading.Event()
	  self._sleepperiod = 1.0
	  threading.Thread.__init__(self, name='Test')

     def run(self):
     print "I made it!\n"
     while not self._stopevent.isSet():
	  print "This is the main activity of this thread\n"
	  self._stopevent.wait(self._sleepperiod)


Is there any other way than deriving my class from threading.Thread to
create a few threads in which I can place breakpoints that work with
VP?

Thanks!

Michael.

_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
&lt;/PRE></description>
</item>

<item>
<title>RE: [Visualpython-discuss]  Is Visual Python out of beta status?</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2560505</link>
<description>&lt;PRE>I totally agree
 
Thank you for gathering all these issues. They are indeed very annoying.
 
I would also add the very annoying issue where Visual Studio is totally frozen
while we're debugging wxPython applications (the "run in shell window" project
setting doesn't change anything). This means we cannot insert breakpoints
during program execution, which is obviously a showstopper issue for many
situations.
 
We are looking for a good development environment for the Python developers
in my team and, although VP did look promising, i am afraid we'll have to rely
on something else...
 
Benjamin Golinvaux
www.euresys.com
 

________________________________

De : visualpython-discuss-bounces@... [mailto:visualpython-discuss-bounces@... De la part
de Scott Weinstein
EnvoyÃ© : Monday, April 18, 2005 8:00 PM
Ã? : visualpython-discuss@...
Objet : [Visualpython-discuss] Is Visual Python out of beta status?



I downloaded the 30 day trial yesterday.  I want to like this product, but I get the
feeling it's still in beta but with a 300 dollar price tag.

 

 

There are two showstopper bugs

â?¡	  Visual Studio crashes with Visual Python installed.  Not all the time, mostly
when I'm exiting Visual Studio, but occasionally it's right in the middle of doing work.

â?¡	  Within the solution Explorer, dragging a file from another project into a Python
project causes the file to be deleted!

 

 

 

And there are lots of other problems:

â?¡	  the editor doesn't work well with Python spacing.  After I changed the options to
use spaces instead of tabs, I got better results.  Every other Python editor figures this
out automatically

â?¡	  the debugger does not handle the buggy program termination gracefully, I have to
open up the task manager and kill the Python debugger process

â?¡	  the debugger doesn't let me change the value of a variable

â?¡	  the "show all files" button isn't available in Python projects

â?¡	  Python output goes to the "run" window instead of the output pane

â?¡	  the command pane doesn't work

â?¡	  where is the IntelliSense?

 

 

 

--Scott W.

http://speech.squidnet.com &lt;http://speech.squidnet.com/> 

--------------------------------------------------------
The information contained in this message or any of its attachments may be privileged and
confidential and intended for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this transmission by error
please notify the sender immediately and then delete this email. EURESYS shall not be
liable for any loss of or damage to revenues, profits, goodwill, data, information systems
or other special, incidental, indirect, consequential or punitive damages of any kind
arising in connection with the use of information contained in this mail or its
attachments. Email transmission 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 is in no way liable for any errors or omissions in
the content of this message, which may arise as a result of email transmission. If
verification is required, please request a hard copy. Please note that neither EURESYS, nor
the sender accepts any responsibility for viruses and it is your responsibility to scan
attachments (if any).


--------------------------------------------------------
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Is Visual Python out of beta status?</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2560276</link>
<description>&lt;PRE>I downloaded the 30 day trial
yesterday.  I want to like this product, but I get the feeling it's still in beta but with
a 300 dollar price tag.

 

 

There are two showstopper bugs

â?¡	  Visual Studio crashes with Visual Python installed.  Not all the time, mostly
when I'm exiting Visual Studio, but occasionally it's right in the middle of doing work.

â?¡	  Within the solution Explorer, dragging a file from another project into a Python
project causes the file to be deleted!

 

 

 

And there are lots of other problems:

â?¡	  the editor doesn't work well with Python spacing.  After I changed the options to
use spaces instead of tabs, I got better results.  Every other Python editor figures this
out automatically

â?¡	  the debugger does not handle the buggy program termination gracefully, I have to
open up the task manager and kill the Python debugger process

â?¡	  the debugger doesn't let me change the value of a variable

â?¡	  the "show all files" button isn't available in Python projects

â?¡	  Python output goes to the "run" window instead of the output pane

â?¡	  the command pane doesn't work

â?¡	  where is the IntelliSense?

 

 

 

--Scott W.

 &lt;http://speech.squidnet.com/> http://speech.squidnet.com
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  RE: Are exceptions handled/shown in Visual	Python?</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2529272</link>
<description>&lt;PRE>As it turns out, they are shown,
but only on two conditions:

1)	 You have unchecked "Run in Shell window" in the sln properties.

2)	 You never do the following: "sys.stderr = sys.stdout"

 

The first one, I understand, but the 2nd one seems like a very common
way of capturing all error output.  After I execute that line, I can get
_nothing_ in my run output.  (Not even normal print statements).  This
means that I also don't see exception output.  Has anyone else seen this
behavior?

 

Cheers,

 

    Taylor

 

________________________________

From: Taylor Brown 
Sent: Monday, March 21, 2005 5:59 PM
To: 'visualpython-discuss@...
Subject: Are exceptions handled/shown in Visual Python?

 

 

In my experiences with debugging in Visual Python, I have only seen it
fail silently when a Python exception is thrown.  Is this
normal/expected behavior?  I would expect that it would at least print a
warning for me, and even better, would stop execution so that I could
examine what's going on (like WingIDE for example).  I feel like I'm
missing something obvious, but searches through the docs have not
yielded anything useful.  

 

Any help would be greatly appreciated.

 

Many thanks,

 

   Taylor
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Are exceptions handled/shown in Visual	Python?</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2528498</link>
<description>&lt;PRE>In my experiences with debugging in Visual Python, I have only seen it
fail silently when a Python exception is thrown.  Is this
normal/expected behavior?  I would expect that it would at least print a
warning for me, and even better, would stop execution so that I could
examine what's going on (like WingIDE for example).  I feel like I'm
missing something obvious, but searches through the docs have not
yielded anything useful.  

 

Any help would be greatly appreciated.

 

Many thanks,

 

   Taylor
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Mixing IDL and Python in VisualPythin	Project</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2486849</link>
<description>&lt;PRE>Hi,

Is it possible to add a new folder to a VisualPythin project that contains a
file which compiles with a custom action? Specifically, with a c++ project I can
add say an IDL and compile it by setting the actions in its property pages
window, but when I try to do this under a VisualPython project all I get is a
file property window, as if the file type was unrecognised...

Thanks, Paul



_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
&lt;/PRE></description>
</item>

<item>
<title>[Visualpython-discuss]  Remote debugging trouble</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/visualpython-discuss/2476345</link>
<description>&lt;PRE>I'm finally getting around to
trying remote debugging, but hit an 
obstacle that I can't figure out.  I've followed the instructions and 
it's clear that there's some communication happening -- as soon as I run 
  callvpython.py on the remote machine, the "Waiting for the Python 
debugger session..." dialog goes away on the local machine.  But then 
nothing happens and eventually the local machine reports "Error 
connecting to Debug server 10 attempts."  The remote machine shows nothing.

Does it matter that I'm using an IP address rather than a host name? 
(The docs say to enter the "domain name," but that made no sense and the 
example shows a host name.)

Does it matter where I run callvpython.py?  I've tried from the 
directory where it's installed and elsewhere, same results.

Does the "program name" in the server command line arguments need to 
have a path?  Is it referring to the local or the remote copy?	It's not 
clear to me if the remote debugger uses a copy of the target program on 
the remote machine or it ships a copy from the local machine...

Any help gratefully appreciated.

Nick

_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
&lt;/PRE></description>
</item>

</channel>
</rss>