Skip to content
Back to formatted view

Raw Message

Message-ID: <CAH9XEEH=HTK9+eKcuuiPV-p=POgdZ3FoOc46TF34TQMn4JSKiQ@mail.gmail.com>
Date: 2020-10-01T16:24:02Z
From: Yuxi Sun
Subject: [Bioc-devel] Updating to Python 3: Problem with Importlib library

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]]