danpovey / lilcom

Small compression utility
Other
33 stars 10 forks source link

Issue installing #41

Open WangHelin1997 opened 2 years ago

WangHelin1997 commented 2 years ago

Do you know how to fix it? Thanks!

(icefall_armory_june22) hwang258@b01:~/codes/icefall/egs/yesno/ASR$ python
Python 3.8.13 (default, Mar 28 2022, 11:38:47)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lilcom
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom/__init__.py", line 2, in <module>
    from .lilcom_interface import compress, decompress, get_shape
  File "/home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom/lilcom_interface.py", line 3, in <module>
    import lilcom_extension
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
csukuangfj commented 2 years ago

Please post all of the installation logs.

If you don't have one, please use the following method to get it:

pip uninstall lilcom
pip install --verbose -U lilcom 2>&1 | tee installationg.log

and post the file installation.log.

WangHelin1997 commented 2 years ago
Using pip 22.1.2 from /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/pip (python 3.8)
Collecting lilcom
  Using cached lilcom-1.2.1-py3-none-any.whl
Requirement already satisfied: numpy<1.23.0 in ./anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages (from lilcom) (1.22.4)
Installing collected packages: lilcom
Successfully installed lilcom-1.2.1

That's it but still now working.

csukuangfj commented 2 years ago

Please use the above posted commands to get verbose logs.

WangHelin1997 commented 2 years ago
(icefall_armory_june22) hwang258@b01:~$ pip uninstall lilcom                                                                                                                                            "c07" 11:51 02-Sep-22
Found existing installation: lilcom 1.2.1
Uninstalling lilcom-1.2.1:
  Would remove:
    /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom-1.2.1.dist-info/*
    /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom/*
    /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom_extension.cpython-38-x86_64-linux-gnu.so
Proceed (Y/n)? Y
  Successfully uninstalled lilcom-1.2.1
(icefall_armory_june22) hwang258@b01:~$ pip install --verbose -U lilcom 2>&1 | tee installationg.log
Using pip 22.1.2 from /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/pip (python 3.8)
Collecting lilcom
  Using cached lilcom-1.2.1-py3-none-any.whl
Requirement already satisfied: numpy<1.23.0 in ./anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages (from lilcom) (1.22.4)
Installing collected packages: lilcom
Successfully installed lilcom-1.2.1
(icefall_armory_june22) hwang258@b01:~$ cat installationg.log
Using pip 22.1.2 from /home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/pip (python 3.8)
Collecting lilcom
  Using cached lilcom-1.2.1-py3-none-any.whl
Requirement already satisfied: numpy<1.23.0 in ./anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages (from lilcom) (1.22.4)
Installing collected packages: lilcom
Successfully installed lilcom-1.2.1

Here is the result but after that, it still does not work.

(icefall_armory_june22) hwang258@b01:~$ python
Python 3.8.13 (default, Mar 28 2022, 11:38:47)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lilcom
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom/__init__.py", line 2, in <module>
    from .lilcom_interface import compress, decompress, get_shape
  File "/home/hwang258/anaconda3/envs/icefall_armory_june22/lib/python3.8/site-packages/lilcom/lilcom_interface.py", line 3, in <module>
    import lilcom_extension
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
WangHelin1997 commented 2 years ago

Hi. I fix it by installing other version of lilcom.

csukuangfj commented 2 years ago

@WangHelin1997 When you have time, would you mind posting the logs for the following commands:

pip uninstall -y lilcom
pip install -U --no-cache-dir lilcom 2>&1 | tee installationg.log
WangHelin1997 commented 2 years ago

Hi, I also install the latest version of lhotse by installing k2 firstly. They may have some connections with each other.

pzelasko commented 2 years ago

I just ran into it too. The issue is likely that when you installed cmake via pip install cmake, then the original cmake package has a namespace conflict with cmake/build_extensions.py in this repo.

csukuangfj commented 2 years ago

I just ran into it too. The issue is likely that when you installed cmake via pip install cmake, then the original cmake package has a namespace conflict with cmake/build_extensions.py in this repo.

@pzelasko Could you try again with the latest lilcom, i.e.,

pip install lilcom==1.3

Or use

pip install --upgrade lilcom
pzelasko commented 2 years ago

It works, thanks!