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

error chdir to python site-package pyarrow #558

Open
fish8 opened this issue Aug 12, 2024 · 0 comments
Open

error chdir to python site-package pyarrow #558

fish8 opened this issue Aug 12, 2024 · 0 comments

Comments

@fish8
Copy link

fish8 commented Aug 12, 2024

when cd to .../site-package/pyarrow which is a python package, powerline_shell keep poping error messages:
Error processing line 1 of /usr/lib/python3/dist-packages/logilab_common-1.8.2-nspkg.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/lib/python3.10/site.py", line 192, in addpackage
exec(line)
File "", line 1, in
File "/home/khalili/anaconda3/envs/gn/lib/python3.11/site-packages/pyarrow/types.py", line 21, in
from pyarrow.lib import (is_boolean_value, # noqa
ModuleNotFoundError: No module named 'pyarrow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/site.py", line 636, in
main()
File "/usr/lib/python3.10/site.py", line 623, in main
known_paths = addsitepackages(known_paths)
File "/usr/lib/python3.10/site.py", line 406, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/lib/python3.10/site.py", line 232, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/python3.10/site.py", line 202, in addpackage
import traceback
File "/usr/lib/python3.10/traceback.py", line 5, in
import linecache
File "/usr/lib/python3.10/linecache.py", line 8, in
import functools
File "/usr/lib/python3.10/functools.py", line 22, in
from types import GenericAlias
File "/home/khalili/anaconda3/envs/gn/lib/python3.11/site-packages/pyarrow/types.py", line 21, in
from pyarrow.lib import (is_boolean_value, # noqa
ModuleNotFoundError: No module named 'pyarrow'

It seems a wrong package is imported from current dir?
blind type cd somewhere else will back to normal.

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

No branches or pull requests

1 participant