Giter Site home page Giter Site logo

Comments (12)

sahlberg avatar sahlberg commented on June 17, 2024

Hi,

You need to have the libnfs library installed and its header files.
https://github.com/sahlberg/libnfs

libnfs and libnfs-dev should be available on most distros, so you should
be able to install it via yum.
I don;t know the exact name of the package on Fedora though.

Otherwise you could also just install libnfs from sources from
https://github.com/sahlberg/libnfs
Make sure you run configure as :
./configure --prefix=/usr when building so that it will install the library
and headers in the right place.

On Tue, Apr 21, 2015 at 8:32 AM, Rick [email protected] wrote:

Hi, sahlberg

I used the following steps to install this python library but failed the
installation. Would you mind shedding me some light on this? Any advice is
highly appreciated.

  1. $ git clone https://github.com/sahlberg/libnfs-python.git
  2. $ cd libnfs-python
  3. $ sudo python setup.py install

Then, it comes to the following error.

Error message:
libnfs/libnfs_wrap.c:2969:25: fatal error: nfsc/libnfs.h: No such file or
directory
#include
^
compilation terminated.
error: command 'gcc' failed with exit status 1
[fitbranded@localhost libnfs-python]$

It seems to require nfsc/libnfs.h to proceed the compilation.
If I made any step wrong, please let me know.

Thank you.


Reply to this email directly or view it on GitHub
#1.

from libnfs-python.

rickhau avatar rickhau commented on June 17, 2024

Hi, sahlberg

Many thanks for your swift response. I also can not find the libnfs and libnfs-devel packages using yum tool. Then, I tried to build the libnfs but it seems not easy to compile the environment.

$ git clone https://github.com/sahlberg/libnfs.git
$ ./configure
bash: ./configure: No such file or directory

Even I used autoconf or autoreconf to generate the configure file but I still ran into the failure.

$ ./configure
./configure: line 2100: syntax error near unexpected token -Wall' ./configure: line 2100:AM_INIT_AUTOMAKE(-Wall foreign)'
$

Do you have any suggestions?
Thanks.

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

On Wed, Apr 22, 2015 at 8:37 AM, Rick [email protected] wrote:

Hi, sahlberg

Many thanks for your swift response. I also can not find the libnfs and
libnfs-devel packages using yum tool. Then, I tried to build the libnfs but
it seems not easy to compile the environment.

$ git clone https://github.com/sahlberg/libnfs.git
$ ./configure
bash: ./configure: No such file or directory

Libnfs does not ship with a configure script. You need to generate one by
running the ./bootstrap script.
But you probably should not since Fedora does provide both libnfs and
libnfs-devel already.

QEMU and KODI/XBMC all depend on libnfs so these packages are available
through the normal yum repositories.
I do not know the exact name that the Fedora folks use for this package
though.
I think it might be libnfs4 or similar.

Check those packages, they might indicate what the correct name for libnfs
on Fedora is.

Even I used autoconf or autoreconf to generate the configure file but I

still ran into the failure.

$ ./configure
./configure: line 2100: syntax error near unexpected token -Wall'
./configure: line 2100:AM_INIT_AUTOMAKE(-Wall foreign)'
$

Do you have any suggestions?
Thanks.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

This page describes how to compile Kodi for Fedora and contains a
description how they compile libnfs during their build :

http://kodi.wiki/view/HOW-TO:Compile_Kodi_for_Linux_on_Fedora_Red_Hat_Enterprise_Linux_CentOS

On Wed, Apr 22, 2015 at 9:27 AM, ronnie sahlberg [email protected]
wrote:

On Wed, Apr 22, 2015 at 8:37 AM, Rick [email protected] wrote:

Hi, sahlberg

Many thanks for your swift response. I also can not find the libnfs and
libnfs-devel packages using yum tool. Then, I tried to build the libnfs but
it seems not easy to compile the environment.

$ git clone https://github.com/sahlberg/libnfs.git
$ ./configure
bash: ./configure: No such file or directory

Libnfs does not ship with a configure script. You need to generate one by
running the ./bootstrap script.
But you probably should not since Fedora does provide both libnfs and
libnfs-devel already.

QEMU and KODI/XBMC all depend on libnfs so these packages are available
through the normal yum repositories.
I do not know the exact name that the Fedora folks use for this package
though.
I think it might be libnfs4 or similar.

Check those packages, they might indicate what the correct name for
libnfs on Fedora is.

Even I used autoconf or autoreconf to generate the configure file but I

still ran into the failure.

$ ./configure
./configure: line 2100: syntax error near unexpected token -Wall'
./configure: line 2100:AM_INIT_AUTOMAKE(-Wall foreign)'
$

Do you have any suggestions?
Thanks.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

rickhau avatar rickhau commented on June 17, 2024

Thanks, sahlberg.

I can succeed to compile the libnfs library and libnfs-python now.

$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing libnfs.egg-info/PKG-INFO
writing top-level names to libnfs.egg-info/top_level.txt
writing dependency_links to libnfs.egg-info/dependency_links.txt
reading manifest file 'libnfs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'libnfs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/__init__.py -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/_libnfs.so -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/libnfs.py -> build/bdist.linux-x86_64/egg/libnfs
byte-compiling build/bdist.linux-x86_64/egg/libnfs/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/libnfs/libnfs.py to libnfs.pyc
creating stub loader for libnfs/_libnfs.so
byte-compiling build/bdist.linux-x86_64/egg/libnfs/_libnfs.py to _libnfs.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
libnfs.libnfs: module references __file__
creating 'dist/libnfs-1.0_1-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing libnfs-1.0_1-py2.7-linux-x86_64.egg
removing '/usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Extracting libnfs-1.0_1-py2.7-linux-x86_64.egg to /usr/lib64/python2.7/site-packages
libnfs 1.0-1 is already the active version in easy-install.pth

Installed /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Processing dependencies for libnfs==1.0-1
Finished processing dependencies for libnfs==1.0-1
$ 

However, when I want to try the sample code in the README file. It pops up the following error message.

Python 2.7.5 (default, Nov  3 2014, 14:26:24) 
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libnfs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "libnfs/__init__.py", line 17, in <module>
    from libnfs import *
  File "libnfs/libnfs.py", line 28, in <module>
    _libnfs = swig_import_helper()
  File "libnfs/libnfs.py", line 24, in swig_import_helper
    _mod = imp.load_module('_libnfs', fp, pathname, description)
ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64
>>> 

Btw, I noticed that someone has the same issue as well.
https://groups.google.com/forum/#!msg/libnfs-python/L_EImZaFtf8/_o8sKwPkyFUJ

Do you have any suggestions?
Many thanks for your help.

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

ok progress.

I can take a look sometime tomorrow.

On Wed, Apr 22, 2015 at 7:14 PM, Rick [email protected] wrote:

Thanks, sahlberg.

I can succeed to compile the libnfs library and libnfs-python now.

$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing libnfs.egg-info/PKG-INFO
writing top-level names to libnfs.egg-info/top_level.txt
writing dependency_links to libnfs.egg-info/dependency_links.txt
reading manifest file 'libnfs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'libnfs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/init.py -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/_libnfs.so -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/libnfs.py -> build/bdist.linux-x86_64/egg/libnfs
byte-compiling build/bdist.linux-x86_64/egg/libnfs/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/libnfs/libnfs.py to libnfs.pyc
creating stub loader for libnfs/_libnfs.so
byte-compiling build/bdist.linux-x86_64/egg/libnfs/_libnfs.py to _libnfs.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
libnfs.libnfs: module references file
creating 'dist/libnfs-1.0_1-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing libnfs-1.0_1-py2.7-linux-x86_64.egg
removing '/usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Extracting libnfs-1.0_1-py2.7-linux-x86_64.egg to /usr/lib64/python2.7/site-packages
libnfs 1.0-1 is already the active version in easy-install.pth

Installed /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Processing dependencies for libnfs==1.0-1
Finished processing dependencies for libnfs==1.0-1
$

However, when I want to try the sample code in the README file. It pops up
the following error message.

Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libnfs
Traceback (most recent call last):
File "", line 1, in
File "libnfs/init.py", line 17, in
from libnfs import *
File "libnfs/libnfs.py", line 28, in
_libnfs = swig_import_helper()
File "libnfs/libnfs.py", line 24, in swig_import_helper
_mod = imp.load_module('_libnfs', fp, pathname, description)
ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64

Do you have any suggestions?
Many thanks for your help.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

rickhau avatar rickhau commented on June 17, 2024

Thank you, sahlberg.

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64

Older versions of libnfs did not have the nfs_stat64 symbolt.

It seems like you have an old version of libnfs installed that is
lacking this new function.

Can you check that you do not have any old versions of the libnfs
share dlibrary installed and ONLY have the

one that you installed with :

./configure --prefix=/usr

cd .

sudo find . | grep libnfs

should show you what files are installed.

On Wed, Apr 22, 2015 at 7:14 PM, Rick [email protected] wrote:

Thanks, sahlberg.

I can succeed to compile the libnfs library and libnfs-python now.

$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing libnfs.egg-info/PKG-INFO
writing top-level names to libnfs.egg-info/top_level.txt
writing dependency_links to libnfs.egg-info/dependency_links.txt
reading manifest file 'libnfs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'libnfs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/init.py -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/_libnfs.so -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/libnfs.py -> build/bdist.linux-x86_64/egg/libnfs
byte-compiling build/bdist.linux-x86_64/egg/libnfs/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/libnfs/libnfs.py to libnfs.pyc
creating stub loader for libnfs/_libnfs.so
byte-compiling build/bdist.linux-x86_64/egg/libnfs/_libnfs.py to _libnfs.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
libnfs.libnfs: module references file
creating 'dist/libnfs-1.0_1-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing libnfs-1.0_1-py2.7-linux-x86_64.egg
removing '/usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Extracting libnfs-1.0_1-py2.7-linux-x86_64.egg to /usr/lib64/python2.7/site-packages
libnfs 1.0-1 is already the active version in easy-install.pth

Installed /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Processing dependencies for libnfs==1.0-1
Finished processing dependencies for libnfs==1.0-1
$

However, when I want to try the sample code in the README file. It pops up
the following error message.

Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libnfs
Traceback (most recent call last):
File "", line 1, in
File "libnfs/init.py", line 17, in
from libnfs import *
File "libnfs/libnfs.py", line 28, in
_libnfs = swig_import_helper()
File "libnfs/libnfs.py", line 24, in swig_import_helper
_mod = imp.load_module('_libnfs', fp, pathname, description)
ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64

Do you have any suggestions?
Many thanks for your help.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

I have tested with Fedora21.

First install libnfs. Configure it with ./configure --prefix=/usr

Then install libnfs-python

This worked for me.
However, make sure you don't already have an old version of libnfs
installed.
The symbol nfs_stat64 was added in version 1.9.2 that was release only a
year ago,
so it is possible that your distro shipped an older version of the library
and libnfs-python used that version instead.

On Sun, Apr 26, 2015 at 8:22 AM, ronnie sahlberg [email protected]
wrote:

ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64

Older versions of libnfs did not have the nfs_stat64 symbolt.

It seems like you have an old version of libnfs installed that is lacking this new function.

Can you check that you do not have any old versions of the libnfs share dlibrary installed and ONLY have the

one that you installed with :

./configure --prefix=/usr

cd .

sudo find . | grep libnfs

should show you what files are installed.

On Wed, Apr 22, 2015 at 7:14 PM, Rick [email protected] wrote:

Thanks, sahlberg.

I can succeed to compile the libnfs library and libnfs-python now.

$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing libnfs.egg-info/PKG-INFO
writing top-level names to libnfs.egg-info/top_level.txt
writing dependency_links to libnfs.egg-info/dependency_links.txt
reading manifest file 'libnfs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'libnfs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/init.py -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/_libnfs.so -> build/bdist.linux-x86_64/egg/libnfs
copying build/lib.linux-x86_64-2.7/libnfs/libnfs.py -> build/bdist.linux-x86_64/egg/libnfs
byte-compiling build/bdist.linux-x86_64/egg/libnfs/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/libnfs/libnfs.py to libnfs.pyc
creating stub loader for libnfs/_libnfs.so
byte-compiling build/bdist.linux-x86_64/egg/libnfs/_libnfs.py to _libnfs.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying libnfs.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
libnfs.libnfs: module references file
creating 'dist/libnfs-1.0_1-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing libnfs-1.0_1-py2.7-linux-x86_64.egg
removing '/usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Extracting libnfs-1.0_1-py2.7-linux-x86_64.egg to /usr/lib64/python2.7/site-packages
libnfs 1.0-1 is already the active version in easy-install.pth

Installed /usr/lib64/python2.7/site-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg
Processing dependencies for libnfs==1.0-1
Finished processing dependencies for libnfs==1.0-1
$

However, when I want to try the sample code in the README file. It pops
up the following error message.

Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libnfs
Traceback (most recent call last):
File "", line 1, in
File "libnfs/init.py", line 17, in
from libnfs import *
File "libnfs/libnfs.py", line 28, in
_libnfs = swig_import_helper()
File "libnfs/libnfs.py", line 24, in swig_import_helper
_mod = imp.load_module('_libnfs', fp, pathname, description)
ImportError: libnfs/_libnfs.so: undefined symbol: nfs_stat64

Do you have any suggestions?
Many thanks for your help.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

rickhau avatar rickhau commented on June 17, 2024

Thanks, sahlberg. Yes, I had old libnfs-1.3.0 installed on my Fedora 20.

I removed my old libnfs-1.3.0 and re-install libnfs-1.9.7.tar.gz.
I ran into the following error.

Python 2.7.5 (default, Nov  3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libnfs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "libnfs.py", line 28, in <module>
    _libnfs = swig_import_helper()
  File "libnfs.py", line 20, in swig_import_helper
    import _libnfs
ImportError: No module named _libnfs

Then, I compile the libnfs folder and re-run again.
It works now!!! :)

It seems that sudo python setup.py install did not make the modules under libnfs folder causing this error. I am not sure if you have the same issue.

Anyway, thanks and I enjoy this module now!!!
Your help is highly appreciated!!

from libnfs-python.

sahlberg avatar sahlberg commented on June 17, 2024

Hi Rick,

Good to hear it works now for you.
The module is still a bit incomplete, it does not for example provide any
way to easily scan directories etc, but it works for basic file i/o.

It was mainly done to see if there was any interest in pyfilesystem to add
NFS support to their nice wrappers. But there was not much interest :-(

I can not promise to be able to add much new features to libnfs-python but
feel free to ask.
Or even better, send pull requests if you add new cool or useful things to
it.

regards
ronnie sahlberg

On Sun, Apr 26, 2015 at 7:55 PM, Rick [email protected] wrote:

Thanks, sahlberg. Yes, I had old libnfs-1.3.0 installed on my Fedora 20.

I removed my old libnfs-1.3.0 and re-install libnfs-1.9.7.tar.gz.
I ran into the following error.

Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libnfs
Traceback (most recent call last):
File "", line 1, in
File "libnfs.py", line 28, in
_libnfs = swig_import_helper()
File "libnfs.py", line 20, in swig_import_helper
import _libnfs
ImportError: No module named _libnfs

Then, I compile the libnfs folder and re-run again.
It works now!!! :)

It seems that sudo python setup.py install did not make the modules under
libnfs folder causing this error. I am not sure if you have the same issue.

Anyway, thanks and I enjoy this module now!!!
Your help is highly appreciated!!


Reply to this email directly or view it on GitHub
#1 (comment)
.

from libnfs-python.

anian2005 avatar anian2005 commented on June 17, 2024

pip install libnfs fails on mac with the below error

gcc -fno-strict-aliasing -I/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda2/include/python2.7 -c libnfs/libnfs_wrap.c -o build/temp.macosx-10.6-x86_64-2.7/libnfs/libnfs_wrap.o
libnfs/libnfs_wrap.c:2969:10: fatal error: 'nfsc/libnfs.h' file not found
#include <nfsc/libnfs.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-pKcqdD/libnfs/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-OYInwq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-pKcqdD/libnfs/

from libnfs-python.

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.