ImportError: undefined symbol: GDALDatasetTestCapability when installing gdal2tiles on Linux Centos 7.5











up vote
0
down vote

favorite












How can I resolve this error?




ImportError: /home/a/b.com/live-charts/live-chart-example/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-x86_64-linux-gnu.so: undefined symbol: GDALDatasetTestCapability











share|improve this question




























    up vote
    0
    down vote

    favorite












    How can I resolve this error?




    ImportError: /home/a/b.com/live-charts/live-chart-example/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-x86_64-linux-gnu.so: undefined symbol: GDALDatasetTestCapability











    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      How can I resolve this error?




      ImportError: /home/a/b.com/live-charts/live-chart-example/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-x86_64-linux-gnu.so: undefined symbol: GDALDatasetTestCapability











      share|improve this question















      How can I resolve this error?




      ImportError: /home/a/b.com/live-charts/live-chart-example/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-x86_64-linux-gnu.so: undefined symbol: GDALDatasetTestCapability








      linux python centos-7






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 12 at 9:43









      Ahmed Ashour

      994610




      994610










      asked Sep 12 at 6:54









      C.Uyar

      11




      11






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          -1
          down vote













          Gerrit's answer to a related question solved the undefined symbol: GDALDatasetTestCapability error for me:




          If a gdal version is already installed, this problem will occur even if you have linked against the version installed in ~/.local. A solution is given at a Planet MYSQL post here:




          In this case, we can tell the linker to preload our newer 1.11.0 library in our shell this way:



          export LD_PRELOAD=/usr/local/lib/libgdal.so.1




          Or, in my case,




          export LD_PRELOAD="$HOME/.local/lib/libgdal.so.1"





          Python gdal undefined symbol GDALRasterBandGetVirtualMem






          share|improve this answer























          • You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
            – JessieinAg
            Nov 28 at 22:56












          • It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
            – JessieinAg
            Nov 28 at 23:00











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1357456%2fimporterror-undefined-symbol-gdaldatasettestcapability-when-installing-gdal2ti%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          -1
          down vote













          Gerrit's answer to a related question solved the undefined symbol: GDALDatasetTestCapability error for me:




          If a gdal version is already installed, this problem will occur even if you have linked against the version installed in ~/.local. A solution is given at a Planet MYSQL post here:




          In this case, we can tell the linker to preload our newer 1.11.0 library in our shell this way:



          export LD_PRELOAD=/usr/local/lib/libgdal.so.1




          Or, in my case,




          export LD_PRELOAD="$HOME/.local/lib/libgdal.so.1"





          Python gdal undefined symbol GDALRasterBandGetVirtualMem






          share|improve this answer























          • You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
            – JessieinAg
            Nov 28 at 22:56












          • It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
            – JessieinAg
            Nov 28 at 23:00















          up vote
          -1
          down vote













          Gerrit's answer to a related question solved the undefined symbol: GDALDatasetTestCapability error for me:




          If a gdal version is already installed, this problem will occur even if you have linked against the version installed in ~/.local. A solution is given at a Planet MYSQL post here:




          In this case, we can tell the linker to preload our newer 1.11.0 library in our shell this way:



          export LD_PRELOAD=/usr/local/lib/libgdal.so.1




          Or, in my case,




          export LD_PRELOAD="$HOME/.local/lib/libgdal.so.1"





          Python gdal undefined symbol GDALRasterBandGetVirtualMem






          share|improve this answer























          • You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
            – JessieinAg
            Nov 28 at 22:56












          • It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
            – JessieinAg
            Nov 28 at 23:00













          up vote
          -1
          down vote










          up vote
          -1
          down vote









          Gerrit's answer to a related question solved the undefined symbol: GDALDatasetTestCapability error for me:




          If a gdal version is already installed, this problem will occur even if you have linked against the version installed in ~/.local. A solution is given at a Planet MYSQL post here:




          In this case, we can tell the linker to preload our newer 1.11.0 library in our shell this way:



          export LD_PRELOAD=/usr/local/lib/libgdal.so.1




          Or, in my case,




          export LD_PRELOAD="$HOME/.local/lib/libgdal.so.1"





          Python gdal undefined symbol GDALRasterBandGetVirtualMem






          share|improve this answer














          Gerrit's answer to a related question solved the undefined symbol: GDALDatasetTestCapability error for me:




          If a gdal version is already installed, this problem will occur even if you have linked against the version installed in ~/.local. A solution is given at a Planet MYSQL post here:




          In this case, we can tell the linker to preload our newer 1.11.0 library in our shell this way:



          export LD_PRELOAD=/usr/local/lib/libgdal.so.1




          Or, in my case,




          export LD_PRELOAD="$HOME/.local/lib/libgdal.so.1"





          Python gdal undefined symbol GDALRasterBandGetVirtualMem







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 27 at 19:03









          Ramhound

          19.5k156084




          19.5k156084










          answered Nov 27 at 18:48









          JessieinAg

          1




          1












          • You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
            – JessieinAg
            Nov 28 at 22:56












          • It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
            – JessieinAg
            Nov 28 at 23:00


















          • You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
            – JessieinAg
            Nov 28 at 22:56












          • It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
            – JessieinAg
            Nov 28 at 23:00
















          You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
          – JessieinAg
          Nov 28 at 22:56






          You may also need to run, export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH" and ldconfig in order for the bindings to work.
          – JessieinAg
          Nov 28 at 22:56














          It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
          – JessieinAg
          Nov 28 at 23:00




          It would be helpful to have a comment on the down vote. This answer and information helped me resolve this exact error.
          – JessieinAg
          Nov 28 at 23:00


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1357456%2fimporterror-undefined-symbol-gdaldatasettestcapability-when-installing-gdal2ti%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mouse cursor on multiple screens with different PPI

          Agildo Ribeiro

          Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”