Git Product home page Git Product logo

Comments (5)

ofajardo avatar ofajardo commented on June 24, 2024

The string is transformed to bytes to be passed to the C library, that detail is not relevant.
You need the file to be in local disk. Remote files or files on mounted remote disks wont work. Pkease check that.

from pyreadr.

ofajardo avatar ofajardo commented on June 24, 2024

Another thing to check: the string must be utf-8 encoded. If it is in another encoding transform it to utf-8. It is described in the docs.

from pyreadr.

gatorxiao avatar gatorxiao commented on June 24, 2024

Hi Otto, thank you for your reply. Unfortunately, I still have the same issue. I run the script within Docker. The script and the Rda file are in the same container, so it is not a remote one. The string is utf-8 encoded by default.

from pyreadr.

ofajardo avatar ofajardo commented on June 24, 2024

strange, I work in Docker containers and it works without issues. Maybe it is the way your volumes are mounted? if you are working on a mounted volume have you tried moving your file to your home directory?
when you get the error, the path printed in bytes, if you translate them to a string, is it correct?

In any case, unfortunately the opening of the file is happening at the C library level, which only accepts local files (home directory in docker works for me), and nothing can be done to change that.

from pyreadr.

ofajardo avatar ofajardo commented on June 24, 2024

closed because lack of activity

from pyreadr.

Related Issues (20)

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.