Unable to import using Python provided by Conda
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 136
- Avg merge
- 14m
- Merged PRs (30d)
- 2
Description
```
$ which python3
/Users/lennard/miniconda3/bin/python3
$ python3
>>> from out import hi
Traceback (most recent call last):
File "", line 1, in
File "/Users/lennard/PycharmProjects/hi/out/hi.py", line 17, in
from . import _hi
ImportError: cannot import name '_hi' from 'out' (/Users/lennard/PycharmProjects/hi/out/__init__.py)
$ conda deactivate
$ which python3
/usr/bin/python3
$ python3
>>> from out import hi
>>> (works)
```
I've used /usr/bin/python3 to compile... cause if I compile with Conda Python3, I also get segmentation fault https://github.com/go-python/gopy/issues/314
I kinda sucks that I can't import the package into Conda / Jupyter Notebook... cause Jupyter Notebook is, where I do data science...
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the import failure with the Conda-provided Python, then compare it with the working /usr/bin/python3 case. Inspect the generated out/hi.py and the related compilation path, using issue #314 for the reported segmentation fault; done means the generated package imports successfully in Conda or Jupyter without that failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100