Importing issue under Python 2.7
- Dominant language
- C++
- Stars
- 3.4k
- Forks
- 701
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have run "pip install dynet" and it is successfully installed. However, when I try to import the module it returns as follows:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/zhanghao/MscProject/open-sesame-master/sesame/targetid.py", line 8, in
from dynet import *
File "build/bdist.linux-x86_64/egg/_dynet.py", line 7, in
File "build/bdist.linux-x86_64/egg/_dynet.py", line 6, in __bootstrap__
ImportError: libdynet.so: cannot open shared object file: No such file or directory
Could you please help me to solve this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported `pip install dynet` followed by `from dynet import *` under Python 2.7, using the traceback as the starting point. Inspect the generated `_dynet.py` and the availability of `libdynet.so`; the issue is resolved when the import succeeds without the shared-library error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100