Login | Sign Up | Print Page
Enchanted Learning Logo Enchanted Learning Logo
Home Site Index What's New Free Sample Pages Login Subscribe
Follow us on Twitter Like us on Facebook

Search Enchanted Learning

Browse our pages!

Share this page:
Share on TwitterShare on FacebookShare on PinterestPrint this Page
Error connecting to database unable to open database file --> -->
 
 
Exception
Python 3.6.7: /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/venv/bin/python3
Tue Jul 1 01:04:44 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/instances/site_search/scripts/search_site_cgi.py in <module>()
    390     })
    391 
    392 
    393 with instance_counter.instance():
=>  394     main()
main = <function main>
 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/instances/site_search/scripts/search_site_cgi.py in main()
    287         reader_kwargs['max_tag_page_count'] = 100
    288 
=>  289     with get_reader(**reader_kwargs) as reader:
    290         query_parser = reader.query_parser(
    291             max_length=128,
global get_reader = <function get_reader>, reader_kwargs = {'cache': True, 'weights_filename': '/home/www/www.enchantedlearning.com/bin/el_monor...ta/searchengine/site_search/index/db_weights.json'}, reader undefined
 /usr/local/lib/python3.6/contextlib.py in __enter__(self=<contextlib._GeneratorContextManager object>)
     79     def __enter__(self):
     80         try:
=>   81             return next(self.gen)
     82         except StopIteration:
     83             raise RuntimeError("generator didn't yield") from None
builtin next = <built-in function next>, self = <contextlib._GeneratorContextManager object>, self.gen = <generator object _get_db>
 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/instances/site_search/shared.py in _get_db(db_class=<class 'el.searchengine.index.reader.Reader'>, **kwargs={'B': 0.863, 'D': 0.132, 'K1': 0.237, 'cache': True, 'weights': {'__num_images': 2745.458, '__num_images_k': 0.001, '__num_inbound_links': 1278.502, '__num_inbound_links_k': 7.097, '__num_links': -6644.477, '__num_links_k': 0.001, '__pagerank': 1440.636, '__penalty': 3638.511, '__phrases': 3.444, '__popularity': 9117.599, ...}})
     17     }
     18     db_kwargs.update(kwargs)
=>   19     with db_class(**db_kwargs) as db:
     20         yield db
     21 
db_class = <class 'el.searchengine.index.reader.Reader'>, db_kwargs = {'B': 0.863, 'D': 0.132, 'K1': 0.237, 'cache': True, 'path': '/home/www/www.enchantedlearning.com/bin/el_monor...0010501/local/data/searchengine/site_search/index', 'schema': <el.searchengine.schema.Schema object>, 'weights': {'__num_images': 2745.458, '__num_images_k': 0.001, '__num_inbound_links': 1278.502, '__num_inbound_links_k': 7.097, '__num_links': -6644.477, '__num_links_k': 0.001, '__pagerank': 1440.636, '__penalty': 3638.511, '__phrases': 3.444, '__popularity': 9117.599, ...}}, db undefined
 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/index/reader.py in __init__(self=<el.searchengine.index.reader.Reader object>, path='/home/www/www.enchantedlearning.com/bin/el_monor...0010501/local/data/searchengine/site_search/index', schema=<el.searchengine.schema.Schema object>, weights={'__num_images': 2745.458, '__num_images_k': 0.001, '__num_inbound_links': 1278.502, '__num_inbound_links_k': 7.097, '__num_links': -6644.477, '__num_links_k': 0.001, '__pagerank': 1440.636, '__penalty': 3638.511, '__phrases': 3.444, '__popularity': 9117.599, ...}, K1=0.237, D=0.132, B=0.863, create=False, cache=True, max_tag_page_count=1000, **kwargs={})
    130                  max_tag_page_count=1000,
    131                  **kwargs):
=>  132         super().__init__(path=path, schema=schema, create=create, **kwargs)
    133 
    134         if weights is None:
builtin super = <class 'super'>, ).__init__ = <slot wrapper '__init__' of 'super' objects>, path = '/home/www/www.enchantedlearning.com/bin/el_monor...0010501/local/data/searchengine/site_search/index', schema = <el.searchengine.schema.Schema object>, create = False, kwargs = {}
 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/index/base.py in __init__(self=<el.searchengine.index.reader.Reader object>, path='/home/www/www.enchantedlearning.com/bin/el_monor...0010501/local/data/searchengine/site_search/index', schema=<el.searchengine.schema.Schema object>, *args=(), **kwargs={'create': False})
     15         self.db_dir = path
     16         self.schema = schema
=>   17         super().__init__(*args, path=self.db_filepath, **kwargs)
     18 
     19     @property
builtin super = <class 'super'>, ).__init__ = <slot wrapper '__init__' of 'super' objects>, args = (), path = '/home/www/www.enchantedlearning.com/bin/el_monor...0010501/local/data/searchengine/site_search/index', self = <el.searchengine.index.reader.Reader object>, self.db_filepath = '/home/www/www.enchantedlearning.com/bin/el_monor...ocal/data/searchengine/site_search/index/index.db', kwargs = {'create': False}
 /home/www/www.enchantedlearning.com/bin/el_monorepo.20250630010501/el/searchengine/index/database.py in __init__(self=<el.searchengine.index.reader.Reader object>, path='/home/www/www.enchantedlearning.com/bin/el_monor...ocal/data/searchengine/site_search/index/index.db', create=False, echo=False)
     16         if not self.conn:
     17             print(path, file=sys.stderr)
=>   18             raise Exception("No DB Connection")
     19         if not self.cursor:
     20             raise Exception("No Cursor")
builtin Exception = <class 'Exception'>

Exception: No DB Connection
      args = ('No DB Connection',)
      with_traceback = <built-in method with_traceback of Exception object>

Other Links:
Page of the Day
Butterfly Anatomy and Life Cycle: Cloze Activity
July 1, 2025
Holidays Coming Down the Pike!
Canada Day (Canada)
July 1, 2025
Halfway Point of the Year
July 2, 2025
Independence Day (US)
July 4, 2025
Labor Day (US)
September 1, 2025
Grandparents Day
September 7, 2025
Site Subjects
English
World Languages
Social Studies
Math
Science
Health
Arts & Crafts
Music
Age-Themed Groups
Preschool and Kindergarten Activities
K-3 Themes
College SAT Matcher
Activities
Crafts
Coloring
Label Me! Printouts
Graphic Organizers
Books to Print
Essays to Write
Poetry
Cloze Activities
Drawing Activities
Writing Activities
Teacher Resources
Calendars
Generate Your Own Worksheets
Vocabulary Word Lists
Advertisement.
▾ See more
Site Overview
What's New
Enchanted Learning Home
Monthly Activity Calendar
Books to Print
Site Index
Enchanted Blog
K-3
Crafts
K-3 Themes
Little Explorers
Picture Dictionary
PreK/K Activities
Rebus Rhymes
Stories
Writing
Cloze Activities
Essay Topics
Newspaper
Writing Activities
Parts of Speech
Fiction
The Test of Time
Biology
Animal Printouts
Biology Label Printouts
Biomes
Birds
Butterflies
Dinosaurs
Biology Continued
Food Chain
Human Anatomy
Mammals
Plants
Rainforests
Sharks
Whales
Physical Sciences: K-12
Astronomy
The Earth
Geology
Hurricanes
Landforms
Oceans
Tsunami
Volcano
Languages
Dutch
French
German
Italian
Japanese (Romaji)
Portuguese
Spanish
Swedish
Geography/History
Explorers
Flags
Geography
Inventors
US History
Other Topics
Arts and Artists
Calendars
College Finder
Crafts
Graphic Organizers
Label Me! Printouts
Math
Music
Word Wheels
Copyright © 2016-2025 EnchantedLearning.com
How to cite a web page
-
Our Privacy Policy
-
Site Index
-
Contact Us
-
About Us
-
Subscribe
Advertisement.
Advertisement.