ofajardo/pyreadr

ModuleNotFoundError: No module named 'pyreadr.librdata'

Mayank0512 opened this issue · 16 comments

On doing import pyreadr the module should get imported but it gives the following error:-
ModuleNotFoundError: No module named 'pyreadr.librdata'

please take a look to #72

please take a look to #72

I am facing this on a red hat based server and its not a DLL issue i think
The issue in #72 is similar but different
Could you please look into my issue
Thank you

that's why I ask users to fill in the issue template saying what is their setup ...

OK, if you do pyreadr.__file__, where does that point to? is librdataxx.so there? My first guess is you have another module pyreadr that is conflicting.

hmm, the code should be like this, can you please try again:

import pyreadr
print(pyreadr.__file__)

hmm, the code should be like this, can you please try again:

import pyreadr
print(pyreadr.__file__)

So i am getting error in importing itself and hence the name error...the module cant be imported...its installed successfully but cant be imported due to the above error

ok got it, and if you do ls in the directory where the package pyreadr is, what do you get?

ok got it, and if you do ls in the directory where the package pyreadr is, what do you get?

You mean the command is in?...i doubt such a command is there

no, I mean go to the command line (bash) and do ls. Or if you have a graphical environment navigate to the directiory and take a look.

no, I mean go to the command line (bash) and do ls. Or if you have a graphical environment navigate to the directiory and take a look.

So i saw the packages installed in my directory and I can see pyreadr 0.4.4 there

good, and what files do you have inside the pyreadr directory?

good, and what files do you have inside the pyreadr directory?

I will check that in a while and get back...actually am on my mobile and i cant really do tgat on here

good, and what files do you have inside the pyreadr directory?

I will check that in a while and get back...actually am on my mobile and i cant really do tgat on here

Thank you for your support

good, and what files do you have inside the pyreadr directory?

Screenshot_20220208-213343_Chrome

ok, the so file is there, are you using python 3.6? If yes, then my guess is that the multilinux wheel is for some reason not working well for your system. If that would be the reason, then you need to build from source.

ok, the so file is there, are you using python 3.6? If yes, then my guess is that the multilinux wheel is for some reason not working well for your system. If that would be the reason, then you need to build from source.

I have Python 3.6 in the server and so thats what I am using.
Okay then I think I need to build from source

closing the issue after more than one month of inactivity, assuming it was solved by building from source.