Curve icon indicating copy to clipboard operation
Curve copied to clipboard

When the WINDOWS version will release?

Open linjinjin123 opened this issue 6 years ago • 12 comments

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?

linjinjin123 avatar Aug 16 '18 02:08 linjinjin123

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.

minorcong avatar Aug 16 '18 03:08 minorcong

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

linjinjin123 avatar Aug 16 '18 11:08 linjinjin123

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.

minorcong avatar Aug 16 '18 11:08 minorcong

  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 ?

linjinjin123 avatar Aug 17 '18 01:08 linjinjin123

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.

minorcong avatar Aug 17 '18 03:08 minorcong

  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.

linjinjin123 avatar Aug 17 '18 05:08 linjinjin123

Sorry that I can't help you as the functions are unknown. Maybe some public data set can help you, https://github.com/baidu/Curve/issues/35 So, what's your scene? ╮(╯_╰)╭

minorcong avatar Aug 17 '18 06:08 minorcong

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)

linjinjin123 avatar Aug 17 '18 07:08 linjinjin123

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

minorcong avatar Aug 17 '18 07:08 minorcong

eg. https://github.com/numenta/NAB/blob/master/data/artificialWithAnomaly/art_daily_nojump.csv

minorcong avatar Aug 17 '18 07:08 minorcong

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

linjinjin123 avatar Aug 17 '18 08:08 linjinjin123

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

minorcong avatar Aug 20 '18 06:08 minorcong