Я пытаюсь собрать Python GitHub-проект с использованием travis-ci
, но он продолжает терпеть неудачу.Я подозреваю, что это как-то связано с совместимостью версий.Тем не менее, я протестировал тот же код на IDE Spyder (librosa==0.7.0, scipy==1.3.1, numpy==1.17.2
), и он работал.Я получаю следующую ошибку:
ImportError: невозможно импортировать имя '_args_from_interpreter_flags'
Я пробовал различные заказы в require.txt , чтобы избежатьПодозреваемый вопрос версии, и даже удалил и переустановил numpy
, но это не решило.
needs.txt:
librosa==0.7.0
scipy==1.3.1
numpy==1.17.2
Полный возврат следующий:
python3 spafe/signal.py
/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/joblib/_multiprocessing_helpers.py:38: UserWarning: cannot import name '_args_from_interpreter_flags'. joblib will operate in serial mode
warnings.warn('%s. joblib will operate in serial mode' % (e,))
Traceback (most recent call last):
File "spafe/signal.py", line 1, in <module>
import scipy
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/scipy/__init__.py", line 62, in <module>
from numpy import show_config as show_numpy_config
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/numpy/core/__init__.py", line 100, in <module>
from . import _internal
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/numpy/core/_internal.py", line 11, in <module>
import platform
File "/opt/python/3.5.6/lib/python3.5/platform.py", line 117, in <module>
import sys, os, re, subprocess
File "/opt/python/3.5.6/lib/python3.5/subprocess.py", line 50, in <module>
import signal
File "/home/travis/build/SuperKogito/spafe/spafe/signal.py", line 2, in <module>
import librosa
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/librosa/__init__.py", line 12, in <module>
from ._cache import cache
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/librosa/_cache.py", line 6, in <module>
from joblib import Memory
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/joblib/__init__.py", line 119, in <module>
from .parallel import Parallel
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/joblib/parallel.py", line 33, in <module>
from .externals import loky
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/joblib/externals/loky/__init__.py", line 6, in <module>
from ._base import Executor, Future
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/joblib/externals/loky/_base.py", line 22, in <module>
from concurrent.futures import wait, as_completed
File "/opt/python/3.5.6/lib/python3.5/concurrent/futures/__init__.py", line 17, in <module>
from concurrent.futures.process import ProcessPoolExecutor
File "/opt/python/3.5.6/lib/python3.5/concurrent/futures/process.py", line 55, in <module>
from multiprocessing.connection import wait
File "/opt/python/3.5.6/lib/python3.5/multiprocessing/connection.py", line 24, in <module>
from . import util
File "/opt/python/3.5.6/lib/python3.5/multiprocessing/util.py", line 17, in <module>
from subprocess import _args_from_interpreter_flags
ImportError: cannot import name '_args_from_interpreter_flags'
The command "python3 spafe/signal.py" exited with 1.
Done. Your build exited with 1.