From: Andreas Kupries on
Alan Grunwald <alan.via.aioe(a)nurdglaw.demon.co.uk> writes:

> Thanks for the response Andreas - sorry, should have said that earlier :-)
>
> I've now upgraded to ActiveTcl 8.6.0.0b3. As part of the installation
> I said to discard the existing teapot and use the seed one from the
> installation (approximately; I can't remember exactly what the
> question was about, I'm sure I said to use the seed version rather
> than the existing one, or attempt a merge.)
>
> I then did
>
> sudo teacup update-self; and
> sudo teacup update
>
> This has successfully given me access to TclOO 0.6.2, but I still
> can't package require tdbc::mysql. The error is:
>
> "Can't find a usable tdbcmysql.tcl in the following directories:",
> followed by a list of directories and a note that this probably means
> that tdbcmysql (sic) wasn't installed properly.

Ok. This error I have seen before, when Georgios reported it to me at
the beginning of the week.

Apparently the tdbc* packages use tcl_findLibrary to find their .tcl
code, and get confused by the directory names used by the repository.

I am in the process of fixing that. If the build this night went ok I
might even have binaries for you to test.


> I checked the output from sudo update and found that tdbc::mysql
> hadn't been installed.

That contradicts the above. Because if it truly had not been installed
you would get 'package not found'.

Regardless, the above is the true problem now.

> I did 'find /opt/ActiveTcl-8.6 -name tdbcmysql.tcl' and found various
> earlier versions that I had installed and a copy in
>
> /opt/ActiveTcl8.6/lib/teapot-old/package/linux-glibc2.3/lib/tdbc_mysql1.0b15
>
> I then tried to verify my teapot with
>
> sudo /opt/ActiveTcl-8.6/bin/teacup verify
>
> This displayed
>
> Checking /opt/ActiveTcl-8.6/lib/teapot ...
> Bad version "tcl1.0"
> while executing
> "# Compiled -- no source code available
> error "called a copy of a compiled script""
> (procedure "ExtractInstanceFromPath" line 1)
> invoked from within
> "# Compiled -- no source code available
> error "called a copy of a compiled script""
> (procedure "::repository::localma::Snit_methodVerify" line 1)
> invoked from within
> "::repository::client::localma1 Verify {command
> ::repository::api::DONE} {::snit::RT.CallInstance
> ::repository::client::Snit_inst1 VerifyDevNull}"
> ("after" script)
>
> (Reformatted slightly to reduce line-wraps - each line above was
> prefixed by "INTERNAL ERROR (BACKGROUND) | ")

Hm. To understand this I will likely need more information about your
directory structure underneath the teapot. Something you will likely
not want to splash the whole world with. As I have already cc'd myself
in the office for getting you the new tdbc::mysql, we can then talk
about this a bit more as well.

> I then did
>
> sudo /opt/ActiveTcl8.6/bin/teacup get tdbc::mysql

> This appeared to attempt to retrieve a number of flavours of
> tdbc::mysql, displayed errors that I needed a licence for some of

Expected.

> them and retrieved, amongst other things

> Retrieving package tdbc::mysql 1.0b15 linux-glibc2.3-ix86 ...@
> http://teapot.activestate.com ... Ok
>
> I then started a new tclsh but still can't package require
> tdbc::mysql. It displays the same error message, but now there is a
> tdbcmysql.tcl in one of the listed directories.
>
> If I source the tdbcmysql.tcl that is now in the teapot, then it
> doesn't display any error message, but repeating the package require
> tdbc::mysql still fails with the same error message.
>
> If, despite this, I do
>
> set db [tdbc::mysql::connection new -db test -user tester -password tester]
>
> I get 'wrong # args: should be "tdbc::mysql::connection new"'
>
> Sorry this has got a bit long. I hope there's something relevant in
> the details above. If you'd rather take this to some other medium -
> email/wiki/chat, just say so.

Things feel quite irregular by now. I will first get you new binaries
with my modifications eliminating tcl_findLibrary in them for you to
test, that has to be mail. In that mail thread we will solve anything
which then crops up, and when I am sure that the modifications work
the binaries will go into the teapot.


> Any help gratefully (and I hope gracefully) received.

--
So long,
Andreas Kupries <akupries(a)shaw.ca>
<http://www.purl.org/NET/akupries/>
Developer @ <http://www.activestate.com/>
-------------------------------------------------------------------------------
From: Alan Grunwald on
Andreas Kupries wrote:
> Alan Grunwald <alan.via.aioe(a)nurdglaw.demon.co.uk> writes:
>
>> Thanks for the response Andreas - sorry, should have said that earlier :-)
>>
>> I've now upgraded to ActiveTcl 8.6.0.0b3. As part of the installation
>> I said to discard the existing teapot and use the seed one from the
>> installation (approximately; I can't remember exactly what the
>> question was about, I'm sure I said to use the seed version rather
>> than the existing one, or attempt a merge.)
>>
>> I then did
>>
>> sudo teacup update-self; and
>> sudo teacup update
>>
>> This has successfully given me access to TclOO 0.6.2, but I still
>> can't package require tdbc::mysql. The error is:
>>
>> "Can't find a usable tdbcmysql.tcl in the following directories:",
>> followed by a list of directories and a note that this probably means
>> that tdbcmysql (sic) wasn't installed properly.
>
> Ok. This error I have seen before, when Georgios reported it to me at
> the beginning of the week.
>
> Apparently the tdbc* packages use tcl_findLibrary to find their .tcl
> code, and get confused by the directory names used by the repository.
>
> I am in the process of fixing that. If the build this night went ok I
> might even have binaries for you to test.
>
>
>> I checked the output from sudo update and found that tdbc::mysql
>> hadn't been installed.
>
> That contradicts the above. Because if it truly had not been installed
> you would get 'package not found'.
>
> Regardless, the above is the true problem now.
>
>> I did 'find /opt/ActiveTcl-8.6 -name tdbcmysql.tcl' and found various
>> earlier versions that I had installed and a copy in
>>
>> /opt/ActiveTcl8.6/lib/teapot-old/package/linux-glibc2.3/lib/tdbc_mysql1.0b15
>>
>> I then tried to verify my teapot with
>>
>> sudo /opt/ActiveTcl-8.6/bin/teacup verify
>>
>> This displayed
>>
>> Checking /opt/ActiveTcl-8.6/lib/teapot ...
>> Bad version "tcl1.0"
>> while executing
>> "# Compiled -- no source code available
>> error "called a copy of a compiled script""
>> (procedure "ExtractInstanceFromPath" line 1)
>> invoked from within
>> "# Compiled -- no source code available
>> error "called a copy of a compiled script""
>> (procedure "::repository::localma::Snit_methodVerify" line 1)
>> invoked from within
>> "::repository::client::localma1 Verify {command
>> ::repository::api::DONE} {::snit::RT.CallInstance
>> ::repository::client::Snit_inst1 VerifyDevNull}"
>> ("after" script)
>>
>> (Reformatted slightly to reduce line-wraps - each line above was
>> prefixed by "INTERNAL ERROR (BACKGROUND) | ")
>
> Hm. To understand this I will likely need more information about your
> directory structure underneath the teapot. Something you will likely
> not want to splash the whole world with. As I have already cc'd myself
> in the office for getting you the new tdbc::mysql, we can then talk
> about this a bit more as well.
>
>> I then did
>>
>> sudo /opt/ActiveTcl8.6/bin/teacup get tdbc::mysql
>
>> This appeared to attempt to retrieve a number of flavours of
>> tdbc::mysql, displayed errors that I needed a licence for some of
>
> Expected.
>
>> them and retrieved, amongst other things
>
>> Retrieving package tdbc::mysql 1.0b15 linux-glibc2.3-ix86 ...@
>> http://teapot.activestate.com ... Ok
>>
>> I then started a new tclsh but still can't package require
>> tdbc::mysql. It displays the same error message, but now there is a
>> tdbcmysql.tcl in one of the listed directories.
>>
>> If I source the tdbcmysql.tcl that is now in the teapot, then it
>> doesn't display any error message, but repeating the package require
>> tdbc::mysql still fails with the same error message.
>>
>> If, despite this, I do
>>
>> set db [tdbc::mysql::connection new -db test -user tester -password tester]
>>
>> I get 'wrong # args: should be "tdbc::mysql::connection new"'
>>
>> Sorry this has got a bit long. I hope there's something relevant in
>> the details above. If you'd rather take this to some other medium -
>> email/wiki/chat, just say so.
>
> Things feel quite irregular by now. I will first get you new binaries
> with my modifications eliminating tcl_findLibrary in them for you to
> test, that has to be mail. In that mail thread we will solve anything
> which then crops up, and when I am sure that the modifications work
> the binaries will go into the teapot.
>
>
>> Any help gratefully (and I hope gracefully) received.
>

Many thanks Andreas. The email address on my other postings should work
fine, as will this one if you take out the NOSPAM nonsense and adjacent
underscores.

--
Alan
From: Andreas Kupries on
Alan Grunwald <usenetReader_NOSPAM(a)NOSPAM_nurdglaw.demon.co.uk>
writes:

>> Apparently the tdbc* packages use tcl_findLibrary to find their .tcl
>> code, and get confused by the directory names used by the repository.
>>
>> I am in the process of fixing that. If the build this night went ok I
>> might even have binaries for you to test.

The TDBC packages in the TEApot have been updated to forms not
requiring tcl_findLibrary. Alan checked those which he needed, and
they work.

The build date of the fixed packages is

as::build::date : 2010-06-14

Their version (1.0b15) is unchanged.

Kevin has the changes I made, for integration with his mainline.

>>> I then tried to verify my teapot with
>>>
>>> sudo /opt/ActiveTcl-8.6/bin/teacup verify
>>>
>>> This displayed
>>>
>>> Checking /opt/ActiveTcl-8.6/lib/teapot ...
>>> Bad version "tcl1.0"

The new package

dbus-tcl1.0

added a few weeks ago tripped the verify's handling of dashes. The
teacup binaries now in the TEApot have the problem fixed.

--
So long,
Andreas Kupries <akupries(a)shaw.ca>
<http://www.purl.org/NET/akupries/>
Developer @ <http://www.activestate.com/>
-------------------------------------------------------------------------------
From: Alan Grunwald on
Andreas Kupries wrote:
> Alan Grunwald <usenetReader_NOSPAM(a)NOSPAM_nurdglaw.demon.co.uk>
> writes:
>
>>> Apparently the tdbc* packages use tcl_findLibrary to find their .tcl
>>> code, and get confused by the directory names used by the repository.
>>>
>>> I am in the process of fixing that. If the build this night went ok I
>>> might even have binaries for you to test.
>
> The TDBC packages in the TEApot have been updated to forms not
> requiring tcl_findLibrary. Alan checked those which he needed, and
> they work.
>
> The build date of the fixed packages is
>
> as::build::date : 2010-06-14
>
> Their version (1.0b15) is unchanged.
>
> Kevin has the changes I made, for integration with his mainline.
>
>>>> I then tried to verify my teapot with
>>>>
>>>> sudo /opt/ActiveTcl-8.6/bin/teacup verify
>>>>
>>>> This displayed
>>>>
>>>> Checking /opt/ActiveTcl-8.6/lib/teapot ...
>>>> Bad version "tcl1.0"
>
> The new package
>
> dbus-tcl1.0
>
> added a few weeks ago tripped the verify's handling of dashes. The
> teacup binaries now in the TEApot have the problem fixed.
>

Thanks Andreas,

I can confirm that the updated teacup works fine. I can also
confirm that I tested Andreas's modified tdbc drivers and tdbc::mysql
(the only one I use) works fine. However, my 'teacup update' just now
didn't bring down a new copy of tdbc and drivers, and I don't know how
to force a download, so I can't verify that they are in the teapot.

--
Alan
From: AndreasK on
On Jun 17, 10:33 am, Alan Grunwald
<alan.via.a...(a)nurdglaw.demon.co.uk> wrote:
> Andreas Kupries wrote:
> > Alan Grunwald <usenetReader_NOSPAM(a)NOSPAM_nurdglaw.demon.co.uk>
> > writes:
>
> >>> Apparently the tdbc* packages use tcl_findLibrary to find their .tcl
> >>> code, and get confused by the directory names used by the repository.
>
> >>> I am in the process of fixing that. If the build this night went ok I
> >>> might even have binaries for you to test.
>
> > The TDBC packages in the TEApot have been updated to forms not
> > requiring tcl_findLibrary. Alan checked those which he needed, and
> > they work.
>
> > The build date of the fixed packages is
>
> >    as::build::date : 2010-06-14
>
> > Their version (1.0b15) is unchanged.
>
> > Kevin has the changes I made, for integration with his mainline.
>
> >>>> I then tried to verify my teapot with
>
> >>>> sudo /opt/ActiveTcl-8.6/bin/teacup verify
>
> >>>> This displayed
>
> >>>> Checking /opt/ActiveTcl-8.6/lib/teapot ...
> >>>> Bad version "tcl1.0"
>
> > The new package
>
> >    dbus-tcl1.0
>
> > added a few weeks ago tripped the verify's handling of dashes. The
> > teacup binaries now in the TEApot have the problem fixed.
>
> Thanks Andreas,
>
>      I can confirm that the updated teacup works fine. I can also
> confirm that I tested Andreas's modified tdbc drivers and tdbc::mysql
> (the only one I use) works fine. However, my 'teacup update' just now
> didn't bring down a new copy of tdbc and drivers, and I don't know how
> to force a download, so I can't verify that they are in the teapot.

teacup install --force ...

or 'teacup remove the-package' followed by 'teacup install'

Note the 'teacup help install' command for cmdline help.