[wingide-users] wingide-users Digest, Vol 118, Issue 2

diliup gabadamudalige diliupg at gmail.com
Thu Feb 6 13:01:57 EST 2014


How can delete a variable and all it's references in one go? :)


On Thu, Feb 6, 2014 at 10:30 PM, <wingide-users-request at wingware.com> wrote:

> Send wingide-users mailing list submissions to
>         wingide-users at wingware.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://wingware.com/mailman/listinfo/wingide-users
> or, via email, send a message with subject or body 'help' to
>         wingide-users-request at wingware.com
>
> You can reach the person managing the list at
>         wingide-users-owner at wingware.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wingide-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Problem with "pandas" on Mac OS X Lion (Wingware Support)
>    2. Re: Problem with "pandas" on Mac OS X Lion (Trevor T)
>    3. Re: Problem with "pandas" on Mac OS X Lion (Wingware Support)
>    4. Re: Problem with "pandas" on Mac OS X Lion (Trevor T)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 05 Feb 2014 12:26:01 -0500
> From: Wingware Support <support at wingware.com>
> To: Trevor T <tsnipez at gmail.com>
> Cc: wingide-users at wingware.com
> Subject: Re: [wingide-users] Problem with "pandas" on Mac OS X Lion
> Message-ID: <52F27429.6090301 at wingware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Trevor T wrote:
> > As a long-time Wing fan, I have been struggling lately how to solve an
> > issue I keep having when trying to import the "pandas" module (
> > http://pandas.pydata.org/ ) in either the Python shell or my projects
> > on my Max OS X Lion machine.
> >
> > This is what a typical import in the shell looks like:
> > ********************
> > import pandas
> > cannot import name hashtableTraceback (most recent call last):
> >   File
> > "/Applications/WingIDE.app/Contents/MacOS/src/debug/tserver/_sandbox.py",
> > line 1, in <module>
> >     # Used internally for debug sandbox under external interpreter
> >   File
> >
> "/Library/Python/2.7/site-packages/pandas-0.13.0_395_gef55e60-py2.7-macosx-10.9-intel.egg/pandas/__init__.py",
> > line 16, in <module>
> >     from . import hashtable, tslib, lib
> > ImportError: cannot import name hashtable
> > ********************
> >
> > The strange thing is that this error only occurs within WingIDE. If I
> > open up a terminal, launch Python, and then import pandas - everything
> > works smoothly and no error occurs.
> >
> > Now after some Googling, I'm not the first to run into this error but
> > it appears I am the first to run into it within Wing.  Here is a
> > StackOverflow thread describing the problem: http://dr.tl/0e180 - the
> > thing is they seem to have been having the problem within plain old
> > python, instead of just Wing, and it was resolved by just changing the
> > directory from the pandas source directory.  To my knowledge, I'm not
> > in the pandas source directory within the default python shell in Wing
> > or any of my projects.  So I'm not sure how this relates to the Wing
> > configuration?
> >
> > Now admittedly, I haven't compiled pandas myself, and instead am
> > relying on other composite packages.  I have tested both "anaconda"
> > and "ScipySuperPack" with the same results.
> >
> > Any ideas?  Any help would be more than appreciated.
>
> Try comparing sys.path and os.getcwd() in the two cases (inside and not
> inside Wing).  Most relevant would be whether '.' is in sys.path, and/or
> you need to set the Initial Directory under the Debug/Execute tab in
> Project Properties.  If you need to alter Python Path you can also do
> that in the same dialog under the Environment tab.
>
> My guess from the SO item you reference is that you may just need to set
> the Initial Directory property in Wing.
>
> --
>
> Stephan Deibel
> Wingware | Python IDE
> Advancing Software Development
>
> www.wingware.com
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 5 Feb 2014 10:53:31 -0700
> From: Trevor T <tsnipez at gmail.com>
> To: Wingware Support <support at wingware.com>
> Cc: wingide-users at wingware.com
> Subject: Re: [wingide-users] Problem with "pandas" on Mac OS X Lion
> Message-ID:
>         <
> CAEZV2gY_k3xHGnM9DKKVDDb_ycm8kRx0JWgU3g9bvxt_V7AOVg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Unfortunately, it seems that both sys.path and os.getcwd() return the same
> result whether I'm in Wing or just the regular python terminal.
>
> Specifically sys.path returns:
>
> ['', '/Users/owner/anaconda/lib/python27.zip',
> '/Users/owner/anaconda/lib/python2.7',
> '/Users/owner/anaconda/lib/python2.7/plat-darwin',
> '/Users/owner/anaconda/lib/python2.7/plat-mac',
> '/Users/owner/anaconda/lib/python2.7/plat-mac/lib-scriptpackages',
> '/Users/owner/anaconda/lib/python2.7/lib-tk',
> '/Users/owner/anaconda/lib/python2.7/lib-old',
> '/Users/owner/anaconda/lib/python2.7/lib-dynload',
> '/Users/owner/anaconda/lib/python2.7/site-packages',
> '/Users/owner/anaconda/lib/python2.7/site-packages/PIL',
>
> '/Users/owner/anaconda/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
>
> and os.getcwd() returns:
>
> '/Users/owner'
>
> I checked if the two lists were equivalent generated by two different
> shells and they were.  Now the other thing I didn't mention is that the
> hashtable error is the only *consistent* error associated with importing
> pandas.  What I mean, is that if I just launch Wing IDE and try to import
> pandas - I will always first get this error instead:
> http://pastebin.com/raw.php?i=XnZ2K0Lp - but when I try to import pandas
> again from that same shell is what I get the hashtable error and will
> forever keep getting if I try to import pandas from the same terminal
> session.  I couldn't find the particular first error anywhere on Google so
> I just assumed that the second, consistent error is all that matters.
>
> Thank you for the help!
>
>
> On Wed, Feb 5, 2014 at 10:26 AM, Wingware Support <support at wingware.com
> >wrote:
>
> > Trevor T wrote:
> >
> >> As a long-time Wing fan, I have been struggling lately how to solve an
> >> issue I keep having when trying to import the "pandas" module (
> >> http://pandas.pydata.org/ ) in either the Python shell or my projects
> on
> >> my Max OS X Lion machine.
> >>
> >> This is what a typical import in the shell looks like:
> >> ********************
> >> import pandas
> >> cannot import name hashtableTraceback (most recent call last):
> >>   File
> "/Applications/WingIDE.app/Contents/MacOS/src/debug/tserver/_sandbox.py",
> >> line 1, in <module>
> >>     # Used internally for debug sandbox under external interpreter
> >>   File "/Library/Python/2.7/site-packages/pandas-0.13.0_395_
> >> gef55e60-py2.7-macosx-10.9-intel.egg/pandas/__init__.py", line 16, in
> >> <module>
> >>     from . import hashtable, tslib, lib
> >> ImportError: cannot import name hashtable
> >> ********************
> >>
> >> The strange thing is that this error only occurs within WingIDE. If I
> >> open up a terminal, launch Python, and then import pandas - everything
> >> works smoothly and no error occurs.
> >>
> >> Now after some Googling, I'm not the first to run into this error but it
> >> appears I am the first to run into it within Wing.  Here is a
> StackOverflow
> >> thread describing the problem: http://dr.tl/0e180 - the thing is they
> >> seem to have been having the problem within plain old python, instead of
> >> just Wing, and it was resolved by just changing the directory from the
> >> pandas source directory.  To my knowledge, I'm not in the pandas source
> >> directory within the default python shell in Wing or any of my projects.
> >>  So I'm not sure how this relates to the Wing configuration?
> >>
> >> Now admittedly, I haven't compiled pandas myself, and instead am relying
> >> on other composite packages.  I have tested both "anaconda" and
> >> "ScipySuperPack" with the same results.
> >>
> >> Any ideas?  Any help would be more than appreciated.
> >>
> >
> > Try comparing sys.path and os.getcwd() in the two cases (inside and not
> > inside Wing).  Most relevant would be whether '.' is in sys.path, and/or
> > you need to set the Initial Directory under the Debug/Execute tab in
> > Project Properties.  If you need to alter Python Path you can also do
> that
> > in the same dialog under the Environment tab.
> >
> > My guess from the SO item you reference is that you may just need to set
> > the Initial Directory property in Wing.
> >
> > --
> >
> > Stephan Deibel
> > Wingware | Python IDE
> > Advancing Software Development
> >
> > www.wingware.com
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> </pipermail/wingide-users/attachments/20140205/d1ef1cf1/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 05 Feb 2014 13:53:44 -0500
> From: Wingware Support <support at wingware.com>
> To: Trevor T <tsnipez at gmail.com>
> Cc: wingide-users at wingware.com
> Subject: Re: [wingide-users] Problem with "pandas" on Mac OS X Lion
> Message-ID: <52F288B8.90101 at wingware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Trevor T wrote:
> > I checked if the two lists were equivalent generated by two different
> > shells and they were.  Now the other thing I didn't mention is that the
> > hashtable error is the only /consistent/ error associated with importing
> > pandas.  What I mean, is that if I just launch Wing IDE and try to
> > import pandas - I will always first get this error instead:
> > http://pastebin.com/raw.php?i=XnZ2K0Lp - but when I try to import pandas
> > again from that same shell is what I get the hashtable error and will
> > forever keep getting if I try to import pandas from the same terminal
> > session.  I couldn't find the particular first error anywhere on Google
> > so I just assumed that the second, consistent error is all that matters.
>
> Oh, this looks like a bug in our matplotlib event loop support for the
> OS X back end (the fix is coming in 5.0.3).  To work around it, uncheck
> that option under the Extensions tab in Project Properties.
>
> Please let me know if that doesn't help.
>
> Thanks,
>
> --
>
> Stephan Deibel
> Wingware | Python IDE
> Advancing Software Development
>
> www.wingware.com
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 5 Feb 2014 12:32:53 -0700
> From: Trevor T <tsnipez at gmail.com>
> To: Wingware Support <support at wingware.com>
> Cc: wingide-users at wingware.com
> Subject: Re: [wingide-users] Problem with "pandas" on Mac OS X Lion
> Message-ID:
>         <CAEZV2gYz68OLR5KTjxBkZW6pyZ5oz=rLg=
> 9dKf9HJ1yWU6MnyQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> That did the trick, you're the man! Thank you for the help.
>
>
> On Wed, Feb 5, 2014 at 11:53 AM, Wingware Support <support at wingware.com
> >wrote:
>
> > Trevor T wrote:
> >
> >> I checked if the two lists were equivalent generated by two different
> >> shells and they were.  Now the other thing I didn't mention is that the
> >> hashtable error is the only /consistent/ error associated with importing
> >>
> >> pandas.  What I mean, is that if I just launch Wing IDE and try to
> >> import pandas - I will always first get this error instead:
> >> http://pastebin.com/raw.php?i=XnZ2K0Lp - but when I try to import
> pandas
> >> again from that same shell is what I get the hashtable error and will
> >> forever keep getting if I try to import pandas from the same terminal
> >> session.  I couldn't find the particular first error anywhere on Google
> >> so I just assumed that the second, consistent error is all that matters.
> >>
> >
> > Oh, this looks like a bug in our matplotlib event loop support for the OS
> > X back end (the fix is coming in 5.0.3).  To work around it, uncheck that
> > option under the Extensions tab in Project Properties.
> >
> > Please let me know if that doesn't help.
> >
> > Thanks,
> >
> >
> > --
> >
> > Stephan Deibel
> > Wingware | Python IDE
> > Advancing Software Development
> >
> > www.wingware.com
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> </pipermail/wingide-users/attachments/20140205/743ddde4/attachment-0001.html>
>
> ------------------------------
>
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide
>
> End of wingide-users Digest, Vol 118, Issue 2
> *********************************************
>



-- 
Diliup Gabadamudalige


http://www.diliupg.com
http://soft.diliupg.com/

**********************************************************************************************
This e-mail is confidential. It may also be legally privileged. If you are
not the intended recipient or have received it in error, please delete it
and all copies from your system and notify the sender immediately by return
e-mail. Any unauthorized reading, reproducing, printing or further
dissemination of this e-mail or its contents is strictly prohibited and may
be unlawful. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
**********************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20140206/17814c47/attachment.html>


More information about the wingide-users mailing list