Python 属性错误:';名称空间';对象没有属性';tempdir';

Python 属性错误:';名称空间';对象没有属性';tempdir';,python,Python,我正在使用macs2,这是一个基于python的工具。我使用了这个命令: macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.01 --outdir peakCall macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.

我正在使用macs2,这是一个基于python的工具。我使用了这个命令:

macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.01 --outdir  peakCall
macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.01 --outdir  /peakCall
但给出了这个错误:

AttributeError: 'Namespace' object has no attribute 'tempdir'
Output directory (/peakCall) could not be created. Terminating program.
如果我尝试此命令:

macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.01 --outdir  peakCall
macs2 callpeak -t 866992_part.bam -c 866991_part.bam -f BAM --nomodel -g hs -n example -B -q 0.01 --outdir  /peakCall
它将给出以下错误:

AttributeError: 'Namespace' object has no attribute 'tempdir'
Output directory (/peakCall) could not be created. Terminating program.

您知道如何解决此问题吗?

您的程序有权在工作目录中创建目录吗?它实际上创建但为空,并给出此错误您需要将
--tempdir
传递到命令行。然后它给出此错误macs2:错误:无法识别的参数:--tempdir/file