On Wed, Apr 25, 2012 at 7:01 AM, Doug Hellmann <
doug.h...@gmail.com> wrote:
>
> On Apr 25, 2012, at 5:43 AM, Mikhail wrote:
>
>> Hellow :)
>>
>> My problem is when I create a new enviroment with a command bellow, it
>> doesn't install any requirements automatically (but installs distribute
>> +pip as well). Here is the command:
>>
>> 'mkvirtualenv --no-site-packages myenvname -r /tmp/requirements.txt'
>>
>> I'm using fresh virtualenvwrapper version from pypi.
>>
>> Also, fabric says this command return code 1 (fatal error), but no
>> actual error message is displayed.
>
> So you are running the command via Fabric? Are you running it on a remote host? What output does it produce if you run it outside of Fabric?
>
long shot: it is failing because sine script has a line that errors,
but the shell (bash?) is normally set to just keep going. so like you
can "mkdir foo" and if foo exists, oh well, keep going. but if fabric
turns on 'exit on error' then the script will exit and fabric will
report an error.
I ran into this, patched it, couldn't get the unit tests to run, so
gave up trying to submit it. I see the unit test issue has been
closed, will try and get back to this some time. but for now, here is
my patch that may fix the fabric problem:
https://bitbucket.org/CarlFK/virtualenvwrapper/compare/..dhellmann/virtualenvwrapper
--
Carl K