Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'decorator' #124

Open
johndpope opened this issue Nov 14, 2021 · 0 comments
Open

No module named 'decorator' #124

johndpope opened this issue Nov 14, 2021 · 0 comments

Comments

@johndpope
Copy link

johndpope commented Nov 14, 2021

librosa/cache.py", line 35, in wrapper from decorator import FunctionMaker

[(torch) ➜  TransformerTTS git:(main) python predict_tts.py -t "Please, say something."

Traceback (most recent call last):
  File "predict_tts.py", line 7, in <module>
    from data.audio import Audio
  File "/home/jp/Documents/gitWorkspace/TransformerTTS/data/audio.py", line 4, in <module>
    import librosa
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/__init__.py", line 12, in <module>
    from . import core
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/core/__init__.py", line 109, in <module>
    from .time_frequency import *  # pylint: disable=wildcard-import
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/core/time_frequency.py", line 10, in <module>
    from ..util.exceptions import ParameterError
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/util/__init__.py", line 67, in <module>
    from .utils import *  # pylint: disable=wildcard-import
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/util/utils.py", line 111, in <module>
    def valid_audio(y, mono=True):
  File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/librosa/cache.py", line 35, in wrapper
    from decorator import FunctionMaker](url)

I thought this was specific to problem
librosa/librosa#1160
but I've hardcoded / pinned versions as per suggestions

conda install numba==0.48
 conda install -c conda-forge librosa==0.6.3 

but no joy.
it's possible something is out of date here

librosa/cache.py", line 35, in wrapper
from decorator import FunctionMaker

pip freeze test.txt
WARNING: Could not generate requirement for distribution -andas 1.2.0 (/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages): Parse error at "'-andas=='": Expected W:(abcd...)
absl-py==0.12.0
aiofiles==0.7.0
aiohttp==3.7.4.post0
aiohttp-cors==0.7.0
aioredis==2.0.0
antlr4-python3-runtime==4.8
apex @ file:///home/jp/Documents/gitWorkspace/apex
appdirs==1.4.4
argon2-cffi @ file:///tmp/build/80754af9/argon2-cffi_1613037097816/work
asgiref==3.4.1
astunparse==1.6.3
async-generator @ file:///home/ktietz/src/ci/async_generator_1611927993394/work
async-timeout==3.0.1
attrs @ file:///tmp/build/80754af9/attrs_1620827162558/work
audioread @ file:///home/conda/feedstock_root/build_artifacts/audioread_1636295725821/work
Babel==2.9.1
backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work
bcrypt==3.2.0
beautifulsoup4==4.10.0
best-download==0.0.7
big-sleep==0.8.5
bimpy==0.1.1
black==20.8b1
bleach @ file:///tmp/build/80754af9/bleach_1628110601003/work
blessings==1.7
BLEURT @ https://github.com/google-research/bleurt/archive/b610120347ef22b494b6d69b4316e303f5932516.zip
boto3==1.18.10
botocore==1.21.10
braceexpand==0.1.7
cachetools==4.2.2
certifi==2021.10.8
cffi @ file:///tmp/build/80754af9/cffi_1625807838443/work
chardet==3.0.4
charset-normalizer==2.0.7
chex==0.0.8
clang==5.0
click==7.1.2
clip==1.0
clip-anytorch==2.2.0
clize==4.2.0
clldutils==3.10.0
cloudpickle==1.3.0
cmudict==1.0.2
colorama==0.4.4
colorful==0.5.4
colorlog==6.5.0
configparser==5.0.2
contiguous-params==1.0.0
cryptography==35.0.0
csvw==1.11.0
cupy @ file:///home/jp/Documents/gitWorkspace/cupy
cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work
Cython==0.29.24
dareblopy==0.0.5
DataProperty==0.54.2
datasets==1.2.1
debugpy==1.4.1
decorator==4.4.2
deepspeed==0.5.5
defusedxml @ file:///tmp/build/80754af9/defusedxml_1615228127516/work
dill==0.3.4
dlib==19.22.0
dlinfo==1.2.1
dlutils==0.0.12
dm-haiku @ git+https://github.com/deepmind/dm-haiku@820acb99233905646b4522213fec4646535da234
dm-tree==0.1.6
docker-pycreds==0.4.0
docutils==0.17.1
dyNET38==2.1
easydict==1.9
einops==0.3.0
entrypoints==0.3
fabric==2.6.0
faiss-gpu==1.7.1.post2
fastapi==0.68.1
fastprogress==1.0.0
fastrlock==0.6
ffmpeg-python==0.2.0
filelock==3.0.12
fire==0.4.0
Flask==1.1.4
Flask-Cors==3.0.3
flatbuffers==1.12
fsspec==2021.6.1
ftfy==6.0.3
func-timeout==4.3.5
future==0.18.2
gast==0.4.0
gdown==3.13.0
gin-config==0.5.0
gitdb==4.0.7
GitPython==3.1.18
google-api-core==1.31.3
google-api-python-client==2.17.0
google-auth==1.32.0
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.4
google-cloud-core==1.7.2
google-cloud-storage==1.36.2
google-crc32c==1.3.0
google-pasta==0.2.0
google-resumable-media==1.3.3
googleapis-common-protos==1.53.0
gpustat==0.6.0
grpcio==1.38.1
h11==0.12.0
h5py==3.1.0
httplib2==0.19.1
huggingface-hub==0.0.8
idna==2.8
imageio==2.9.0
imageio-ffmpeg==0.4.4
imgcat==0.5.0
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1617874469820/work
importlib-resources==5.4.0
iniconfig==1.1.1
inplace-abn==1.1.1.dev2+g938ffd2
insightface==0.2.1
invoke==1.6.0
ipykernel==4.6.1
ipython==7.29.0
ipython-genutils @ file:///tmp/build/80754af9/ipython_genutils_1606773439826/work
ipywidgets @ file:///tmp/build/80754af9/ipywidgets_1610481889018/work
isodate==0.6.0
itsdangerous==0.24
jax==0.2.24
jaxlib==0.1.73+cuda11.cudnn82
jedi @ file:///tmp/build/80754af9/jedi_1611333125342/work
jieba==0.42.1
Jinja2==2.11.3
jmespath==0.10.0
jmp==0.0.2
joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1633637554808/work
jsonlines==2.0.0
jsonschema @ file:///tmp/build/80754af9/jsonschema_1602607155483/work
jupyter==1.0.0
jupyter-client @ file:///tmp/build/80754af9/jupyter_client_1616770841739/work
jupyter-console @ file:///tmp/build/80754af9/jupyter_console_1616615302928/work
jupyter-core @ file:///tmp/build/80754af9/jupyter_core_1612213311222/work
jupyterlab-pygments @ file:///tmp/build/80754af9/jupyterlab_pygments_1601490720602/work
jupyterlab-widgets @ file:///tmp/build/80754af9/jupyterlab_widgets_1609884341231/work
keras==2.6.0
Keras-Preprocessing==1.1.2
kiwisolver @ file:///home/conda/feedstock_root/build_artifacts/kiwisolver_1610099769230/work
kornia==0.5.4
lambda-networks==0.4.0
langcodes==3.2.1
librosa==0.6.3
llvmlite==0.31.0
lm-dataformat==0.0.19
lm-eval @ git+https://github.com/EleutherAI/lm-evaluation-harness/@ff8de12027f6d2d774bf56c3885f75122a37377c
lmdb==1.2.1
lpips==0.1.4
Markdown==3.3.4
MarkupSafe==1.1.1
matplotlib==3.2.2
matplotlib-inline @ file:///tmp/build/80754af9/matplotlib-inline_1628242447089/work
mbstrdecoder==1.1.0
mesh-tensorflow==0.1.19
mistune==0.8.4
mkl-fft==1.3.0
mkl-random @ file:///tmp/build/80754af9/mkl_random_1626186064646/work
mkl-service==2.4.0
mock==4.0.3
msgfy==0.2.0
msgpack==1.0.2
multidict==5.1.0
multiprocess==0.70.12.2
mypy-extensions==0.4.3
nagisa==0.2.7
nbclient @ file:///tmp/build/80754af9/nbclient_1614364831625/work
nbconvert @ file:///tmp/build/80754af9/nbconvert_1624479060632/work
nbformat @ file:///tmp/build/80754af9/nbformat_1617383369282/work
nest-asyncio @ file:///tmp/build/80754af9/nest-asyncio_1613680548246/work
networkx==2.5
ninja==1.10.2
nltk==3.6.5
notebook @ file:///tmp/build/80754af9/notebook_1629205607169/work
numba==0.48.0
numexpr==2.7.2
numpy==1.19.5
nvidia-htop==1.0.5
nvidia-ml-py3==7.352.0
oauth2client==4.1.3
oauthlib==3.1.1
od==1.0
omegaconf==2.1.0
onnx==1.9.0
onnxruntime==1.8.0
openai==0.6.4
opencensus==0.8.0
opencensus-context==0.1.2
opencv-python==4.5.1.48
opt-einsum==3.3.0
optax==0.0.6
p-tqdm==1.3.3
packaging @ file:///tmp/build/80754af9/packaging_1625611678980/work
pandas==1.3.4
pandocfilters @ file:///tmp/build/80754af9/pandocfilters_1605120460739/work
paramiko==2.8.0
parso @ file:///tmp/build/80754af9/parso_1617223946239/work
pathlib2==2.3.6
pathos==0.2.8
pathspec==0.9.0
pathtools==0.1.2
pathvalidate==2.5.0
pathy==0.6.1
perlin-numpy @ git+https://github.com/pvigier/perlin-numpy@6f077f811f5708e504732c26dee8f2015b95da0c
pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
phonemizer==2.2.2
pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work
Pillow==8.2.0
pip-autoremove==0.9.1
pluggy==0.13.1
pooch==1.5.2
portalocker==2.3.2
portpicker==1.2.0
pox==0.3.0
ppft==1.6.6.4
proglog==0.1.9
prometheus-client @ file:///tmp/build/80754af9/prometheus_client_1623189609245/work
promise==2.3
prompt-toolkit==3.0.22
pronouncing==0.2.0
protobuf==3.17.3
psutil==5.8.0
ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
py==1.11.0
py-spy==0.3.10
pyarrow==6.0.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybind11==2.6.2
pycountry==20.7.3
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
pydantic==1.8.2
pyDeprecate==0.3.1
PyDrive==1.3.1
pydub==0.25.1
Pygments @ file:///tmp/build/80754af9/pygments_1629234116488/work
pylocron==0.1.4a0+3ce1b64
PyNaCl==1.4.0
pyngrok==5.1.0
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
pyrsistent==0.18.0
PySocks==1.7.1
pytablewriter==0.58.0
pytest==6.2.3
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-multipart==0.0.5
pytorch-lightning==1.5.1
pytorch-pretrained-biggan==0.1.1
pytorch-ranger==0.1.1
pytz==2020.5
PyWavelets==1.1.1
pyworld==0.3.0
PyYAML==5.4.1
pyzmq @ file:///tmp/build/80754af9/pyzmq_1628276010766/work
qtconsole @ file:///tmp/build/80754af9/qtconsole_1623278325812/work
QtPy==1.9.0
ray==1.4.1
redis==3.5.3
regex==2021.11.2
rehash==1.0.0
requests==2.25.1
requests-oauthlib==1.3.0
resampy==0.2.2
rfc3986==1.5.0
rouge-score==0.0.4
rsa==4.7.2
ruamel.yaml==0.17.17
ruamel.yaml.clib==0.2.6
s3transfer==0.5.0
sacrebleu==1.5.0
sacremoses==0.0.45
scikit-image==0.18.1
scikit-learn @ file:///tmp/build/80754af9/scikit-learn_1635175459052/work
scikit-video==1.1.11
scipy @ file:///tmp/build/80754af9/scipy_1618855647378/work
segments==2.2.0
Send2Trash @ file:///tmp/build/80754af9/send2trash_1607525499227/work
sentencepiece==0.1.91
sentry-sdk==1.3.0
shortuuid==1.0.1
sigtools==2.0.2
simplegeneric==0.8.1
simplejson==3.17.3
sip==4.19.13
six==1.15.0
sklearn==0.0
smart-open==5.2.1
smmap==4.0.0
SoundFile==0.10.3.post1
soupsieve==2.3
sqlitedict==1.6.0
starlette==0.14.2
subprocess32==3.5.4
t5==0.7.1
tabledata==1.3.0
tabulate==0.8.9
taming-transformers-rom1504==0.0.6
tcolorpy==0.1.1
tensorboard==2.6.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.0
tensorboardX==1.8
tensorflow==2.6.2
tensorflow-datasets==4.4.0
tensorflow-estimator==2.6.0
tensorflow-hub==0.12.0
tensorflow-metadata==1.4.0
tensorflow-text==2.6.0
termcolor==1.1.0
terminado==0.10.1
testpath @ file:///tmp/build/80754af9/testpath_1624638946665/work
tf-slim==1.1.0
tfds-nightly==4.4.0.dev202111060106
threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1633102299089/work
tifffile==2020.12.8
tokenizers==0.10.3
toml==0.10.2
toolz==0.11.2
torch==1.9.0+cu111
torch-optimizer==0.1.0
torch-utils==0.1.2
torchaudio==0.9.0
torchmetrics==0.4.1
torchsummary==1.5.1
torchsummaryX==1.3.0
torchvision==0.10.0+cu111
tornado==4.5.3
tqdm==4.62.3
tqdm-multiprocess==0.0.11
traitlets @ file:///home/ktietz/src/ci/traitlets_1611929699868/work
transformers @ git+https://github.com/finetuneanon/transformers@ab0a7ee57005ce9b1dafa58c020cffb0fd2d2c9f
triton==1.1.1
typed-ast==1.4.3
typepy==1.3.0
typer==0.4.0
typing-extensions==3.7.4.3
ujson==4.2.0
uritemplate==3.0.1
urllib3==1.24.3
uvicorn==0.15.0
wandb==0.12.0
wavenet-vocoder==0.1.1
wcwidth @ file:///tmp/build/80754af9/wcwidth_1593447189090/work
webencodings==0.5.1
webrtcvad==2.0.10
Werkzeug==0.16.0
widgetsnbextension==3.5.1
wordfreq==2.5.1
wrapt==1.12.1
xxhash==2.0.2
yacs==0.1.8
yarl==1.6.3
zipp @ file:///tmp/build/80754af9/zipp_1625570634446/work
zstandard==0.15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant