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

Starting the server #16

Closed
17341 opened this issue Apr 25, 2021 · 3 comments
Closed

Starting the server #16

17341 opened this issue Apr 25, 2021 · 3 comments
Labels
support Usage or installation support is requested

Comments

@17341
Copy link

17341 commented Apr 25, 2021

Hello,

I tried to run the basic function,

  from pydantic import BaseModel
  
  class Input(BaseModel):
      message: str
  
  class Output(BaseModel):
      message: str
  
  def hello_world(input: Input) -> Output:
      """Returns the `message` of the input data."""
      return Output(message=input.message)

and got this error: 'PYTHONPATH' is not recognized as an internal command or external, an executable program or a batch file.

@17341 17341 added the support Usage or installation support is requested label Apr 25, 2021
@17341 17341 closed this as completed Apr 25, 2021
@17341 17341 reopened this Apr 25, 2021
@raethlein
Copy link
Member

raethlein commented Apr 26, 2021

Hey @17341 , the PYTHONPATH variable is used at this line. What OS are you using? If you use a Windows machine, I guess that the referenced line might cause the problem as the : probably should be a ; for the concatentation.

@adegard
Copy link

adegard commented Apr 27, 2021

Hello,
I have the same issue trying to launch text generator example:
PS C:\Users\degar\opyrator\examples\generate_text> opyrator launch-ui app:generate_text --port 8051
'PYTHONPATH' is not recognized as an internal or external command,
operable program or batch file.

I'm on Windows 10

@raethlein
Copy link
Member

The error on Windows machines should be fixed in the new version (pip install --upgrade opyrator)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Usage or installation support is requested
Projects
None yet
Development

No branches or pull requests

3 participants