question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Failed to run Towhee on Conda

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

>>> from towhee import pipeline
>>> embedding_pipeline = pipeline('towhee/audio-embedding-vggish')
Downloading audio_embedding_vggish.yaml: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.49k/1.49k [00:00<00:00, 280kiB/s]
Downloading README.md: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.53k/1.53k [00:00<00:00, 582kiB/s]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/gexi/miniconda3/envs/towhee_env/lib/python3.6/site-packages/towhee/__init__.py", line 114, in pipeline
    pipeline_ = Pipeline(str(yaml_path))
  File "/Users/gexi/miniconda3/envs/towhee_env/lib/python3.6/site-packages/towhee/engine/pipeline.py", line 41, in __init__
    self._graph_repr = GraphRepr.from_yaml(graph_repr)
  File "/Users/gexi/miniconda3/envs/towhee_env/lib/python3.6/site-packages/towhee/dag/graph_repr.py", line 229, in from_yaml
    return GraphRepr.from_dict(info)
  File "/Users/gexi/miniconda3/envs/towhee_env/lib/python3.6/site-packages/towhee/dag/graph_repr.py", line 183, in from_dict
    if not BaseRepr.is_valid(info, {'name', 'operators', 'dataframes'}):
  File "/Users/gexi/miniconda3/envs/towhee_env/lib/python3.6/site-packages/towhee/dag/base_repr.py", line 55, in is_valid
    info_keys = set(info.keys())
AttributeError: 'str' object has no attribute 'keys'

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93): 0.4.0
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
junjiejiangjjjcommented, Jan 6, 2022

In conda, we didn’t publish 0.4.0, we will fix it soon.

0reactions
stale[bot]commented, Feb 20, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues Β· towhee-io/towhee - GitHub
Towhee is a framework that is dedicated to making neural data processing pipelines ... [Bug]: Running operator failed for reporting lots of modules...
Read more >
conda returns 'Solving environment: failed' - Stack Overflow
I use it regularly since years but lately, since I installed the python module scp (with the command conda install scp , I...
Read more >
MCCCS Towhee Activity - SourceForge
Hi, While installing towhee, I received an error 127 while giving a command make towhee. Could you please help me with resolving the...
Read more >
runtimeerror: pytorchstreamreader failed reading zip archive ...
hi, when I run 'python main.py', there is a bug"RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory". so i justΒ ...
Read more >
UoY - River Thames Conditions
Pacar 5 langkah koplo, Hurby luv bug producer, Oliveto dun laoghaire closed, ... Rosamel araya, Pv3 condo for rent, Ph 101 sdsu, Minecraft...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found