Re: [mezzanine-users] deploying Mezzanine to a VPS
Thanx for all the help Eduardo, I have done the deployment, also configured the DNS server and domain registration. The command fab all gets completed with no error. If I enter the server's IP in the browser it shows that nginx is running, but when I enter the domain I get the: ERR_EMPTY_RESPONSE, The blog runs locally with no problem, what am I missing? supervisorctl update -> is the last command executed by fabric On Friday, August 17, 2018 at 9:47:58 PM UTC+4:30, Eduardo Rivas wrote: > > Fabric is compatible with Python 2 only. > > Try pip install fabric3 > > On Fri, Aug 17, 2018, 11:13 AM Amir <7xm...@gmail.com > > wrote: > >> *I did, version Fabric==1.14.0 is now installed. Now that I issue fab >> secure, I get:* >> >> Traceback (most recent call last): >>> >>> File "/home/amir/blogenv/bin/fab", line 7, in >>> >>> from fabric.main import main >>> >>> File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>>> line 13, in >>> >>> from operator import isMappingType >>> >>> ImportError: cannot import name 'isMappingType' >>> >>> >> On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: >>> >>> Try using Fabric version 1: pip install -U “fabric<2” >>> >>> >>> >>> *From: *Kenneth L Bolton >>> *Sent: *Friday, August 17, 2018 10:42 AM >>> *To: *mezzani...@googlegroups.com >>> *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS >>> >>> >>> >>> >>> https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ >>> >>> >>> >>> Amir <7xm...@gmail.com> writes: >>> >>> >>> >>> > *So I am finally done with the development, now I want to >>> >>> > deploy. * >>> >>> > *I have followed the instruction >>> >>> > in http://mezzanine.jupo.org/docs/deployment.html.* >>> >>> > >>> >>> > *I have configured local_settings.py. Next step says issue this >>> >>> > command: >>> >>> > fab secure * >>> >>> > *I did and I got: Command 'fab' not found, (I guess it must have >>> >>> > been >>> >>> > installed when I installed the mezzanine but it hasn't)* >>> >>> > >>> >>> > *So I installed fabric inside my project with the activated >>> >>> > virtual >>> >>> > environment using this command: pip install fabric* >>> >>> > >>> >>> > *after that again I entered: fab secure, which gives me this >>> >>> > error:* >>> >>> > >>> >>> > Traceback (most recent call last): >>> >>> >> >>> >>> >> File "/home/amir/blogenv/bin/fab", line 11, in >>> >>> >> >>> >>> >> sys.exit(program.run()) >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 324, in run >>> >>> >> >>> >>> >> self.parse_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 408, in parse_collection >>> >>> >> >>> >>> >> self.load_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>> >>> >>> line 73, in load_collection >>> >>> >> >>> >>> >> super(Fab, self).load_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 599, in load_collection >>> >>> >> >>> >>> >> module, parent = loader.load(coll_name) >>> >>> >> >>> >>> >> Fi
Re: [mezzanine-users] deploying Mezzanine to a VPS
I got it. I had to execute: fab all I don't know why the mezzanine document suggests fab deploy. On Fri, Aug 17, 2018 at 10:42 PM Tesla X <7xm...@gmail.com> wrote: > Now I am numerous other error after executing fab deploy > my OS is Debian GNU/Linux 9 (stretch) > > I just purchased a Debian VPS. I thought the fabric takes care of all the > installation. > In the deployment documentation, it does not mention anything about the > server-side setup. > So far after having different errors, I had to install pip3 and > virtualenv for the fab to proceed (Than nowhere in the deployment > documentation was mentioned) > I am now stuck behind this error: > > $ pg_dump -Fc problog > /tmp/last.db -> >> >> >>> [204.12.226.162] out: >> >> [204.12.226.162] out: We trust you have received the usual lecture from >>> the local System >> >> [204.12.226.162] out: Administrator. It usually boils down to these three >>> things: >> >> [204.12.226.162] out: >> >> [204.12.226.162] out: #1) Respect the privacy of others. >> >> [204.12.226.162] out: #2) Think before you type. >> >> [204.12.226.162] out: #3) With great power comes great responsibility. >> >> [204.12.226.162] out: >> >> [204.12.226.162] out: sudo password: >> >> [204.12.226.162] out: pg_dump: [archiver (db)] connection to database >>> "problog" failed: FATAL: database "problog" does not exist >> >> [204.12.226.162] out: >> >> >>> Fatal error: sudo() received nonzero return code 1 while executing! >> >> >>> Requested: pg_dump -Fc problog > /tmp/last.db >> >> Executed: sudo -S -p 'sudo password:' -u "postgres" /bin/bash -l -c "cd >>> / >/dev/null && pg_dump -Fc problog > /tmp/last.db" >> >> >>> Aborting. >> >> >> > > On Fri, Aug 17, 2018 at 10:08 PM Tesla X <7xm...@gmail.com> wrote: > >> It is resolved, thank you Eduardo. >> >> >> On Fri, Aug 17, 2018 at 9:47 PM Eduardo Rivas >> wrote: >> >>> Fabric is compatible with Python 2 only. >>> >>> Try pip install fabric3 >>> >>> On Fri, Aug 17, 2018, 11:13 AM Amir <7xm...@gmail.com> wrote: >>> >>>> *I did, version Fabric==1.14.0 is now installed. Now that I issue fab >>>> secure, I get:* >>>> >>>> Traceback (most recent call last): >>>>> >>>>> File "/home/amir/blogenv/bin/fab", line 7, in >>>>> >>>>> from fabric.main import main >>>>> >>>>> File >>>>>> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", line 13, >>>>>> in >>>>> >>>>> from operator import isMappingType >>>>> >>>>> ImportError: cannot import name 'isMappingType' >>>>> >>>>> >>>> On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: >>>>> >>>>> Try using Fabric version 1: pip install -U “fabric<2” >>>>> >>>>> >>>>> >>>>> *From: *Kenneth L Bolton >>>>> *Sent: *Friday, August 17, 2018 10:42 AM >>>>> *To: *mezzani...@googlegroups.com >>>>> *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS >>>>> >>>>> >>>>> >>>>> >>>>> https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ >>>>> >>>>> >>>>> >>>>> Amir <7xm...@gmail.com> writes: >>>>> >>>>> >>>>> >>>>> > *So I am finally done with the development, now I want to >>>>> >>>>> > deploy. * >>>>> >>>>> > *I have followed the instruction >>>>> >>>>> > in http://mezzanine.jupo.org/docs/deployment.html.* >>>>> >>>>> > >>>>> >>>>> > *I have configured local_settings.py. Next step says issue this >>>>> >>>>> > command: >>>>> >>>>> > fab secure * >>>>> >>>>> > *I did and I got: Command 'fab' not found, (I guess it must have >>>>> >>>>> > been >>>>> >>>>> >
Re: [mezzanine-users] deploying Mezzanine to a VPS
Now I am numerous other error after executing fab deploy my OS is Debian GNU/Linux 9 (stretch) I just purchased a Debian VPS. I thought the fabric takes care of all the installation. In the deployment documentation, it does not mention anything about the server-side setup. So far after having different errors, I had to install pip3 and virtualenv for the fab to proceed (Than nowhere in the deployment documentation was mentioned) I am now stuck behind this error: $ pg_dump -Fc problog > /tmp/last.db -> > > >> [204.12.226.162] out: > > [204.12.226.162] out: We trust you have received the usual lecture from >> the local System > > [204.12.226.162] out: Administrator. It usually boils down to these three >> things: > > [204.12.226.162] out: > > [204.12.226.162] out: #1) Respect the privacy of others. > > [204.12.226.162] out: #2) Think before you type. > > [204.12.226.162] out: #3) With great power comes great responsibility. > > [204.12.226.162] out: > > [204.12.226.162] out: sudo password: > > [204.12.226.162] out: pg_dump: [archiver (db)] connection to database >> "problog" failed: FATAL: database "problog" does not exist > > [204.12.226.162] out: > > >> Fatal error: sudo() received nonzero return code 1 while executing! > > >> Requested: pg_dump -Fc problog > /tmp/last.db > > Executed: sudo -S -p 'sudo password:' -u "postgres" /bin/bash -l -c "cd >> / >/dev/null && pg_dump -Fc problog > /tmp/last.db" > > >> Aborting. > > > On Fri, Aug 17, 2018 at 10:08 PM Tesla X <7xm...@gmail.com> wrote: > It is resolved, thank you Eduardo. > > > On Fri, Aug 17, 2018 at 9:47 PM Eduardo Rivas > wrote: > >> Fabric is compatible with Python 2 only. >> >> Try pip install fabric3 >> >> On Fri, Aug 17, 2018, 11:13 AM Amir <7xm...@gmail.com> wrote: >> >>> *I did, version Fabric==1.14.0 is now installed. Now that I issue fab >>> secure, I get:* >>> >>> Traceback (most recent call last): >>>> >>>> File "/home/amir/blogenv/bin/fab", line 7, in >>>> >>>> from fabric.main import main >>>> >>>> File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>>>> line 13, in >>>> >>>> from operator import isMappingType >>>> >>>> ImportError: cannot import name 'isMappingType' >>>> >>>> >>> On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: >>>> >>>> Try using Fabric version 1: pip install -U “fabric<2” >>>> >>>> >>>> >>>> *From: *Kenneth L Bolton >>>> *Sent: *Friday, August 17, 2018 10:42 AM >>>> *To: *mezzani...@googlegroups.com >>>> *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS >>>> >>>> >>>> >>>> >>>> https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ >>>> >>>> >>>> >>>> Amir <7xm...@gmail.com> writes: >>>> >>>> >>>> >>>> > *So I am finally done with the development, now I want to >>>> >>>> > deploy. * >>>> >>>> > *I have followed the instruction >>>> >>>> > in http://mezzanine.jupo.org/docs/deployment.html.* >>>> >>>> > >>>> >>>> > *I have configured local_settings.py. Next step says issue this >>>> >>>> > command: >>>> >>>> > fab secure * >>>> >>>> > *I did and I got: Command 'fab' not found, (I guess it must have >>>> >>>> > been >>>> >>>> > installed when I installed the mezzanine but it hasn't)* >>>> >>>> > >>>> >>>> > *So I installed fabric inside my project with the activated >>>> >>>> > virtual >>>> >>>> > environment using this command: pip install fabric* >>>> >>>> > >>>> >>>> > *after that again I entered: fab secure, which gives me this >>>> >>>> > error:* >>>> >>>> > >>>> >>>> > Traceback (most recent call last): >>>> >>>> >> >>>> >>>> >>
Re: [mezzanine-users] deploying Mezzanine to a VPS
It is resolved, thank you Eduardo. On Fri, Aug 17, 2018 at 9:47 PM Eduardo Rivas wrote: > Fabric is compatible with Python 2 only. > > Try pip install fabric3 > > On Fri, Aug 17, 2018, 11:13 AM Amir <7xm...@gmail.com> wrote: > >> *I did, version Fabric==1.14.0 is now installed. Now that I issue fab >> secure, I get:* >> >> Traceback (most recent call last): >>> >>> File "/home/amir/blogenv/bin/fab", line 7, in >>> >>> from fabric.main import main >>> >>> File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>>> line 13, in >>> >>> from operator import isMappingType >>> >>> ImportError: cannot import name 'isMappingType' >>> >>> >> On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: >>> >>> Try using Fabric version 1: pip install -U “fabric<2” >>> >>> >>> >>> *From: *Kenneth L Bolton >>> *Sent: *Friday, August 17, 2018 10:42 AM >>> *To: *mezzani...@googlegroups.com >>> *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS >>> >>> >>> >>> >>> https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ >>> >>> >>> >>> Amir <7xm...@gmail.com> writes: >>> >>> >>> >>> > *So I am finally done with the development, now I want to >>> >>> > deploy. * >>> >>> > *I have followed the instruction >>> >>> > in http://mezzanine.jupo.org/docs/deployment.html.* >>> >>> > >>> >>> > *I have configured local_settings.py. Next step says issue this >>> >>> > command: >>> >>> > fab secure * >>> >>> > *I did and I got: Command 'fab' not found, (I guess it must have >>> >>> > been >>> >>> > installed when I installed the mezzanine but it hasn't)* >>> >>> > >>> >>> > *So I installed fabric inside my project with the activated >>> >>> > virtual >>> >>> > environment using this command: pip install fabric* >>> >>> > >>> >>> > *after that again I entered: fab secure, which gives me this >>> >>> > error:* >>> >>> > >>> >>> > Traceback (most recent call last): >>> >>> >> >>> >>> >> File "/home/amir/blogenv/bin/fab", line 11, in >>> >>> >> >>> >>> >> sys.exit(program.run()) >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 324, in run >>> >>> >> >>> >>> >> self.parse_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 408, in parse_collection >>> >>> >> >>> >>> >> self.load_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>> >>> >>> line 73, in load_collection >>> >>> >> >>> >>> >> super(Fab, self).load_collection() >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> >>> >>> line 599, in load_collection >>> >>> >> >>> >>> >> module, parent = loader.load(coll_name) >>> >>> >> >>> >>> >> File >>> >>> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/loader.py", >>> >>> >>> line 76, in load >>> >>> >> >>> >>> >> module = imp.load_module(name, fd, path, desc) >>> >>> >> >>> >>> >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 235, in >>> >>> >
Re: [mezzanine-users] deploying Mezzanine to a VPS
Fabric is compatible with Python 2 only. Try pip install fabric3 On Fri, Aug 17, 2018, 11:13 AM Amir <7xm...@gmail.com> wrote: > *I did, version Fabric==1.14.0 is now installed. Now that I issue fab > secure, I get:* > > Traceback (most recent call last): >> >> File "/home/amir/blogenv/bin/fab", line 7, in >> >> from fabric.main import main >> >> File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>> line 13, in >> >> from operator import isMappingType >> >> ImportError: cannot import name 'isMappingType' >> >> > On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: >> >> Try using Fabric version 1: pip install -U “fabric<2” >> >> >> >> *From: *Kenneth L Bolton >> *Sent: *Friday, August 17, 2018 10:42 AM >> *To: *mezzani...@googlegroups.com >> *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS >> >> >> >> >> https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ >> >> >> >> Amir <7xm...@gmail.com> writes: >> >> >> >> > *So I am finally done with the development, now I want to >> >> > deploy. * >> >> > *I have followed the instruction >> >> > in http://mezzanine.jupo.org/docs/deployment.html.* >> >> > >> >> > *I have configured local_settings.py. Next step says issue this >> >> > command: >> >> > fab secure * >> >> > *I did and I got: Command 'fab' not found, (I guess it must have >> >> > been >> >> > installed when I installed the mezzanine but it hasn't)* >> >> > >> >> > *So I installed fabric inside my project with the activated >> >> > virtual >> >> > environment using this command: pip install fabric* >> >> > >> >> > *after that again I entered: fab secure, which gives me this >> >> > error:* >> >> > >> >> > Traceback (most recent call last): >> >> >> >> >> >> File "/home/amir/blogenv/bin/fab", line 11, in >> >> >> >> >> >> sys.exit(program.run()) >> >> >> >> >> >> File >> >> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >> >> >>> line 324, in run >> >> >> >> >> >> self.parse_collection() >> >> >> >> >> >> File >> >> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >> >> >>> line 408, in parse_collection >> >> >> >> >> >> self.load_collection() >> >> >> >> >> >> File >> >> >> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >> >> >>> line 73, in load_collection >> >> >> >> >> >> super(Fab, self).load_collection() >> >> >> >> >> >> File >> >> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >> >> >>> line 599, in load_collection >> >> >> >> >> >> module, parent = loader.load(coll_name) >> >> >> >> >> >> File >> >> >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/loader.py", >> >> >>> line 76, in load >> >> >> >> >> >> module = imp.load_module(name, fd, path, desc) >> >> >> >> >> >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 235, in >> >> >> load_module >> >> >> >> >> >> return load_source(name, filename, file) >> >> >> >> >> >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 172, in >> >> >> load_source >> >> >> >> >> >> module = _load(spec) >> >> >> >> >> >> File "", line 684, in _load >> >> >> >> >> >> File "", line 665, in >> >> >> _load_unlocked >> >> >> >> >> >> File "", line 678, in >> >> >> exec_module >> >> >> >> >> >> File "", line 219, in >> >> >>> _call_with_frames_removed >> >> >> >> >> >> File "/home/amir/blogenv/problog/fabfile.py", line 16, in >> >> >> >> >> >> >> >> >> from fabric.api import abort, env, cd, prefix, sudo as >> >> >> _sudo, run as >> >> >>> _run, \ >> >> >> >> >> >> ModuleNotFoundError: No module named 'fabric.api' >> >> >> >> >> >> What am I getting wrong here? >> >> >> >> >> >> -- >> >> Ken Bolton >> >> >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> >> To unsubscribe from this group and stop receiving emails from it, send an >> email to mezzanine-use...@googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mezzanine-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] deploying Mezzanine to a VPS
*I did, version Fabric==1.14.0 is now installed. Now that I issue fab secure, I get:* Traceback (most recent call last): > > File "/home/amir/blogenv/bin/fab", line 7, in > > from fabric.main import main > > File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >> line 13, in > > from operator import isMappingType > > ImportError: cannot import name 'isMappingType' > > On Friday, August 17, 2018 at 9:26:04 PM UTC+4:30, Eduardo Rivas wrote: > > Try using Fabric version 1: pip install -U “fabric<2” > > > > *From: *Kenneth L Bolton > *Sent: *Friday, August 17, 2018 10:42 AM > *To: *mezzani...@googlegroups.com > *Subject: *Re: [mezzanine-users] deploying Mezzanine to a VPS > > > > > https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ > > > > Amir <7xm...@gmail.com > writes: > > > > > *So I am finally done with the development, now I want to > > > deploy. * > > > *I have followed the instruction > > > in http://mezzanine.jupo.org/docs/deployment.html.* > > > > > > *I have configured local_settings.py. Next step says issue this > > > command: > > > fab secure * > > > *I did and I got: Command 'fab' not found, (I guess it must have > > > been > > > installed when I installed the mezzanine but it hasn't)* > > > > > > *So I installed fabric inside my project with the activated > > > virtual > > > environment using this command: pip install fabric* > > > > > > *after that again I entered: fab secure, which gives me this > > > error:* > > > > > > Traceback (most recent call last): > > >> > > >> File "/home/amir/blogenv/bin/fab", line 11, in > > >> > > >> sys.exit(program.run()) > > >> > > >> File > > >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", > > >>> line 324, in run > > >> > > >> self.parse_collection() > > >> > > >> File > > >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", > > >>> line 408, in parse_collection > > >> > > >> self.load_collection() > > >> > > >> File > > >> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", > > >>> line 73, in load_collection > > >> > > >> super(Fab, self).load_collection() > > >> > > >> File > > >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", > > >>> line 599, in load_collection > > >> > > >> module, parent = loader.load(coll_name) > > >> > > >> File > > >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/loader.py", > > >>> line 76, in load > > >> > > >> module = imp.load_module(name, fd, path, desc) > > >> > > >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 235, in > > >> load_module > > >> > > >> return load_source(name, filename, file) > > >> > > >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 172, in > > >> load_source > > >> > > >> module = _load(spec) > > >> > > >> File "", line 684, in _load > > >> > > >> File "", line 665, in > > >> _load_unlocked > > >> > > >> File "", line 678, in > > >> exec_module > > >> > > >> File "", line 219, in > > >>> _call_with_frames_removed > > >> > > >> File "/home/amir/blogenv/problog/fabfile.py", line 16, in > > >> > > >> > > >> from fabric.api import abort, env, cd, prefix, sudo as > > >> _sudo, run as > > >>> _run, \ > > >> > > >> ModuleNotFoundError: No module named 'fabric.api' > > >> > > >> What am I getting wrong here? > > > > > > -- > > Ken Bolton > > > > -- > > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > email to mezzanine-use...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [mezzanine-users] deploying Mezzanine to a VPS
Try using Fabric version 1: pip install -U “fabric<2” From: Kenneth L Bolton Sent: Friday, August 17, 2018 10:42 AM To: mezzanine-users@googlegroups.com Subject: Re: [mezzanine-users] deploying Mezzanine to a VPS https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ Amir <7xm...@gmail.com> writes: > *So I am finally done with the development, now I want to > deploy. * > *I have followed the instruction > in http://mezzanine.jupo.org/docs/deployment.html.* > > *I have configured local_settings.py. Next step says issue this > command: > fab secure * > *I did and I got: Command 'fab' not found, (I guess it must have > been > installed when I installed the mezzanine but it hasn't)* > > *So I installed fabric inside my project with the activated > virtual > environment using this command: pip install fabric* > > *after that again I entered: fab secure, which gives me this > error:* > > Traceback (most recent call last): >> >> File "/home/amir/blogenv/bin/fab", line 11, in >> >> sys.exit(program.run()) >> >> File >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> line 324, in run >> >> self.parse_collection() >> >> File >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> line 408, in parse_collection >> >> self.load_collection() >> >> File >> "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", >>> line 73, in load_collection >> >> super(Fab, self).load_collection() >> >> File >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", >>> line 599, in load_collection >> >> module, parent = loader.load(coll_name) >> >> File >> "/home/amir/blogenv/lib/python3.6/site-packages/invoke/loader.py", >>> line 76, in load >> >> module = imp.load_module(name, fd, path, desc) >> >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 235, in >> load_module >> >> return load_source(name, filename, file) >> >> File "/home/amir/blogenv/lib/python3.6/imp.py", line 172, in >> load_source >> >> module = _load(spec) >> >> File "", line 684, in _load >> >> File "", line 665, in >> _load_unlocked >> >> File "", line 678, in >> exec_module >> >> File "", line 219, in >>> _call_with_frames_removed >> >> File "/home/amir/blogenv/problog/fabfile.py", line 16, in >> >> >> from fabric.api import abort, env, cd, prefix, sudo as >> _sudo, run as >>> _run, \ >> >> ModuleNotFoundError: No module named 'fabric.api' >> >> What am I getting wrong here? -- Ken Bolton -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] deploying Mezzanine to a VPS
https://groups.google.com/forum/#!searchin/mezzanine-users/fabric%7Csort:date/mezzanine-users/XZy6BGyr6Bo/zY_nEjmSBAAJ Amir <7xm...@gmail.com> writes: *So I am finally done with the development, now I want to deploy. * *I have followed the instruction in http://mezzanine.jupo.org/docs/deployment.html.* *I have configured local_settings.py. Next step says issue this command: fab secure * *I did and I got: Command 'fab' not found, (I guess it must have been installed when I installed the mezzanine but it hasn't)* *So I installed fabric inside my project with the activated virtual environment using this command: pip install fabric* *after that again I entered: fab secure, which gives me this error:* Traceback (most recent call last): File "/home/amir/blogenv/bin/fab", line 11, in sys.exit(program.run()) File "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", line 324, in run self.parse_collection() File "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", line 408, in parse_collection self.load_collection() File "/home/amir/blogenv/lib/python3.6/site-packages/fabric/main.py", line 73, in load_collection super(Fab, self).load_collection() File "/home/amir/blogenv/lib/python3.6/site-packages/invoke/program.py", line 599, in load_collection module, parent = loader.load(coll_name) File "/home/amir/blogenv/lib/python3.6/site-packages/invoke/loader.py", line 76, in load module = imp.load_module(name, fd, path, desc) File "/home/amir/blogenv/lib/python3.6/imp.py", line 235, in load_module return load_source(name, filename, file) File "/home/amir/blogenv/lib/python3.6/imp.py", line 172, in load_source module = _load(spec) File "", line 684, in _load File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/home/amir/blogenv/problog/fabfile.py", line 16, in from fabric.api import abort, env, cd, prefix, sudo as _sudo, run as _run, \ ModuleNotFoundError: No module named 'fabric.api' What am I getting wrong here? -- Ken Bolton -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.