[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-discuss
Subject: Re: OOT Binding problem
From: Fabien PELLET <fpellet.f4ctz () free ! fr>
Date: 2021-12-14 14:52:08
Message-ID: 388ju6bsl8dqton1jfvigsop.1639493247114 () email ! android ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Si how to use the command "gr_modtool bind" ?
---- Marcus Müller a écrit ----
>You can't, GNU Radio links against that.
>I'd recommend not updating Python, you essentially can't.
>
>On 14.12.21 14:44, Fabien PELLET wrote:
>> castxml was installed, pygccxml also in v1.9.1. I upgrade pygccxml to 2.2.1 without success.
>>
>> How to update python version (3.7 actually) without having to recompile gnuradio ?
>>
>> Le 14/12/2021 à 12:44, Josh Morman a écrit :
>>> Sounds like castxml could be playing a role here. Along the same lines Ron suggested,
>>> you could try installing both pygccxml and castxml from pip3
>>>
>>> Josh
>>>
>>> On Tue, Dec 14, 2021 at 6:23 AM Ron Economos <w6rz@comcast.net> wrote:
>>>
>>> I've tried it on both Ubuntu 18.04 and 20.04, so I don't think it's due
>>> to the Python version.
>>>
>>> You could try the latest pygccxml. Use pip or pip3 to install.
>>>
>>> You could also try building CastXML from source. That's where some of
>>> the compiler dirty work is being done. For example, you need the latest
>>> CastXML for gcc 11.
>>>
>>> https://github.com/CastXML/CastXML
>>>
>>> You'll need to install clang and libclang-xx-dev (where xx matches the
>>> version of clang that was installed).
>>>
>>> Ron
>>>
>>> On 12/14/21 2:57 AM, Fabien PELLET wrote:
>>> > Is that could be an incompatibility between Python3.7 that is provide
>>> > by RaspiOS repo and Pybind11 ?
>>> >
>>> > Fabien.
>>> >
>>> > Le 14/12/2021 à 11:54, Marcus Müller a écrit :
>>> >> Uh, since bindtool is Python-only, this should really not be
>>> >> platform-dependent. Unless we've got a problem with pygccxml, that is...
>>> >>
>>> >> On 14/12/2021 11.51, Ron Economos wrote:
>>> >>> I've never been able to get gr_modtool bind to work on 32-bit ARM
>>> >>> architecture (Ubuntu on a Beagleboard-X15). I get the same error
>>> >>> message.
>>> >>>
>>> >>> Ron
>>> >>>
>>> >>> On 12/14/21 2:15 AM, Fabien PELLET wrote:
>>> >>>> Hello,
>>> >>>>
>>> >>>> I'm trying to write a simple OOT module. For exemple, I create a
>>> >>>> module "test" (gr-modtool newmod test) and I create a general block
>>> >>>> inside (gr-modtool add blablamodule) : everything fine up to this
>>> >>>> point.
>>> >>>>
>>> >>>> If now I modify the file "blablamodule.h" I have do a "gr_modtool
>>> >>>> bind blablamodule" to update the file "blablamodule_python.cc" that
>>> >>>> is in python/bindings" (if I do not do this, the cmake will
>>> >>>> complain). I get in return after the parsing of my file
>>> >>>> "blablamodule.h" the following error :
>>> >>>>
>>> >>>> ERROR error occured, while parsing element with name "Field" and
>>> >>>> attrs "['id', 'name', 'type', 'context', 'access', 'offset']"
>>> >>>> Error: 'file'.
>>> >>>> 'file'
>>> >>>>
>>> >>>> After several try without any success, I delete all file and
>>> >>>> recreate the module and the block using gr-modtool and then I try
>>> >>>> just after creating it without modifying it to execute "gr_modtool
>>> >>>> bind blablamodule" inside the fresh newly created module
>>> >>>> directory.... Same error !
>>> >>>>
>>> >>>> I read that I need to get pybind11 with a version > 2.5 so I
>>> >>>> install it from source the v2.8 (well recognized as a cmake command
>>> >>>> tell that it detects the v2.8.1).
>>> >>>>
>>> >>>> I'm on a raspberry PI4 with GNURADIO 3.9.4, PYTHON 3.7.3, PYBIND11
>>> >>>> 2.8.1. What am I doing wrong ?
>>> >>>>
>>> >>>> I try on a other computer with GNURADIO 3.9.3, PYTHON 3.8.10 and I
>>> >>>> do not see the research of PYBIND11 but "gr_modtool bind
>>> >>>> blablamodule" is working well....
>>> >>>>
>>> >>>> Thanks for your help,
>>> >>>>
>>> >>>> Best regards,
>>> >>>>
>>> >>>> Fabien, F4CTZ.
>>> >>>>
>>> >>>>
>>> >>>
>>> >
>>>
[Attachment #3 (text/html)]
Si how to use the command "gr_modtool bind" ?<br><br>---- Marcus Müller a \
écrit ----<br><br>You can't, GNU Radio links against that.<br>I'd recommend not \
updating Python, you essentially can't.<br><br>On 14.12.21 14:44, Fabien PELLET \
wrote:<br>> castxml was installed, pygccxml also in v1.9.1. I upgrade pygccxml to \
2.2.1 without success.<br>> <br>> How to update python version (3.7 actually) \
without having to recompile gnuradio ?<br>> <br>> Le 14/12/2021 à 12:44, Josh \
Morman a écrit :<br>>> Sounds like castxml could be playing a role here. Along \
the same lines Ron suggested, <br>>> you could try installing both pygccxml and \
castxml from pip3<br>>><br>>> Josh<br>>><br>>> On Tue, Dec \
14, 2021 at 6:23 AM Ron Economos <w6rz@comcast.net> \
wrote:<br>>><br>>> I've tried it on both Ubuntu \
18.04 and 20.04, so I don't think it's due<br>>> to the \
Python version.<br>>><br>>> You could try the \
latest pygccxml. Use pip or pip3 to \
install.<br>>><br>>> You could also try building \
CastXML from source. That's where some of<br>>> the \
compiler dirty work is being done. For example, you need the \
latest<br>>> CastXML for gcc \
11.<br>>><br>>> \
https://github.com/CastXML/CastXML<br>>><br>>> \
You'll need to install clang and libclang-xx-dev (where xx matches \
the<br>>> version of clang that was \
installed).<br>>><br>>> \
Ron<br>>><br>>> On 12/14/21 2:57 AM, Fabien \
PELLET wrote:<br>>> > Is that could be an \
incompatibility between Python3.7 that is provide<br>>> \
> by RaspiOS repo and Pybind11 ?<br>>> \
><br>>> > \
Fabien.<br>>> ><br>>> \
> Le 14/12/2021 à 11:54, Marcus Müller a écrit \
:<br>>> >> Uh, since bindtool is Python-only, \
this should really not be<br>>> >> \
platform-dependent. Unless we've got a problem with pygccxml, that \
is...<br>>> \
>><br>>> >> On 14/12/2021 11.51, Ron \
Economos wrote:<br>>> >>> I've never been able \
to get gr_modtool bind to work on 32-bit ARM<br>>> \
>>> architecture (Ubuntu on a Beagleboard-X15). I get the same \
error<br>>> >>> \
message.<br>>> \
>>><br>>> >>> \
Ron<br>>> \
>>><br>>> >>> On 12/14/21 2:15 AM, \
Fabien PELLET wrote:<br>>> >>>> \
Hello,<br>>> \
>>>><br>>> >>>> I'm trying to \
write a simple OOT module. For exemple, I create \
a<br>>> >>>> module "test" (gr-modtool \
newmod test) and I create a general block<br>>> \
>>>> inside (gr-modtool add blablamodule) : everything fine up to \
this<br>>> >>>> \
point.<br>>> \
>>>><br>>> >>>> If now I modify \
the file "blablamodule.h" I have do a "gr_modtool<br>>> \
>>>> bind blablamodule" to update the file "blablamodule_python.cc" \
that<br>>> >>>> is in python/bindings" (if \
I do not do this, the cmake will<br>>> >>>> \
complain). I get in return after the parsing of my \
file<br>>> >>>> "blablamodule.h" the \
following error :<br>>> \
>>>><br>>> >>>> ERROR error \
occured, while parsing element with name "Field" \
and<br>>> >>>> attrs "['id', 'name', \
'type', 'context', 'access', 'offset']"<br>>> \
>>>> Error: 'file'.<br>>> >>>> \
'file'<br>>> \
>>>><br>>> >>>> After several \
try without any success, I delete all file and<br>>> \
>>>> recreate the module and the block using gr-modtool and then I \
try<br>>> >>>> just after creating it \
without modifying it to execute "gr_modtool<br>>> \
>>>> bind blablamodule" inside the fresh newly created \
module<br>>> >>>> directory.... Same error \
!<br>>> \
>>>><br>>> >>>> I read that I \
need to get pybind11 with a version > 2.5 so I<br>>> \
>>>> install it from source the v2.8 (well recognized as a cmake \
command<br>>> >>>> tell that it detects the \
v2.8.1).<br>>> \
>>>><br>>> >>>> I'm on a \
raspberry PI4 with GNURADIO 3.9.4, PYTHON 3.7.3, \
PYBIND11<br>>> >>>> 2.8.1. What am I doing \
wrong ?<br>>> \
>>>><br>>> >>>> I try on a \
other computer with GNURADIO 3.9.3, PYTHON 3.8.10 and \
I<br>>> >>>> do not see the research of \
PYBIND11 but "gr_modtool bind<br>>> >>>> \
blablamodule" is working well....<br>>> \
>>>><br>>> >>>> Thanks for your \
help,<br>>> \
>>>><br>>> >>>> Best \
regards,<br>>> \
>>>><br>>> >>>> Fabien, \
F4CTZ.<br>>> \
>>>><br>>> \
>>>><br>>> \
>>><br>>> ><br>>><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic