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

notebook unable to import dynamic link library(shared object) #6632

Open
walkacross opened this issue Nov 20, 2022 · 4 comments
Open

notebook unable to import dynamic link library(shared object) #6632

walkacross opened this issue Nov 20, 2022 · 4 comments
Labels

Comments

@walkacross
Copy link

hi
I have a shared object(pybindings.so), in terminal/spyder, I can import the shared object

import pybindings

#or from pybindings import xxx

while, the notebook unable to import this module. it raises ModuleNotFoundError error.

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to issues that need triage label Nov 20, 2022
@RRosio
Copy link
Collaborator

RRosio commented Dec 1, 2022

Hi @walkacross, thank you for submitting this issue. Would this import typically work when running it in IPython?

@walkacross
Copy link
Author

Hi @RRosio, thanks for your response.

yes ,it works in IPython, but can not import the shared object in a notebook.

the shared object(xxx.so) is a simple file compiled from pybinding where it provides some simple examples, you can try it.

@RRosio RRosio added bug and removed status:Needs Info status:Needs Triage Applied to issues that need triage labels Dec 8, 2022
@RRosio
Copy link
Collaborator

RRosio commented Dec 8, 2022

Hi @walkacross, thank you for your response. Would you also share what version of Notebook you are using and which package manager you are using?

@walkacross
Copy link
Author

hi @RRosio , the version information is as follows

jupyter notebook --version
6.3.0

python --version
Python 3.8.8

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

No branches or pull requests

2 participants