flaskSaaS icon indicating copy to clipboard operation
flaskSaaS copied to clipboard

Windows

Open Ownmarc opened this issue 5 years ago • 16 comments

Hello,

I am comming from Siraj's video. I would like to get this running, but I am on windows.. What would be the steps equivalant to the "make install && make dev" on windows ?

Thanks

Ownmarc avatar Mar 30 '19 17:03 Ownmarc

I am in the same boat right now. I am installing make for windows following the answer on StackOverflow here

The one that says to install chocolatey and then do choco install make

I just finished installing make and will try to build the project now.

andresberejnoi avatar Mar 30 '19 18:03 andresberejnoi

Been trying the same thing, but it didn't work

Ownmarc avatar Mar 30 '19 20:03 Ownmarc

I managed to install make using that tool. However, when trying to build the source code for the project, I got another error with 'ln' not being available on Windows. 'ln' is the tool for creating symbolic links on Linux. I am looking for replacements or maybe a set of those tools tor Windows.

On Sat, Mar 30, 2019 at 4:55 PM Marc [email protected] wrote:

Been trying the same thing, but it didn't work

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alectrocute/flaskSaaS/issues/3#issuecomment-478288631, or mute the thread https://github.com/notifications/unsubscribe-auth/AQf_oVfVyoucrjK93lEN96SVueGJk8c-ks5vb88_gaJpZM4cT3RK .

andresberejnoi avatar Mar 30 '19 21:03 andresberejnoi

stuck on same problem if you guys find solution please share

snehmehta avatar Apr 03 '19 12:04 snehmehta

I found online that the problem is due to the script not having a shebang line with the python executable path, something like "#!/usr/bin python3" or whatever your path is. I added the line to manage.py and it indeed solved the problem. However, I got a bunch of permission errors of not having the permission level required to run the programs or write log files. I found some solutions online about simply changing permission. After trying them, I could not make any more changes to the folder without sudo. I am not sure what was different, but I simply deleted the repository and cloned it again with git clone and then did the steps in README.md. This time everything worked without me changing anything on the code or permissions.

On Wed, Apr 3, 2019 at 8:16 AM Sneh Mehta [email protected] wrote:

stuck on same problem if you guys find solution please share

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alectrocute/flaskSaaS/issues/3#issuecomment-479464030, or mute the thread https://github.com/notifications/unsubscribe-auth/AQf_oUuG5yy1QnPK8pntFbrp_CLRsrlJks5vdJuNgaJpZM4cT3RK .

andresberejnoi avatar Apr 03 '19 13:04 andresberejnoi

Hey thanks for reply but i am confused in

cd app &&  ln -sf  config_dev.py config.py

command what changes i need to do ?

snehmehta avatar Apr 03 '19 16:04 snehmehta

I suggest to remove the config.py file and add it to .gitignore. Since the link will be created when someone run the make dev command successfully.

Also, I think adding instructions for none-linux users would be helpful (since they dont have make on their machines). What do you think?

mostafazh avatar Apr 05 '19 17:04 mostafazh

Hey thanks for reply but i am confused in

cd app &&  ln -sf  config_dev.py config.py

command what changes i need to do ?

Sorry. I thought I was replying to a different thread I opened on Linux. I ended up switching to Ubuntu to run the project.

andresberejnoi avatar Apr 05 '19 19:04 andresberejnoi

I suggest to remove the config.py file and add it to .gitignore. Since the link will be created when someone run the make dev command successfully.

Also, I think adding instructions for none-linux users would be helpful (since they dont have make on their machines). What do you think?

I think instructions for each major OS would be nice to have.

andresberejnoi avatar Apr 05 '19 19:04 andresberejnoi

Removing config.py did that not happening !!

Instructions for major os yup that would be great to have !!!

snehmehta avatar Apr 06 '19 03:04 snehmehta

Someone with the same issue had this issue on Windows. You can find the fix here for now, until we merge a fix for windows on the repo.

mostafazh avatar Apr 09 '19 10:04 mostafazh

Someone with the same issue had this issue on Windows. You can find the fix here for now, until we merge a fix for windows on the repo.

thanks

snehmehta avatar Apr 10 '19 13:04 snehmehta

Just to add was getting below numpy module error while running - python manage.py initdb ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import

To resolve this upgrade your numpy version to latest (worked fine with 1.6)

Darpan9o1 avatar Apr 11 '19 00:04 Darpan9o1

while running this im getting this error

make install && make dev

process_begin: CreateProcess(NULL, basename, ...) failed. cd app && ln -sf config_dev.py config.py 'ln' is not recognized as an internal or external command, operable program or batch file. make: *** [dev] Error 1

help me to solve this

jeevasakthits avatar May 17 '19 16:05 jeevasakthits

@jeevasakthits

  • choco install make (skip if you got already installed)
  • cd into app
  • copy config_dev.py config.py
  • copy config_prod.py config.py

These commands resolved error for me. Its working for me.

Tarandeep97 avatar Jul 25 '19 13:07 Tarandeep97

  • copy config_dev.py config.py
  • copy config_prod.py config.py I used that commands and Windows gave me Exchange config.py <Yes> <No> <All> What to choose?

ImokAAA avatar Aug 03 '19 09:08 ImokAAA