Replies: 32 comments 8 replies
-
Hello @joellama, |
Beta Was this translation helpful? Give feedback.
-
Hey @slayoo, The As a hack though I have GDL running through |
Beta Was this translation helpful? Give feedback.
-
after downloading GDL source, try something along these lines: cd gdl
mkdir build
cd build
cmake -DPYTHON_MODULE=ON ..
make -j
PYTHONPATH=$PYTHONPATH:`find . -name GDL.so | xargs dirname` python -m pytest ../testsuite/python/test-GDL.py The last line executes the Python-written tests for the Python GDL module (the one imported by |
Beta Was this translation helpful? Give feedback.
-
@slayoo, thanks for your help with this. I got a lot closer. With the commands you listed above, I now have GDL.so; however, I'm having trouble with In the build/src/ directory (which is where GDL.so is), I can see antlr/libantlr.dylib but I'm not sure how to link to it. Apologies for my basic questions with this. |
Beta Was this translation helpful? Give feedback.
-
Please try adding the directory in which Also, perhaps doing HTH |
Beta Was this translation helpful? Give feedback.
-
Good morning, I am having what might be a related issue ??? If you would like me to post as a new I ran into this thread after the grad student I am helping actually found it ... EDIT -> I ran into the antlr issue weeks ago, got past that, it's just the PyInit_GDL now :(
============================= test session starts ============================== ==================================== ERRORS ==================================== Maiko |
Beta Was this translation helpful? Give feedback.
-
Seems, the compiled binary has some troubles in using
|
Beta Was this translation helpful? Give feedback.
-
I tried that already, but I was using -DPYTHON=OFF, so I did it again just now, without that define. This time the Python-written script is saying exactly what the import GDL is saying : Traceback: Maiko |
Beta Was this translation helpful? Give feedback.
-
Just to confirm, does this help: |
Beta Was this translation helpful? Give feedback.
-
No, searching for PyInit_GDL surprisingly (?) comes up with nothing online. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible for you to try the Debian package of the GDL Python module: https://packages.debian.org/sid/python3-gdl |
Beta Was this translation helpful? Give feedback.
-
I can do that, will try it when I'm back at work, thank you.
…On 2023-02-19 2:58 p.m., Sylwester Arabas wrote:
Would it be possible for you to try the Debian package of the GDL Python
module: https://packages.debian.org/sid/python3-gdl
<https://packages.debian.org/sid/python3-gdl>
—
Reply to this email directly, view it on GitHub
<#1231 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACFGMEZ5IWMYMIBT5G4XYLWYKCPTANCNFSM5KJWRTXQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Indeed, wxGetApp() is undefined since it is created in the main (gdl.cpp) program and not in a library. It is thus absent from the GDL.so |
Beta Was this translation helpful? Give feedback.
-
In other terms, as long as -DWXWIDGETS=ON Python will not work. |
Beta Was this translation helpful? Give feedback.
-
solved in #1520 |
Beta Was this translation helpful? Give feedback.
-
Thank you @GillesDuvert! I'm also not familiar with the Python bridge, I've never used it besides running the pytest tests that @olebole contributed.
Since all tests have passed, no report was issued. |
Beta Was this translation helpful? Give feedback.
-
I see |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Quoting Gilles :
Believe it or not, it is still failing, not able to find the PyInit_GDL I don't want to waste your time anymore on this, it could be a variety of reasons, that I will investigate cmake3 -DHDF5DIR=/usr/local/hdf5 -DQHULL=OFF -DPYTHON_MODULE=ON .. The only other 'questionable' thing I noticed during the cmake is this :
I have installed GraphicsMagick in past attempts with no change in results. I am using this environment, since the OS versions are 'too old' for this : scl enable devtoolset-9 rh-python38 rh-perl530 bash And in all fairness, some modules errored out on me during compile, to which I did I will try (at Sylwesters suggestion) that Debian package he mentioned. Thanks to everyone for trying, I will let you know how it goes when I have time to look at this again. Maiko Langelaar / IT Department of Physics and Astronomy |
Beta Was this translation helpful? Give feedback.
-
FYI the cmake messages above are OK, although the 'preference' to GraphicsMagick is largely a phantom of the past. |
Beta Was this translation helpful? Give feedback.
-
Googling the "dynamic module does not define module export function" message, it seems that in some cases this is related with Python version mismatch (the one that GDL module was compiled against vs. the one that is used when importing). In principle, there are three Python versions that must match:
In the Debian Python module package source ("rules" file), they specify the following CMake options for building the module:
perhaps you could try with setting |
Beta Was this translation helpful? Give feedback.
-
This is VERY helpful information, thanks Sylwester, will work with this.
…On 2023-02-25 03:36, Sylwester Arabas wrote:
Googling the "dynamic module does not define module export function"
message, it seems that in some cases this is related with Python
version mismatch (the one that GDL module was compiled against vs. the
one that is used when importing).
In principle, there are three Python versions that must match:
* the one CMake finds with find_package(PythonInterp)
* the one CMake finds with find_package(PythonLibs)
* the one used at runtime
In the Debian Python module package source ("rules" file), they
specify the following CMake options for building the module:
-DPYTHON=YES -DPYTHONVERSION=3 -DPYTHON_MODULE=YES
perhaps you could try with setting PYTHONVERSION=3.8.6 to make sure it
is consistent?
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you commented.Message ID:
***@***.***>
Links:
------
[1]
#1231 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AACFGMGZMM3UPQBRZI5Z7RLWZHHDVANCNFSM5KJWRTXQ
|
Beta Was this translation helpful? Give feedback.
-
Adding the PYTHONVERSION actually messes up the compile believe it or
not, so here's an idea now, is it possible the PyInit_GDL is a false
positive ? Where does it test for this ?
Maiko
…On 2023-02-25 03:36, Sylwester Arabas wrote:
Googling the "dynamic module does not define module export function"
message, it seems that in some cases this is related with Python
version mismatch (the one that GDL module was compiled against vs. the
one that is used when importing).
In principle, there are three Python versions that must match:
* the one CMake finds with find_package(PythonInterp)
* the one CMake finds with find_package(PythonLibs)
* the one used at runtime
In the Debian Python module package source ("rules" file), they
specify the following CMake options for building the module:
-DPYTHON=YES -DPYTHONVERSION=3 -DPYTHON_MODULE=YES
perhaps you could try with setting PYTHONVERSION=3.8.6 to make sure it
is consistent?
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you commented.Message ID:
***@***.***>
Links:
------
[1]
#1231 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AACFGMGZMM3UPQBRZI5Z7RLWZHHDVANCNFSM5KJWRTXQ
|
Beta Was this translation helpful? Give feedback.
-
Please provide logs from the failing compilation. |
Beta Was this translation helpful? Give feedback.
-
Server freshly rebooted, yum updated, latest Centos 7.9, Python 3.8.13, gcc version 9.3.1 20200408 :
Then try and run it as follows :
I have put the entire build directory on our webserver, which will include : cmake.log, make.log, install.log, install manifest, etc ... URL is http://www.physics.umanitoba.ca/build_ssresearch_gdl03Mar2023_maiko.tar.gz IF you prefer I don't post a URL, please let me know ASAP and I will edit the post. Maiko (no rush on this, I appreciate whatever you can do) |
Beta Was this translation helpful? Give feedback.
-
Change of strategy. the devtoolset 'suite' is causing me all the problems here, ironically the reason I went to it was But quite honestly I decided just now to give up on the devtoolset, it's not working as far as development header So back to the OS stock python 3.6.8m (that's all I have to work with), the cmake is nice and clean now, and yes So here is the first one then it stops : [ 54%] Building CXX object src/CMakeFiles/gdl.dir/histogram.cpp.o Sorry for the long delays between posts, busy guy, got way tooo much on my plate :( Maiko |
Beta Was this translation helpful? Give feedback.
-
I have compiled a new gcc 9.2.0 from source and using it now. The next error I ran into was this one : [ 15%] Building CXX object src/CMakeFiles/gdl.dir/hdf5_fun.cpp.o I think we're getting there, because an earlier attempt gave me a GDL.so that actually got Maiko |
Beta Was this translation helpful? Give feedback.
-
That's what I kinda thought, but I was not sure.
I owe you a coffee ! Thanks for your patience Sylwester. (PS : my youngest kid was actually in Tomaszów Mazowiecki early February, Speed Skating ISU World Cup) Maiko |
Beta Was this translation helpful? Give feedback.
-
just an UPDATE (no need to reply) - Now using Rocky 8.9 This compiles smoothly out of the box, and with epel-release, works with Python 3.9.13, no effort required :
None of this silly devtoolset, it's all stock packages using yum install, very nice. Only one error (IDL actually) the user has run into, so if anyone knows this, although % Compiled module: GETTOK. Maiko |
Beta Was this translation helpful? Give feedback.
-
Success, the user reports : |
Beta Was this translation helpful? Give feedback.
-
I’m having some issues installing GDL with the python bridge. The documentation suggests to call with
—enable-shared
but I can’t figure out where to add that flag. If I try:bash scripts/build_gdl.sh configure —enable-shared
I get a usage error.Apologies if I’ve missed something in the documentation, but I couldn’t see it anywhere. Any help would be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions