[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


Hi,

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("SourceFileLoader('Function_PeakMutationAnnotation_GENCODE_08182020',")
cat("'", path, "').load_module()",sep="")

it failed and reported the following error message:

FileNotFoundError: [Errno 2] No such file or directory:
'/private/var/folders/7d/jtfhkky940n_83bv32nyv_bm0000gn/T/RtmpZS8eqz/Rinst4fbc14010ad1/seq2pathway//scripts/Function_PeakMutationAnnotation_GENCODE_08182020.py'


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


Thanks and regards,

Jennifer

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list