Hi! I'm having the same issue in Ubuntu 9.04. I haven't test whether MySQL helps. However, MySQL is a NO-NO for me: I'm a teacher and we must use sqlite since we can't use MySQL in the labs.
Is this a bug? Best regards, Manuel. On May 10, 5:48 am, "David Ashwood" <da...@inspiredthinking.co.uk> wrote: > Wow - one of the most comprehensive set of steps I've seen for a while! > > Regarding your problem - try using this syntax in databases.yml for the dsn: > > sqlite:///c:/full/windows/path/to/file.db > > -----Original Message----- > From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > > On Behalf Of Norman G. Hoffman > Sent: 10 May 2009 05:17 > To: symfony-users@googlegroups.com > Subject: [symfony-users] Propel:insert-sql for sqlite fails with "[wrapped: > could not find driver]" error. > > Hi, > > I'm trying to learn symfony, and I'm having a problem with propel:insert-sql > for the sqlite database in the sf_sandbox application. It is failing with a > "[wrapped: could not find driver]" error. Here's what I get: > > This command will remove all data in your database. > Are you sure you want to proceed? (y/N) > > y > >> schema converting > "C:/MyDocs/Projects/...ndbox/config/schema.yml" to XML > >> schema putting > C:/MyDocs/Projects/Symf...box/config/generated-schema.xml > >> propel Running "insert-sql" phing task > Execution of target "insert-sql" failed for the following reason: > > C:\MyDocs\Projects\Symfony\sf_sandbox\lib\symfony\plugins\sfPropelPlugin\ > lib\vendor\propel-generator\build-propel.xml:275:1: [wrapped: could > not find driver] > [phing] > C:\MyDocs\Projects\Symfony\sf_sandbox\lib\symfony\plugins\sfPropelPlugin\ > lib\vendor\propel-generator\build-propel.xml:275:1: [wrapped: > could not find driver] > > Some problems occurred when executing the task: > build-propel.xml:275:1: [wrapped: could not find driver] > If the exception message is not clear enough, read the output of > the task for more information > > >> file- > C:/MyDocs/Projects/Symfony/sf_s...box/config/generated-schema.xml > > When I switch to MySQL, propel:insert-sql works fine. > > I'm running on Windows XP Pro, Service Pack 3. > > Below is a detailed log of my attempt to get this working. > > Thanks in advance for your help! > > Sincerely, > > Norm Hoffman > n...@carnac.com > > As a guideline for installation, I used the instructions > athttp://trac.symfony-project.org/wiki/WindowsXPDevelopmentEnvironmentandhttp://www.symfony-project.org/tutorial/1_2/my-first-project. > Initially, I > performed all the recommended updates, and got the problem. > Then I ran through it again, installing the bare minimum to see if I still > got the problem (I did). Following is the log if that minimal > installation. > > 1. Removed previous installations of symfony, apache, mysql, php, perl. > > Cleaned up files, registry entries, environment variables, Windows > services, etc. > Left earlier installation of Subversion and TortoiseSVN intact. > > 2. Downloaded and ran xampp-win32-1.7.1-installer.exe > fromhttp://www.apachefriends.org/en/xampp-windows.html. > > Documentation says this will install (For Windows 2000, 2003, XP, > VISTA): > Apache HTTPD 2.2.11, MySQL 5.1.33, PHP 5.2.9, Openssl 0.9.8i, > phpMyAdmin 3.1.3.1, > XAMPP Control Panel 2.5, XAMPP CLI Bundle 1.3, Webalizer 2.01-10, > Mercury Mail Transport System v4.62, FileZilla FTP Server 0.9.31, > SQLite 2.8.15, > ADODB 5.06a, Zend Optimizer 3.3.0, eAccelerator 0.9.5.3, XAMPP > Security, and Ming. > > Installed XAMPP into the default directory c:\xampp. > Installed Apache, MySQL and FIleZilla as Windows services. > > Got these popup windows at the end: > "Installation Complete. Setup was completed successfully." > "Service installation finished! Hint: Used also the XAMPP Control > Panel to manage services." > "Congratulations! The installation was successful! Start the XAMPP > Control Panel now?" > Clicked Yes. > > 3. Displayed XAMPP status in the XAMPP Control Panel: > > XAMPP Control Panel shows Apache, MySQL and FileZilla running. > > 4. Displayed XAMPP status inhttp://localhost/xampp/: > > Navigated tohttp://localhost/, specified English as the desired > language. > "Welcome to XAMPP for Windows Version 1.7.1 !" > Clicked Status. > XAMPP Status shows the following as ACTIVATED: > MySQL database, PHP, HTTPS (SSL), Common Gateway Interface (CGI), > Server Side Includes (SSI), SMTP Service, FTP Service. > > 5. Added to PATH: > C:\xampp\php;C:\xampp\mysql\bin;C:\xampp\perl\bin;C:\xampp\apache\bin;. > Then rebooted. > > 6. Showed pear configuration: > > C:\>pear config-show > CONFIGURATION (CHANNEL PEAR.PHP.NET): > ===================================== > Auto-discover new Channels auto_discover <not set> > Default Channel default_channel pear.php.net > HTTP Proxy Server Address http_proxy <not set> > PEAR server [DEPRECATED] master_server pear.php.net > Default Channel Mirror preferred_mirror pear.php.net > Remote Configuration File remote_config <not set> > PEAR executables directory bin_dir C:\xampp\php > PEAR documentation directory doc_dir > C:\xampp\php\pear\docs > PHP extension directory ext_dir C:\xampp\php\ext\ > PEAR directory php_dir C:\xampp\php\pear > PEAR Installer cache directory cache_dir C:\xampp\tmp > PEAR configuration file cfg_dir C:\xampp\php\cfg > directory > PEAR data directory data_dir > C:\xampp\php\pear\data > PEAR Installer download download_dir > C:\DOCUME~1\norm\LOCALS~1\Temp\pear\download > directory > PHP CLI/CGI binary php_bin > C:\xampp\php\.\php.exe > php.ini location php_ini <not set> > PEAR Installer temp directory temp_dir > C:\DOCUME~1\norm\LOCALS~1\Temp\pear\temp > PEAR test directory test_dir > C:\xampp\php\pear\tests > PEAR www files directory www_dir C:\xampp\php\www > Cache TimeToLive cache_ttl 3600 > Preferred Package State preferred_state stable > Unix file mask umask 0 > Debug Log Level verbose 1 > PEAR password (for password <not set> > maintainers) > Signature Handling Program sig_bin c:\gnupg\gpg.exe > Signature Key Directory sig_keydir > C:\xampp\php\pearkeys > Signature Key Id sig_keyid <not set> > Package Signature Type sig_type gpg > PEAR username (for username <not set> > maintainers) > User Configuration File Filename C:\WINDOWS\pear.ini > System Configuration File Filename > C:\WINDOWS\pearsys.ini > > 7. Added the 'symfony' channel: > > C:\> pear channel-discover pear.symfony-project.com > Adding Channel "pear.symfony-project.com" succeeded > Discovery of channel "pear.symfony-project.com" succeeded > > 8. Viewed the libraries available in the 'symfony' channel: > > C:\> pear remote-list -c symfony > CHANNEL SYMFONY AVAILABLE PACKAGES: > =================================== > PACKAGE VERSION > pake 1.1.4 > symfony 1.2.7 > > 9. Installed the latest stable version of symfony and all its dependencies: > > C:\> pear install symfony/symfony > downloading symfony-1.2.7.tgz ... > Starting to download symfony-1.2.7.tgz (2,695,475 bytes) > ........done: 2,695,475 bytes > install ok: channel://pear.symfony-project.com/symfony-1.2.7 > > 10. Changed c:\xampp\php\php.ini to support symfony: > > Set magic_quotes_gpc = Off. > register_globals was already Off. > short_open_tag was already On. > > 11. Installed symfony sandbox: > > Downloadedhttp://www.symfony-project.org/get/sf_sandbox_1_2.zip. > Installed into C:\MyDocs\Projects\Symfony\sf_sandbox. > > C:\MyDocs\Projects\Symfony\sf_sandbox>symfony -V > symfony version 1.2.7 > (C:\MyDocs\Projects\Symfony\sf_sandbox\lib\symfony) > > 12. Configured apache server to access sf_sandbox; > > Added definitions to C:\xampp\apache\conf\httpd.conf: > > ### BEGIN NEW FOR SYMFONY > > # Use name-based virtual hosting. > NameVirtualHost *:80 > > #original xampp location > <VirtualHost *:80> > ServerName localhost > DocumentRoot "C:\xampp\htdocs" > </VirtualHost> > > <VirtualHost *:80> > ServerName mysandbox > DocumentRoot "C:\MyDocs\Projects\Symfony\sf_sandbox\web" > DirectoryIndex index.php > Alias /sf "C:\xampp\php\PEAR\data\symfony\web\sf" > <Directory "C:\xampp\php\PEAR\data\symfony\web\sf"> > AllowOverride All > Allow from All > </Directory> > <Directory "C:\MyDocs\Projects\Symfony\sf_sandbox\web"> > AllowOverride All > Allow from All > </Directory> > </VirtualHost> > > ### END NEW FOR SYMFONY > > 13. Updated C:\WINDOWS\system32\drivers\etc\hosts: > > 127.0.0.1 mysandbox > > 14. Stopped and restarted the apache server Windows service. > > 15. Confirmed that the default apache website is still working: > > Navigated tohttp://localhostand got the Welcome page. > Clicked Status and got the XAMPP Status page. > > 16. Tested the sf_sandbox project: > > Navigated tohttp://mysandboxand got the congratulations page: > "Symfony Project Created. Congratulations! You have successfully > created your symfony project." > > 17. Confirmed that sqlite is working: > > C:\> sqlite -version > 2.8.17 > > C:\> sqlite test.db "create table t1 (t1key INTEGER PRIMARY > KEY,data TEXT);" > C:\> sqlite test.db "insert into t1 (data) values ('This is sample > data');" > C:\> sqlite test.db "insert into t1 (data) values ('More sample > data');" > C:\> sqlite test.db "insert into t1 (data) values ('And a little > more');" > C:\> sqlite test.db "select * from t1;" > 1|This is sample data > 2|More sample data > 3|And a little more > > 18. Confirmed that php and the sf_sandbox project include support for > sqlite: > > C:\MyDocs\Projects\Symfony\sf_sandbox> php -m > > [PHP Modules] > bcmath > calendar > com_dotnet > ctype > date > dom > exif > filter > ftp > gd > gettext > hash > iconv > imap > json > libxml > mbstring > mcrypt > mime_magic > ming > mssql > mysql > mysqli > odbc > paradox > pcre > pdf > PDO > pdo_mssql > pdo_mysql > pgsql > ps > Reflection > session > SimpleXML > soap > sockets > SPL > SQLite > standard > tokenizer > wddx > xml > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---