Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

trac-admin initenv too many values to unpack

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


bluethundr at gmail

Jul 21, 2012, 4:53 PM

Post #1 of 3 (290 views)
Permalink
trac-admin initenv too many values to unpack

Hello list,

I'm trying to setup a trac site and when I do I am seeing an error that
says "too many values to unpack" and cannot proceed. Here is the entire
output from the session:


[root [at] clou:~] #trac-admin /usr/local/svn/repos/jokefire.com initenv
Creating a new Trac environment at /usr/local/svn/repos/jokefire.com

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> Jokefire.com

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>
mysql://admin:secretpass:3306/trac

Creating and Initializing Project
Initenv for '/usr/local/svn/repos/jokefire.com' failed.
Failed to create environment.
too many values to unpack
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 437, in
do_initenv
File "build/bdist.linux-x86_64/egg/trac/env.py", line 214, in __init__
File "build/bdist.linux-x86_64/egg/trac/env.py", line 402, in create
File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 145, in init_db
File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 183, in
get_connector
File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 259, in
_parse_db_str
ValueError: too many values to unpack
Initenv for '/usr/local/svn/repos/jokefire.com' failed.
1
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 442, in
do_initenv
SystemExit: 1

This is the server OS

CentOS release 5.6 (Final)
Linux cloud 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64
x86_64 x86_64 GNU/Linux

And I'm using trac-admin 0.12.3 which was installed using the command
easy_install Trac

Hoping to get some advice that will allow me to proceed with creating the
trac site I've been asked about.

Thanks!
Tim




This is teh

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/EKLmZnFcBN4J.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


petsuter at gmail

Jul 22, 2012, 2:30 AM

Post #2 of 3 (276 views)
Permalink
Re: trac-admin initenv too many values to unpack [In reply to]

Hello

On 22.07.2012 01:53, bluethundr wrote:
> Database connection string [sqlite:db/trac.db]>
> mysql://admin:secretpass:3306/trac

You are missing the host part. Try for example
mysql://admin:secretpass [at] localhos:3306/trac

(Because you have no "@" in there, Trac thinks you omitted the
username:password information. It then tries to decode
"admin:secretpass:3306" as "host:port", but there are "too many values"
for that, which explains the error.)

Hope that helps,
Peter

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


bluethundr at gmail

Jul 22, 2012, 11:24 AM

Post #3 of 3 (273 views)
Permalink
Re: trac-admin initenv too many values to unpack [In reply to]

Hi Peter,

That work, thanks!! Really appreciate you pointing that out.
Tim

On Sun, Jul 22, 2012 at 5:30 AM, Peter Suter <petsuter [at] gmail> wrote:

> Hello
>
>
> On 22.07.2012 01:53, bluethundr wrote:
>
>> Database connection string [sqlite:db/trac.db]>
>> mysql://admin:secretpass:3306/**trac
>>
>
> You are missing the host part. Try for example mysql://admin:secretpass@**
> localhost:3306/trac
>
> (Because you have no "@" in there, Trac thinks you omitted the
> username:password information. It then tries to decode
> "admin:secretpass:3306" as "host:port", but there are "too many values" for
> that, which explains the error.)
>
> Hope that helps,
> Peter
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users [at] googlegroups
> To unsubscribe from this group, send email to trac-users+unsubscribe@**
> googlegroups.com <trac-users%2Bunsubscribe [at] googlegroups>.
> For more options, visit this group at http://groups.google.com/**
> group/trac-users?hl=en <http://groups.google.com/group/trac-users?hl=en>.
>
>


--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.