Replies: 1 comment 1 reply
-
That looks like an issue with the filesystem permissions for the directory to which your computer has installed the library. Do you encounter a similar error when trying to import other third-party modules installed via |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have installed pdfplumber using pip, but when I try to import it in my IDE it yields the following error. This error persists in other IDEs.
import pdfplumber
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 2, in
import pdfplumber
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 936, in exec_module
File "", line 1073, in get_code
File "", line 1130, in get_data
PermissionError: [Errno 1] Operation not permitted: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pdfplumber/init.py'
Has anyone else encountered this or know a fix?
Beta Was this translation helpful? Give feedback.
All reactions