You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is installed without issues, but running the code results in an error due to the shared object file (libsearch_engine.so) not being copied during the build process. This causes an ImportError when attempting to use the library.
Expected Behavior: The .so file should be included in the installation process so the library functions properly.
Actual Behavior: The .so file is missing, leading to runtime errors.
Steps to Reproduce
Clone the repository and install the library using pip install . or a similar command.
Run a script that imports the library, e.g., from search_engine_cpp.crawler import Crawler.
Observe the ImportError caused by the missing .so file.
Expected Behavior
The shared object file (libsearch_engine.so) should be copied to the appropriate directory during the build process, allowing the library to function without manual intervention.
Actual Behavior
The following error is encountered when running the library:
Traceback (most recent call last):
File "/home/pedro/projects/teste_search_engine/main.py", line 3, in <module>
from search_engine_cpp.crawler import Crawler
File "/home/pedro/projects/teste_search_engine/venv/lib/python3.13/site-packages/search_engine_cpp/crawler.py", line 2, in <module>
from _page_rank import PyGraph
ImportError: libsearch_engine.so: cannot open shared object file: No such file or directory
Manually copying the .so file resolves the issue temporarily.
Environment
Compiler: GCC
Compiler Version: 11.3.0
Operating System: Ubuntu 22.04
C++ Standard: C++20
Logs or Screenshots
Error message:
ImportError: libsearch_engine.so: cannot open shared object file: No such file or directory
Additional Information
The build process should be updated to ensure the .so file is included in the installation directory automatically. This could involve modifying the setup.py file or the relevant build scripts.
The text was updated successfully, but these errors were encountered:
Description
The library is installed without issues, but running the code results in an error due to the shared object file (
libsearch_engine.so
) not being copied during the build process. This causes anImportError
when attempting to use the library.Expected Behavior: The
.so
file should be included in the installation process so the library functions properly.Actual Behavior: The
.so
file is missing, leading to runtime errors.Steps to Reproduce
pip install .
or a similar command.from search_engine_cpp.crawler import Crawler
.ImportError
caused by the missing.so
file.Expected Behavior
The shared object file (
libsearch_engine.so
) should be copied to the appropriate directory during the build process, allowing the library to function without manual intervention.Actual Behavior
The following error is encountered when running the library:
Manually copying the
.so
file resolves the issue temporarily.Environment
Logs or Screenshots
Error message:
Additional Information
The build process should be updated to ensure the
.so
file is included in the installation directory automatically. This could involve modifying thesetup.py
file or the relevant build scripts.The text was updated successfully, but these errors were encountered: