Skip to content

failed to find module or file: yp #1

@hyer

Description

@hyer

I have installed the version of 0.2.1 with pip, and create a script hello.py with:

import yape as yp

@yp.nodeop
def hello(who="world"):
    print(f"Hello, {who}!")

I run in cmd with yape, but got error:

Traceback (most recent call last):
  File "/usr/local/bin/yape", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.8/site-packages/yape/__main__.py", line 4, in run
    exit(cli.run())
  File "/usr/local/lib/python3.8/site-packages/yape/climodule.py", line 32, in run
    self.__load_yp()
  File "/usr/local/lib/python3.8/site-packages/yape/climodule.py", line 80, in __load_yp
    raise RuntimeError(f'failed to find module or file: {name}')
RuntimeError: failed to find module or file: yp

Env:
MacOS, python3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions