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

SanicException Error Encountered When Running WAF #7

Open
silver46 opened this issue Mar 13, 2024 · 1 comment
Open

SanicException Error Encountered When Running WAF #7

silver46 opened this issue Mar 13, 2024 · 1 comment

Comments

@silver46
Copy link

Hi,
during the installation of WAF from the GitHub repository, I encountered an issue. The installation was successful; however, when I attempted to execute the waf command, the following exception was thrown:

sanic.exceptions.SanicException: Sanic instance named 'waf_brain.service.make_web_app' uses an invalid format. Names must begin with a character and may only contain alphanumeric characters, _, or -.

This exception prevents WAF from starting correctly. I would like assistance on how to resolve this issue. What are the possible solutions to fix this exception and get WAF running smoothly?

@imhamzasajjad
Copy link

imhamzasajjad commented Jul 30, 2024

HI,
To solve this error, you can update the requirement.txt file because the latest version of Sanic causes this issue. Bellow can be the suitable version for each dependency.

  1. h5py==3.10.0
  2. keras==2.14.0
  3. sanic==20.3.0
  4. aiohttp==3.8.6
  5. tensorflow==2.14.0

After that, if you see an error because of the numpy, you must add numpy<2.0.0 in the requirement.txt file.

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

2 participants