Re: [gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread Raffaele Belardi
R0b0t1 wrote:
> On Mon, Sep 17, 2018 at 12:36 PM, R0b0t1  wrote:
>> On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
>>  wrote:
>>> (Moved from [pycharm-community vs pycharm-professional] thread)
>>>
 Usually what I see is either sftp or rsync (over ssh) to the remote
 computer, then ssh to run the updated files. Alternatively you can ssh
 to the remote host and run vim within that session.

>>>
>>> I suppose vim on Host + ssh for transfer/run would be fine for me.
>>>
>>> For debugging I saw some support for python is available in gdb but I'm not 
>>> sure of the
>>> environment, would I run gdb on the host or on the target (via gdbserver)?
>>> Also, is gdb a viable solution given the interpreted nature of python or 
>>> I'd better start
>>> off with some GUI/IDE?
>>
>> This is where it gets a bit weird... It seems there are multiple
>> custom remote debug implementations.
>>
>> From some discussion on what PyCharm does (how it was broken by a
>> company firewall) it looks like it starts an ssh connection to the
>> target machine and runs pdb. PyDev may do something similar but it
>> looks like it replaces pdb with its own module.
>>
>> Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
>> is actually quite good and should run on Gentoo - it is open source,
>> as is their remote python debugger. I had forgotten about it but if
>> you want a GUI do strongly consider it.
> 
> Also this, sorry - https://github.com/quantopian/qdb.

I had a quick look at the native python debugger pdb, I suppose that it should 
be fine
till I'll be good enough with coding to crash the interpreter :-). I'll edit on 
the host
('USE=python emerge vim') and share mounts via NFS. Thanks for the qdb hint, 
looks promising.
VSCode license has some privacy statements that I don't like.

thanks,

raffaele



Re: [gentoo-user] wxPython/wxWidgets release number mismatch

2018-09-17 Thread Andrew Udvare



> On 2018-09-17, at 19:51, Grant Edwards  wrote:
> 
> Sounds like a mess.  The Gentoo stable versions _seem_ to work OK
> together at the moment (for the apps I've tried), but the warning
> every time you run one doesn't inspire confidence.

That would be enough for me to stop using packages that rely on it. 2014 is a 
long time ago for any major package like this. I would expect crashes and 
instability with such apps. If I really need it, I would find another way to 
get the latest versions of wxPython and wxGTK installed. Maybe an overlay has 
that set up. Or you can build a local copy of the packages and use them that 
way.

Andrew




[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Andrew Udvare  wrote:
> On 9/17/18 5:02 PM, Grant Edwards wrote:
>> 
>> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
>> wxGTK-304-r300.  I've already done that a few times, but I answered
>> 'y' anyway and let it reinstall them again.  It didn't help:
>> 
>> $ python -c "import wx"
>> 
>> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
>> UserWarning: wxPython/wxWidgets release number mismatch
>>   warnings.warn("wxPython/wxWidgets release number mismatch")
>> 
>
> It needs to be version bumped. https://bugs.gentoo.org/632602
>
> The current version of wxPython is actually 4.0.x and is not
> compatible with wxGTK 3.0.4. wxGTK needs to be bumped as well
> https://bugs.gentoo.org/577030 but there are some breaking changes
> in 3.1 vs 3.0.

Sounds like a mess.  The Gentoo stable versions _seem_ to work OK
together at the moment (for the apps I've tried), but the warning
every time you run one doesn't inspire confidence.

--
Grant




[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Mick  wrote:
>> $ python -c "import wx"
>> 
>> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
>> UserWarning: wxPython/wxWidgets release number mismatch
>> warnings.warn("wxPython/wxWidgets release number mismatch")
>
> Have a look at bug #639276 in case it is related to your problem:
>
>  https://bugs.gentoo.org/639276

No, that seems to be a different problem with incompatible ABIs.
AFAICT, the ABIs in my case are comptable, and so far, applications
seem to run OK, but I always get the warning.

--
Grant






Re: [gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Andrew Udvare
On 9/17/18 5:02 PM, Grant Edwards wrote:
> 
> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
> wxGTK-304-r300.  I've already done that a few times, but I answered
> 'y' anyway and let it reinstall them again.  It didn't help:
> 
> $ python -c "import wx"
> 
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")
> 

It needs to be version bumped. https://bugs.gentoo.org/632602

The current version of wxPython is actually 4.0.x and is not compatible
with wxGTK 3.0.4. wxGTK needs to be bumped as well
https://bugs.gentoo.org/577030 but there are some breaking changes in
3.1 vs 3.0.

wxPython 3.0.2.0 is considered 'classic' and was released in 2014.

I tried to use a virtualenv with system package access and tried `pip
install wxpython` but the oldest sane version you can go back to 4.0.3
which won't build with 3.0.4 version of wxGTK.

This discrepancy between the two does not look like it will be fixed any
time soon.

Andrew



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Mick
On Monday, 17 September 2018 22:02:23 BST Grant Edwards wrote:
> On 2018-09-17, Andrew Udvare  wrote:
> > On 9/17/18 3:48 PM, Grant Edwards wrote:
> >> Does anybody have any idea what the below is trying to tell me?
> >> 
> >> _WHAT_ two compenents are mismatched?
> >> 
> >> WTF is the point of printing a "release number mismatch" warning
> >> without tell the user which two components are mismatched?
> >> 
> >> You might as well print out
> >> 
> >> WARNING: something might or might be wrong!
> >> 
> >> I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.
> > 
> > I think you need to try this:
> > 
> > revdep-rebuild -L wx_baseu-3.0 -- --ask
> 
> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
> wxGTK-304-r300.  I've already done that a few times, but I answered
> 'y' anyway and let it reinstall them again.  It didn't help:
> 
> $ python -c "import wx"
> 
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> UserWarning: wxPython/wxWidgets release number mismatch
> warnings.warn("wxPython/wxWidgets release number mismatch")

Have a look at bug #639276 in case it is related to your problem:

 https://bugs.gentoo.org/639276

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Andrew Udvare  wrote:
> On 9/17/18 3:48 PM, Grant Edwards wrote:
>> Does anybody have any idea what the below is trying to tell me?
>> 
>> _WHAT_ two compenents are mismatched?
>> 
>> WTF is the point of printing a "release number mismatch" warning
>> without tell the user which two components are mismatched?
>> 
>> You might as well print out
>> 
>> WARNING: something might or might be wrong!
>> 
>> I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.
>
> I think you need to try this:
>
> revdep-rebuild -L wx_baseu-3.0 -- --ask

It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
wxGTK-304-r300.  I've already done that a few times, but I answered
'y' anyway and let it reinstall them again.  It didn't help:

$ python -c "import wx"

/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: 
wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")

-- 
Grant Edwards   grant.b.edwardsYow! Either CONFESS now or
  at   we go to "PEOPLE'S COURT"!!
  gmail.com




Re: [gentoo-user] wxPython/wxWidgets release number mismatch

2018-09-17 Thread Andrew Udvare
On 9/17/18 3:48 PM, Grant Edwards wrote:
> Does anybody have any idea what the below is trying to tell me?
> 
> _WHAT_ two compenents are mismatched?
> 
> WTF is the point of printing a "release number mismatch" warning
> without tell the user which two components are mismatched?
> 
> You might as well print out
> 
> WARNING: something might or might be wrong!
> 
> I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.

I think you need to try this:

revdep-rebuild -L wx_baseu-3.0 -- --ask

I had an issue where Audacity and a few others could not start due to
version mismatches. Got an issue where the ABIs were different. After
running the above command and reinstalling, these apps started working
again.

Calculating dependencies... done!
[ebuild   R] x11-libs/wxGTK-3.0.4
[ebuild   R] x11-libs/wxGTK-3.0.4-r300
[ebuild   R] app-editors/wxhexeditor-0.24
[ebuild   R] games-emulation/pcsx2-1.4.0
[ebuild   R] app-arch/p7zip-16.02-r4
[ebuild   R] net-ftp/filezilla-3.36.0
[ebuild   R] media-video/mediainfo-18.08.1
[ebuild   R] sci-visualization/gnuplot-5.2.4
[ebuild   R] media-sound/audacity-2.2.2
[ebuild   R] games-emulation/dolphin-5.0

I would presume wxPython will be in your list.

Andrew



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Grant Edwards  wrote:

 import wx
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")

Is this because I have wxpython 3.0.2.0 and wxGTK 3.0.4-r300 and
"3.0.2.0" != "3.0.4-r300"?

Those are the current stable versions of the two packages, and there
are no matching combinations of wxGTK and wxpython versions available
in portage.

What is one supposed to do to avoid that warning everytime one starts
a wxpython app?

-- 
Grant Edwards   grant.b.edwardsYow! I'm shaving!!
  at   I'M SHAVING!!
  gmail.com




[gentoo-user] When did "emerge --search" start returning packages that don't match?

2018-09-17 Thread Grant Edwards
I recently noticed that "emerge --search" stopped working correctly.
It now returns all sorts of packages that don't match the search
sting:

$ emerge --search wxpython | grep '^[^\t ]'

[ Results for search key : wxpython ]
Searching...
*  dev-lang/python
*  dev-python/bpython
*  dev-python/ipython
*  dev-python/pythong [ Masked ]
*  dev-python/twython
*  dev-python/vpython [ Masked ]
*  dev-python/wxpython
[ Applications found : 7 ]

Why is it returning packges that don't match what I'm searching for?

Shouldn't only the last of the ones shown above be returned?

-- 
Grant Edwards   grant.b.edwardsYow! I am a traffic light,
  at   and Alan Ginzberg kidnapped
  gmail.commy laundry in 1927!




[gentoo-user] wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
Does anybody have any idea what the below is trying to tell me?

_WHAT_ two compenents are mismatched?

WTF is the point of printing a "release number mismatch" warning
without tell the user which two components are mismatched?

You might as well print out

WARNING: something might or might be wrong!

I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.

$ python
Python 2.7.15 (default, Sep 12 2018, 15:19:18)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: 
wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
  >>>



-- 
Grant Edwards   grant.b.edwardsYow! Hmmm ... a CRIPPLED
  at   ACCOUNTANT with a FALAFEL
  gmail.comsandwich is HIT by a
   TROLLEY-CAR ...




[gentoo-user] Re: disable Intel Mgr Engine

2018-09-17 Thread Grant Edwards
On 2018-09-14, james  wrote:
> On 9/13/18 7:52 PM, mad.scientist.at.la...@tutanota.com wrote:
>
>> Actually, we now know what linux it runs and people are starting to
>> break it, at least as far as finding bugs.
>
> Do enlighten me; what linux (ebedded) does ME run? any details are
> of interest to me.

It doesn't run Linux.  According to
https://en.wikipedia.org/wiki/Intel_Management_Engine It runs Minix 3.

-- 
Grant Edwards   grant.b.edwardsYow! Psychoanalysis??
  at   I thought this was a nude
  gmail.comrap session!!!




Re: [gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 12:36 PM, R0b0t1  wrote:
> On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
>  wrote:
>> (Moved from [pycharm-community vs pycharm-professional] thread)
>>
>> R0b0t1 wrote:
>>> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
 I'd use Python to develop programs for fun on an ARM-linux embedded board, 
 with the host
 PC running Gentoo. I suppose that for debugging on the target I'd need 
 this feature:
 "Remote run/debug" which is available only in the (pycharm)Pro edition, 
 right?

>>>
>>> Usually what I see is either sftp or rsync (over ssh) to the remote
>>> computer, then ssh to run the updated files. Alternatively you can ssh
>>> to the remote host and run vim within that session.
>>>
>>
>> I suppose vim on Host + ssh for transfer/run would be fine for me.
>>
>> For debugging I saw some support for python is available in gdb but I'm not 
>> sure of the
>> environment, would I run gdb on the host or on the target (via gdbserver)?
>> Also, is gdb a viable solution given the interpreted nature of python or I'd 
>> better start
>> off with some GUI/IDE?
>>
>> I normally use gdb/gdbserver for embedded C debugging so I'm fine with the 
>> gdb command
>> line interface.
>>
>
> This is where it gets a bit weird... It seems there are multiple
> custom remote debug implementations.
>
> From some discussion on what PyCharm does (how it was broken by a
> company firewall) it looks like it starts an ssh connection to the
> target machine and runs pdb. PyDev may do something similar but it
> looks like it replaces pdb with its own module.
>
> Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
> is actually quite good and should run on Gentoo - it is open source,
> as is their remote python debugger. I had forgotten about it but if
> you want a GUI do strongly consider it.

Also this, sorry - https://github.com/quantopian/qdb.



Re: [gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
 wrote:
> (Moved from [pycharm-community vs pycharm-professional] thread)
>
> R0b0t1 wrote:
>> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
>>> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
>>> with the host
>>> PC running Gentoo. I suppose that for debugging on the target I'd need this 
>>> feature:
>>> "Remote run/debug" which is available only in the (pycharm)Pro edition, 
>>> right?
>>>
>>
>> Usually what I see is either sftp or rsync (over ssh) to the remote
>> computer, then ssh to run the updated files. Alternatively you can ssh
>> to the remote host and run vim within that session.
>>
>
> I suppose vim on Host + ssh for transfer/run would be fine for me.
>
> For debugging I saw some support for python is available in gdb but I'm not 
> sure of the
> environment, would I run gdb on the host or on the target (via gdbserver)?
> Also, is gdb a viable solution given the interpreted nature of python or I'd 
> better start
> off with some GUI/IDE?
>
> I normally use gdb/gdbserver for embedded C debugging so I'm fine with the 
> gdb command
> line interface.
>

This is where it gets a bit weird... It seems there are multiple
custom remote debug implementations.

>From some discussion on what PyCharm does (how it was broken by a
company firewall) it looks like it starts an ssh connection to the
target machine and runs pdb. PyDev may do something similar but it
looks like it replaces pdb with its own module.

Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
is actually quite good and should run on Gentoo - it is open source,
as is their remote python debugger. I had forgotten about it but if
you want a GUI do strongly consider it.

Cheers,
R0b0t1



[gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread Raffaele Belardi
(Moved from [pycharm-community vs pycharm-professional] thread)

R0b0t1 wrote:
> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
>> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
>> with the host
>> PC running Gentoo. I suppose that for debugging on the target I'd need this 
>> feature:
>> "Remote run/debug" which is available only in the (pycharm)Pro edition, 
>> right?
>>
>
> Usually what I see is either sftp or rsync (over ssh) to the remote
> computer, then ssh to run the updated files. Alternatively you can ssh
> to the remote host and run vim within that session.
>

I suppose vim on Host + ssh for transfer/run would be fine for me.

For debugging I saw some support for python is available in gdb but I'm not 
sure of the
environment, would I run gdb on the host or on the target (via gdbserver)?
Also, is gdb a viable solution given the interpreted nature of python or I'd 
better start
off with some GUI/IDE?

I normally use gdb/gdbserver for embedded C debugging so I'm fine with the gdb 
command
line interface.

thanks,

raffaele



Re: [gentoo-user] pycharm-community vs pycharm-professional

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
 wrote:
> András Csányi wrote:
>> Hi,
>>
>> Check this page:
>> https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html
>
> I'm not the OP but am interested in the topic and currently just a noob in 
> Python.
>
> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
> with the host
> PC running Gentoo. I suppose that for debugging on the target I'd need this 
> feature:
> "Remote run/debug" which is available only in the Pro edition, right?
>

Yes. For all interested there is a .jar going around that has been
modified to avoid the license check that is as far as I can tell safe;
it does not require a network connection.

There is also PyDev, based on Eclipse. Remote debug (which entails
running) can be found documented at
http://www.pydev.org/manual_adv_remote_debugger.html.

Usually what I see is either sftp or rsync (over ssh) to the remote
computer, then ssh to run the updated files. Alternatively you can ssh
to the remote host and run vim within that session.

Cheers,
R0b0t1



Re: [gentoo-user] pycharm-community vs pycharm-professional

2018-09-17 Thread Raffaele Belardi
András Csányi wrote:
> Hi,
> 
> Check this page:
> https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html

I'm not the OP but am interested in the topic and currently just a noob in 
Python.

I'd use Python to develop programs for fun on an ARM-linux embedded board, with 
the host
PC running Gentoo. I suppose that for debugging on the target I'd need this 
feature:
"Remote run/debug" which is available only in the Pro edition, right?

thanks,

raffaele