Giter Club home page Giter Club logo

Comments (5)

petebunting avatar petebunting commented on June 3, 2024

Thanks for this. How did you install RSGISLib? Did you install via conda / conda-forge?

Looks like the error is coming from the python installation dependencies. What happens if you just import the ftplib from the python prompt?

from rsgislib.

dobedobedo avatar dobedobedo commented on June 3, 2024

Hi,
I built the package from source with the make arguments:

cmake \
    -D Python_ROOT_DIR:FILEPATH=/usr \
    -D Python_FIND_STRATEGY=LOCATION \
    -D CMAKE_FIND_FRAMEWORK=NEVER \
    -D CMAKE_PREFIX_PATH=/usr \
    -D CMAKE_INSTALL_PREFIX=/usr \
    -D BOOST_INCLUDE_DIR=/usr/include \
    -D BOOST_LIB_PATH=/usr/lib \
    -D GDAL_INCLUDE_DIR=/usr/include \
    -D GDAL_LIB_PATH=/usr/lib \
    -D HDF5_INCLUDE_DIR=/usr/include \
    -D HDF5_LIB_PATH=/usr/lib \
    -D GSL_INCLUDE_DIR=/usr/include \
    -D GSL_LIB_PATH=/usr/lib \
    -D MUPARSER_INCLUDE_DIR=/usr/include \
    -D MUPARSER_LIB_PATH=/usr/lib \
    -D KEA_INCLUDE_DIR=/usr/include \
    -D KEA_LIB_PATH=/usr/lib \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_SKIP_RPATH=ON
  make

Importing ftplib in python console works without any errors.
However, I found that it returns the same message when I used ftp command in the terminal with the pytest FTP profiles:

Connected to ftp.dlptest.com.
220 Welcome to the DLP Test FTP Server
Name (ftp.dlptest.com:o0331dobe): dlpuser
331 Please specify the password.
Password: 
/usr/sbin/vsftpd: Relink `/lib64/libnss_myhostname.so.2' with `/lib64/librt.so.1' for IFUNC symbol `clock_gettime'
ftp: Login failed.
ftp> bye
530 Please login with USER and PASS.

So the problem might not be the Python issue but something else.

from rsgislib.

dobedobedo avatar dobedobedo commented on June 3, 2024

Hi,
I thought it was because I didn't install vsftpd, but after I installed and enable the service, it still shows the same result:

ftp ftp.dlptest.com                                                                                                                                                                                                                                                           ✔ 
Connected to ftp.dlptest.com.
220 Welcome to the DLP Test FTP Server
Name (ftp.dlptest.com:o0331dobe): dlpuser
331 Please specify the password.
Password: 
/usr/sbin/vsftpd: Relink `/lib64/libnss_myhostname.so.2' with `/lib64/librt.so.1' for IFUNC symbol `clock_gettime'
ftp: Login failed.
Remote system type is Login.
ftp> bye
215 UNIX Type: L8

It feels like a server issue. Could you please also test if it works on your side?

from rsgislib.

petebunting avatar petebunting commented on June 3, 2024

Hi,

Well the error is coming from the vsftpd build on your system and not rsgislib so I guess I would have a couple of questions/comments:

  1. do you need the ftp tools which are in rsgislib? They are just a few python functions for helping to download data from ftp servers so probably not. In which case you can just ignore this error and get on as this error won’t effect you.
  2. have you tried the conda-forge build? That is the easiest way to install rsgislib and might be easier?
  3. Have you googled the error message? From the quick search I just did it sounds like it might even be a error which occurs when there is a firewall issue (I.e., the ftp server can’t be reached). If you really want to check the issue out you might want to try just accessing the test service I’m using here though the terminal ftp client and see what happens. If there is another ftp service which you can access you could change the test to you that server.

from rsgislib.

dobedobedo avatar dobedobedo commented on June 3, 2024

Thanks for the suggestions. I probably don't need the FTP functions so I can probably live with it. I tried the conda build on another Ubuntu machine, but the pytest on ftptool still ended with the same result, so that's why I speculate that might be the FTP server issue, though I couldn't find other public FTP services for testing. I tried disabling my system firewall too but ended with the same result. Tried the ftp command from terminal on both Ubuntu and Manjaro Linux and all got the same result

/usr/sbin/vsftpd: Relink `/lib64/libnss_myhostname.so.2' with `/lib64/librt.so.1' for IFUNC symbol `clock_gettime'
ftp: Login failed.
Remote system type is Login.

from rsgislib.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.