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
External file loading problem with pdpipe import #103
Labels
Comments
Update: Even when I delete the only piece of my code using See this method: Line 62 in ebd4153
|
This one is working fine import pdpipe
from sys import path
path.append("<path to external folder>/some_external_folder")
import temp This one is raising from sys import path
import pdpipe
path.append("<path to external folder>/some_external_folder")
import temp This is due to the import of the |
import sys
# Hack to keep NLTK's "tokenize" module from colliding with the "tokenize" in
# the Python standard library.
OLD_SYS_PATH = sys.path[:]
sys.path = [p for p in sys.path if p and "nltk" not in str(p)]
import inspect
sys.path = OLD_SYS_PATH https://github.com/nltk/nltk/blob/develop/nltk/decorators.py#L18-L26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #97
Originally posted by Dranikf March 14, 2022
Will start with example. I create
test.py
file in some dir, it may looks like this:In ".../some_external_folder" i have added
temp.py
file, which contains'hello world'
printing. When I try to run first file i have a error:But when i rem
import pdpipe
program starts. What can cause this behavior and how to correct it?The text was updated successfully, but these errors were encountered: