Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing #41

Open
WangHelin1997 opened this issue Sep 2, 2022 · 10 comments · Fixed by #42
Open

Issue installing #41

WangHelin1997 opened this issue Sep 2, 2022 · 10 comments · Fixed by #42

Comments

@WangHelin1997
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

Please use the above posted commands to get verbose logs.

@WangHelin1997
Copy link
Author

(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
Copy link
Author

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

@csukuangfj
Copy link
Collaborator

@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
Copy link
Author

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

@pzelasko
Copy link

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
Copy link
Collaborator

csukuangfj commented Sep 13, 2022

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
Copy link

It works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants