I used the windows installer and every time I try to dl anything I get errors like this
WD php: Warning: [warning]
copy(C:/wamp/www/d7test/sites/all/modules/contrib/devel/devel-rtl.css):
failed to open stream: No such file or directory in drush_op() (line
701 of C:\drush\includes\drush.inc).
Project devel (7.x-1.0) could not be downloaded to [error]
C:/wamp/www/d7test/sites/all/modules/contrib/devel.
copy(C:/wamp/www/d7test/sites/all/modules/contrib/devel/devel-rtl.css): [warnin
g]
failed to open stream: No such file or directory in drush_op() (line
701 of C:\drush\includes\drush.inc).
WD php: Warning: rmdir(c:\windows\temp/drush_tmp_1310241217/devel): [warning]
Permission denied in drush_delete_dir() (line 88 of
C:\drush\includes\filesystem.inc).
I finally got it dl but now still get these errors
C:\wamp\www\d7test>drush dl devel
Project devel (7.x-1.0) downloaded to [success]
C:/wamp/www/d7test/sites/all/modules/contrib/devel.
Project devel contains 4 modules: performance, devel_generate, devel, devel_node_access.
WD php: Warning: file_put_contents(/tmp/cache.inc): failed to open [warning]
stream: No such file or directory in drush_pm_put_extension_cache()
(line 2401 of C:\drush\commands\pm\pm.drush.inc).
file_put_contents(/tmp/cache.inc): failed to open stream: No such [warning]
file or directory in drush_pm_put_extension_cache() (line 2401 of
C:\drush\commands\pm\pm.drush.inc).
what am I missing and how can I fix it please
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | drush.file_.12.patch | 2.23 KB | sun |
| #5 | drush.file_.5.patch | 3.53 KB | sun |
Comments
Comment #1
greg.1.anderson commentedTry upgrading to drush-5.x-dev latest HEAD.
Comment #2
paulfrottawa commentedHope you don't mind if I join in
I was having the same error but using apache, php, mysql,gnuwin32, and more. Now I can now use "drush dl cck" thanks to using the latest head.
here's is my computer varibles C:\Program Files\Java\jdk1.6.0_23\bin;C:\Program Files (x86)\PHP\;C:\ProgramData\Propeople\Drush\;C:\Program Files (x86)\GnuWin32\bin\;C:\Program Files (x86)\cwRsync\bin\
:
________________________
DOS
C:\Users\paul\workspace\drupal.development>drush dl flashy
Project flashy (6.x-1.0) downloaded to [success]
C:/Users/paul/workspace/drupal.development/sites/all/modules/contrib/flashy.
Project flashy contains 3 modules: flashy_link, flashy_filefield, flashy.
file_put_contents(/tmp/cache.inc): failed to open stream: No such [warning]
file or directory pm.drush.inc:2401
Comment #3
paulfrottawa commentedOK after making a directory c:\tmp
___________________________
C:\Users\paul\workspace\drupal.development>drush dl cck
Install location C:/Users/paul/workspace/drupal.development/sites/all/modules/contrib/cck already exists. Do you want to overwrite it? (y/n): y
Project cck (6.x-2.9) downloaded to [success]
C:/Users/paul/workspace/drupal.development/sites/all/modules/contrib/cck.
Project cck contains 9 modules: userreference, text, optionwidgets, number, nodereference, fieldgroup, content_permissions, content_copy, content.
C:\Users\paul\workspace\drupal.development>
Comment #4
paulfrottawa commentednew problem here using this command. Drush is trying to locate a different settings.php file.
_______________________________________
C:\Users\paul\workspace\drupal.development\sites\drupal.development>drush en flashy
Command pm-enable needs a higher bootstrap level to run - you will [error]
need invoke drush from a more functional Drupal environment to run
this command.
The drush command 'en flashy' could not be executed. [error]
Could not find a Drupal settings.php file at [error]
./sites/default/settings.php.
C:\Users\paul\workspace\drupal.development\sites\drupal.development>
Comment #5
sunAttached patch fixes a full range of bugs:
dlattempts to delete empty directories, and excludes appropriate VCS directories to do so, but fails to pass the$force = TRUEparameter to drush_delete_dir(), which is required on Windows, since.svn/entriesis read-only.$force = TRUEflag into recursive invocations of itself.Patch attached :)
Comment #6
sunActually not really limited to Windows. I only happen to develop on that crap of an OS.
Comment #7
greg.1.anderson commentedLooks good. Unit tests pass; committed to master.
Could be backported if desired.
Comment #8
sunyay! Thank you! :)
Comment #9
jonhattanComment #10
moshe weitzman commentedWon't apply cleanly due to filename changes. Reroll for 7.x-4.x, anyone?
Comment #11
sunFound some more instances of drush_delete_dir() that are missing the $force = TRUE argument over in #1231254-1: Add a suggested 'clone' alias to example.drushrc.php for cached git_drupalorg clones + allow to set 'home' option
Comment #12
sunHere are the follow-up fixes. That said, I wondered whether not all drush_delete_dir() calls throughout Drush should be wrapped in drush_op()?
Comment #13
sunmmm, any feedback on #12 ?
Comment #14
greg.1.anderson commentedSorry, been busy. The code in #12 looks good. Calls to drush_delete_dir should not be wrapped in drush_op; drush_delete_dir itself should wrap its operations in drush_op, like drush_copy_dir does. For some reason, it does not. :p
Comment #15
greg.1.anderson commentedI should note that #14 is my opinion; drush is mixed on its handling of drush_delete_dir right now, so an argument could be made either way. In general,
drush_op('drush_...');is not done; drush functions tend to handle their own usage of drush_op. To whit:Except for drush_delete_dir, drush_op with drush functions is limited to a couple internal functions, ergo my conclusion that we should switch drush_delete_dir to work like other drush functions.
Interestingly enough, I noticed some calls to is_readable and is_writable wrapped in drush_op. That is simply odd; drush_op should only be used on things that change the persistent state of the system.
Comment #16
greg.1.anderson commentedAll tests passed; committed #12 to master. The drush_op stuff should be a separate issue, I think.
Comment #17
greg.1.anderson commentedThis was mostly for Windows, but #12 could be considered for drush-4.x as well.
Comment #18
msonnabaum commentedBackported what was applicable from #12.