[Bioc-devel] Updating to Python 3: Problem with Importlib library

Yuxi Sun y@un11 @end|ng |rom uch|c@go@edu
Thu Oct 1 18:24:02 CEST 2020


I am writing on behalf of the development team for the package seq2pathway.
After updating to python 3 and replacing the deprecated imp library with
importlib library, we encountered the following problem.

Our python code is included in the
file Function_PeakMutationAnnotation_GENCODE_08182020 in the same folder.
When I try to call the file by the following lines:

sink(file.path(tempdir(),name,fsep = .Platform$file.sep))
cat("from importlib.machinery import SourceFileLoader", sep="\n")
cat("'", path, "').load_module()",sep="")

it failed and reported the following error message:

FileNotFoundError: [Errno 2] No such file or directory:

Would you please kindly instruct me how to fix this error?

Thanks and regards,


	[[alternative HTML version deleted]]

More information about the Bioc-devel mailing list