Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

When the WINDOWS version will release? #56

Open
linjinjin123 opened this issue Aug 16, 2018 · 12 comments
Open

When the WINDOWS version will release? #56

linjinjin123 opened this issue Aug 16, 2018 · 12 comments

Comments

@linjinjin123
Copy link

Hi, I am interested in your project. But it only can run on Linux os. I really want to know when the windows version will release?

@minorcong
Copy link
Collaborator

Hello, I'm following up other enhancement, the compatibility with python3, async calculate and so on. There is no plan for the compatibility with Windows in the next weeks.
Actually, it's proven that the key code can run on windows7 with python2.7.14. If you are a developer, you may run ./api/profile.py directly.
Welcome to add a patch for the compatibility with Windows.

@linjinjin123
Copy link
Author

uwsgi is not friendly for windows user. If curve is just used offline, it would be better to remove uwsgi and remain the main source code of the website

@minorcong
Copy link
Collaborator

minorcong commented Aug 16, 2018

Offline support is not complete yet. The default http server in flask(not uwsgi) is recommended. You may run ./api/profile.py directly.
Unfortunately, extensions of Curve has been deployed in plural production environments. We will take into the windows environment, but we can't just follow this. By the way, the authorization of Windows Server is expensive.
Or create a pull request for windows release? As the source code is open.

@linjinjin123
Copy link
Author

  1. run the following command in the root directory
    swagger_py_codegen --ui --spec -s doc/web_api.yaml api -p curve
  2. create a directory named "log" in "api" directory to skip the following error
    image
  3. comment out the uwsgi code in profile.py
    image
  4. run "python profile.py", then the server is activated
    image
    5.But got 404. It seems that there are no html file in the "web" directory. I think maybe need other command to generate these html files ?

@minorcong
Copy link
Collaborator

Maybe 'npm install' and 'npm build' in control.sh Line 71 to Line 80. If you find some error in npm building, please ask @cuiy245 for help.

@linjinjin123
Copy link
Author

linjinjin123 commented Aug 17, 2018

  1. run "npm install" in the "web" directory
  2. run "npm run build" in the "web" directory, then it will generate a directory named "build" and contain some files.
  3. move all the files in the "build" directory to /api/curve/web/
    image
  4. run "python profile.py" in the "api" directory (some changes have to do which mentioned in my last comment)
  5. Thanks god ! It works ! But I don't have data for now, so I can't test whether it runs as expected
    image

PS: It's inconvenient for users to prepare their data when they want to try Curve as soon as possible. I highly recommend to add some demo data in this project, so that users can get started quickly.

Hope that you could add some demo data then I can test some functions of Curve which run on my Windows 10 OS. Thanks a lot.

@minorcong
Copy link
Collaborator

Sorry that I can't help you as the functions are unknown. Maybe some public data set can help you, #35
So, what's your scene? ╮(╯_╰)╭

@linjinjin123
Copy link
Author

The format of public data may not be the same as the input of Curve ? (I haven't try it).
I only want to have a demo data which can import to Curve without any changes(the format is the same as the input) and show the data for me immediately. So that I could play Curve to try some features on the website(zoom in/zoom out/tag a point and something like that).
(The functions which I mentioned above mean features, not the functions of code)

@minorcong
Copy link
Collaborator

The format of NAB is a legal subset of Curve's, you can import to Curve without change.

@minorcong
Copy link
Collaborator

@linjinjin123
Copy link
Author

Still can't upload the data.

  1. I found an error on the console of browser
    image
  2. When I upload a file, got the following error
    image
    image
  3. I found the urls in the flask code seem wrong:
    image

@minorcong
Copy link
Collaborator

Maybe another error. I have received the report but wasn't able to replicate the problem and was investigating.

More details: 'v1' is prefix for the blueprint. https://github.com/baidu/Curve/blob/master/api/curve/v1/__init__.py#L38

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

No branches or pull requests

2 participants