Error Reading Package Index File Tcl
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Infinite loop caused by require(gWidgetstcltk) up vote 1 down vote favorite When I require(gWidgetstcktk), I get an infinite loop, with a seemingly endless number of error messages that look like this: error reading package index file /Library/Frameworks/R.framework/Versions/2.14/Resources/library/tcltk2/tklibs/ttktheme_clearlooks/pkgIndex.tcl: can't find package tile error reading package index file /Library/Frameworks/R.framework/Versions/2.14/Resources/library/tcltk2/tklibs/ttktheme_clearlooks/pkgIndex.tcl: too many nested evaluations (infinite loop?) (On each iteration the path is different. The end of these messages seem to be the important parts: can't find package tile and too many nested evaluations (infinite loop?) I installed the packages as usual using install.package() and the files referred to seem to be present. gWidgets seems to load just fine. I'm running R 2.14.1 via RStudio 0.96.231 on OSX 10.7.4. What is going wrong here? Update: I now see that the problem is coming from the tcltk2 package. r gwidgets share|improve this question edited Jul 25 '12 at 17:27 asked Jul 25 '12 at 13:53 Drew Steen 6,06443460 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote That shouldn't happen. First off, I'd say try uninstalling the package and then re-installing it. There might have been an error during the process. Another thing you should do is select "Install All Dependencies" when you do this (or install.packages(______, dependencies = TRUE)). Have you installed all of the package's relevant dependencies? Perhaps this library requires a different library which you don't have. share|improve this answer answered Jul 25 '12 at 14:40 MikeZ 2051412 Ahh - I thought that dependencies defaulted to TRUE, but now I see that it doesn't. I'll try uninstalling and reinstalling. –Drew Steen Jul 25 '12 at 14:47 Okay, hopefully that resolves your issu
sqlite (Ubuntu) Edit Confirmed Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: sqlite (Ubuntu) Filed here by: Ole Streicher When: 2012-05-08 Confirmed: 2012-10-09 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Confirmed Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description When I http://stackoverflow.com/questions/11651352/infinite-loop-caused-by-requiregwidgetstcltk try to load sqlite3 or sqlite from tcl, I get some errors: $ tclsh8.5 % package require sqlite error reading package index file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got "0.0." can't find package sqlite % package require sqlite3 error reading package index file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got "0.0." can't find package sqlite3 There is a similar bug in Debian, http://bugs.debian.org/483993 When I https://bugs.launchpad.net/bugs/996644 change the "0.0." in /usr/lib/sqlite/pkgIndex.tcl to "2.0", I don't get the first error line, and sqlite seems to be loaded. However, sqlite3 does not load then. This is ubuntu 12.04, libsqlite-tcl 2.8.17-7fakesync1build1, sqlite3-tcl 3.7.9-2ubuntu1. Add tags Tag help Ole Streicher (olebole) wrote on 2012-05-08: #1 This may be fixed by changing the file /usr/lib/sqlite/pkgIndex.tcl to package ifneeded sqlite 2.0 [list load [file join $dir libtclsqlite.so.0] sqlite] Ole Streicher (olebole) wrote on 2012-10-09: #2 Seems to be solved in 12.10 Changed in sqlite (Ubuntu): status: New → Fix Committed hamish (hamish-b) wrote on 2013-07-23: #3 Nope, it is not fixed. I still see it in Lunutu 13.04 and we just had a user report seeing it in 12.10. """ $ sudo apt-get install libsqlite-tcl $ tclsh8.5 % package require sqlite error reading package index file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got "0.0." can't find package sqlite """ thanks, Hamish Changed in sqlite (Ubuntu): status: Fix Committed → Confirmed Devin Eyre (devin-7) wrote on 2013-09-17: #4 The fix for libsqlite3-tcl is to put this line: package ifneeded sqlite3 3.7.9 [list load [file join $dir libtclsqlite3.so]] in the file /usr/lib/tcltk/sqlite3/pkgIndex.tcl Andrew Piskorski (atp) wr
[ subject ] [ author ] Hi, https://stat.ethz.ch/pipermail/r-help/2012-April/308535.html After upgrading R I always update installed packages to https://github.com/smalruby/smalruby-installer-for-windows/blob/master/Ruby216_32/lib/tcltk/tcl8.5/package.tcl the new version. This time an error I have never seen or heard of appeared: thousands, perhaps millions of lines like the ones below. --------------8><-------------- error reading package index file /usr/local/lib/R/library/tcltk2/tklibs/datefield0.2/pkgIndex.tcl: too many nested evaluations (infinite error reading loop?) error reading package index file /usr/local/lib/R/library/tcltk2/tklibs/tooltip1.4/pkgIndex.tcl: too many nested evaluations (infinite loop?) error reading package index file /usr/local/lib/R/library/tcltk2/tklibs/ttktheme_plastik/pkgIndex.tcl: too many nested evaluations (infinite loop?) error reading package index file /usr/local/lib/R/library/tcltk2/tklibs/ttktheme_keramik/pkgIndex.tcl: too many nested evaluations (infinite loop?) error reading package index file /usr/local/lib/R/library/tcltk2/tklibs/getstring0.1/pkgIndex.tcl: too error reading package many nested evaluations (infinite loop?) --------------8><-------------- Left the process running during almost four hours and not only never returned but also had to be explcitly killed (ctrl-c won't do the job). Attached here the scripts I use to perform all upgrades and updates unattended as cron jobs. But don't think they are the culprits. :-) Thanks. -- Alexandre -- Alexandre Santos Aguiar, MD, SCT gpg public key: mailto:gpgkey em asaguiar.net -------------- Pr?xima Parte ---------- Um anexo n?o-texto foi limpo... Nome: n?o dispon?vel Tipo: application/pgp-signature Tamanho: 198 bytes Descri??o: This is a digitally signed message part. URL:
Sign in Pricing Blog Support Search GitHub This repository Watch 2 Star 5 Fork 19 smalruby/smalruby-installer-for-windows Code Issues 0 Pull requests 0 Projects 0 Wiki Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show v0.4.0 v0.3.5 v0.3.4 v0.3.3 v0.3.1 v0.3.0 v0.2.4 v0.2.2 v0.2.1 v0.1.24 v0.1.23 v0.1.20 Nothing to show Find file Copy path smalruby-installer-for-windows/Ruby216_32/lib/tcltk/tcl8.5/package.tcl Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 764 lines (680 sloc) 23 KB # package.tcl -- # # utility procs formerly in init.tcl which can be loaded on demand # for package management. # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1998 Sun Microsystems, Inc. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # namespace eval tcl::Pkg {} # ::tcl::Pkg::CompareExtension -- # # Used internally by pkg_mkIndex to compare the extension of a file to # a given extension. On Windows, it uses a case-insensitive comparison # because the file system can be file insensitive. # # Arguments: # fileName name of a file whose extension is compared # ext (optional) The extension to compare against; you must # provide the starting dot. # Defaults to [info sharedlibextension] # # Results: # Returns 1 if the extension matches, 0 otherwise proc tcl::Pkg::CompareExtension { fileName {ext {}} } { global tcl_platform if {$ext eq ""} {set ext [info sharedlibextension]} if {$tcl_platform(platform) eq "windows"} { return [string equal -nocase [file extension $fileName] $ext] } else { # Some unices add trailing numbers after the .so, so # we could have something like '.so.1.2'. set root $fileName while {1} { set currExt [file extension $root] if {$currExt eq $ext} { return 1 } # The current extension does not match; if it is not a numeric # value, quit, as we are only looking to ignore version number # extensions. Otherwise we might return 1 in this case: # tcl::Pkg::CompareExtension foo.so.bar .so # which should not match. if { ![string is integer -strict [string range $currExt 1 end]] } { return 0 } set root [file rootname $root] } } } # pkg_mkIndex -- # This procedure creates a package index in a given directory. The # package index consists of a "pkgIndex.tcl" file whose contents are # a Tcl script that sets up package information with "package re