I recently published a working scrape to scrapyd. I'm getting the error message below when I run the scrape.
I reviewed this closed issue: https://github.com/scrapy/scrapy/issues/86 and implemented the recommended fix per the docs: http://scrapyd.readthedocs.org/en/latest/config.html
My config file lives here: :/etc/scrapyd/conf.d/000-default
I cannot seem to disable the Feedexporter extension by setting items_dir to none. Is there a new way to disable feedexporter in scrapyd?
Config file:
[scrapyd]
http_port = 6800
debug = off
#max_proc = 1
eggs_dir = /var/lib/scrapyd/eggs
dbs_dir = /var/lib/scrapyd/dbs
items_dir =
logs_dir = /var/log/scrapyd
Error Message:
2014-10-12 06:29:15-0500 [jsc] ERROR: Error caught on signal handler: <bound method ?.item_scraped of <scrapy.contrib.feedexport.FeedExporter object at 0x7fc879ff82d0>>
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/pymodules/python2.7/scrapy/core/scraper.py", line 215, in _itemproc_finished
item=output, response=response, spider=spider)
File "/usr/lib/pymodules/python2.7/scrapy/signalmanager.py", line 23, in send_catch_log_deferred
return signal.send_catch_log_deferred(*a, **kw)
File "/usr/lib/pymodules/python2.7/scrapy/utils/signal.py", line 53, in send_catch_log_deferred
*arguments, **named)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/pymodules/python2.7/scrapy/xlib/pydispatch/robustapply.py", line 54, in robustApply
return receiver(*arguments, **named)
File "/usr/lib/pymodules/python2.7/scrapy/contrib/feedexport.py", line 190, in item_scraped
slot.exporter.export_item(item)
File "/usr/lib/pymodules/python2.7/scrapy/contrib/exporter/__init__.py", line 87, in export_item
itemdict = dict(self._get_serialized_fields(item))
File "/usr/lib/pymodules/python2.7/scrapy/contrib/exporter/__init__.py", line 71, in _get_serialized_fields
field = item.fields[field_name]
exceptions.AttributeError: 'dict' object has no attribute 'fields'
I was able to disable FeedExporter in scrapyd by adding the following line to settings.py
EXTENSIONS = {'scrapy.contrib.feedexport.FeedExporter': None}
Disabling FeedExporter solved the problem.
Related
When the user clicks on the Adaptive Card to invoke Task Module in the iOS Teams client, there is an error. The Adaptive Card works well with other types of clients, like Mac, and Browsers.
Steps to reproduce the error:
Bot sent the following Adaptive Card to a channel according to the user's input.
{
"type":"AdaptiveCard",
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
"version":"1.3",
"fallbackText":"This card requires Adaptive Cards v1.2 support to be rendered properly.",
"body":[
{
"type":"ColumnSet",
"columns":[
{
"type":"Column",
"items":[
{
"type":"TextBlock",
"text":"**Query:**",
"size":"Medium",
"weight":"Bolder",
"wrap":false
}
],
"width":"48px"
},
{
"type":"Column",
"items":[
{
"type":"TextBlock",
"text":"sales today",
"size":"Medium",
"wrap":true
}
],
"width":"auto"
}
]
},
{
"type":"Container",
"id":"table",
"items":[
{
"type":"Container",
"bleed":true,
"items":[
{
"type":"ColumnSet",
"columns":[
{
"type":"Column",
"width":"auto",
"bleed":true,
"items":[
{
"type":"TextBlock",
"text":"No Data Found: We understood what you meant, however we didn't find any data matching your query. If you believe this is an error, please **report** this issue.",
"horizontalAlignment":"left",
"wrap":"true"
}
],
"selectAction":{
"type":"Action.Submit",
"title":"column",
"data":{
"msteams":{
"type":"task/fetch"
},
"action_source":"report_issue",
"id":"report_issue_invoke",
"message_type":"no_data_found",
"message":"No data found",
"query_id":"q_7aGLqUYvSEWw1rjAbBiXMw",
"user_id":"29:18Ly6dqUHd5j1HwXtx7z8qsndhqYOSc22UzQehulpOcIHLUcXAoJR0w2evYTwhFHFXaG5fEyYrZwFHZyO0PqRdQ"
}
}
}
]
}
]
}
]
}
]
}
The user can click on the text to invoke a Task Module dialogue to fill in the feedback content. Then there will be an error thrown out if the user is using the iOS Teams client(Other types of clients are working well, like Mac, Android, and Chrome, Firefox, Safari browsers):
Following is the error stack:
/Users/liming/venv/autoql-teams-bot/bin/python3.9 /Users/liming/Dev/Projects/chata/autoql-teams-bot/app.py
Running in Dev configuration
current env is:DEV
APP_ID is:acec457a-326b-43f1-9b38-724baaeb0057
======== Running on http://localhost:3978 ========
(Press CTRL+C to quit)
[on_turn_error] unhandled error: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1293, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1064, in rest_key_extractor
return working_data.get(key)
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/bot_adapter.py", line 128, in run_pipeline
return await self._middleware.receive_activity_with_status(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 69, in receive_activity_with_status
return await self.receive_activity_internal(context, callback)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 91, in receive_activity_internal
raise error
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 89, in receive_activity_internal
return await next_middleware.on_turn(context, call_next_middleware)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/show_typing_middleware.py", line 96, in on_turn
result = await logic()
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 84, in call_next_middleware
return await self.receive_activity_internal(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 79, in receive_activity_internal
return await callback(context)
File "/Users/liming/Dev/Projects/chata/autoql-teams-bot/bots/dialog_bot.py", line 42, in on_turn
await super().on_turn(turn_context)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/activity_handler.py", line 78, in on_turn
invoke_response = await self.on_invoke_activity(turn_context)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/teams/teams_activity_handler.py", line 154, in on_invoke_activity
deserializer_helper(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/serializer_helper.py", line 28, in deserializer_helper
return deserializer(msrest_cls.__name__, dict_to_deserialize)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1233, in __call__
return self._deserialize(target_obj, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1299, in _deserialize
value = self.deserialize_data(raw_value, attr_desc['type'])
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1468, in deserialize_data
return self._deserialize(obj_type, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1303, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1293, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1064, in rest_key_extractor
return working_data.get(key)
msrest.exceptions.DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1293, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1064, in rest_key_extractor
return working_data.get(key)
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/bot_adapter.py", line 128, in run_pipeline
return await self._middleware.receive_activity_with_status(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 69, in receive_activity_with_status
return await self.receive_activity_internal(context, callback)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 91, in receive_activity_internal
raise error
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 89, in receive_activity_internal
return await next_middleware.on_turn(context, call_next_middleware)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/show_typing_middleware.py", line 96, in on_turn
result = await logic()
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 84, in call_next_middleware
return await self.receive_activity_internal(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/middleware_set.py", line 79, in receive_activity_internal
return await callback(context)
File "/Users/liming/Dev/Projects/chata/autoql-teams-bot/bots/dialog_bot.py", line 42, in on_turn
await super().on_turn(turn_context)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/activity_handler.py", line 78, in on_turn
invoke_response = await self.on_invoke_activity(turn_context)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/teams/teams_activity_handler.py", line 154, in on_invoke_activity
deserializer_helper(
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/serializer_helper.py", line 28, in deserializer_helper
return deserializer(msrest_cls.__name__, dict_to_deserialize)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1233, in __call__
return self._deserialize(target_obj, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1299, in _deserialize
value = self.deserialize_data(raw_value, attr_desc['type'])
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1468, in deserialize_data
return self._deserialize(obj_type, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1303, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1293, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/msrest/serialization.py", line 1064, in rest_key_extractor
return working_data.get(key)
msrest.exceptions.DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/integration/aiohttp_channel_service_exception_middleware.py", line 20, in aiohttp_error_middleware
response = await handler(request)
File "/Users/liming/Dev/Projects/chata/autoql-teams-bot/app.py", line 158, in messages
invoke_response = await CONFIG.ADAPTER.process_activity(activity, auth_header, BOT.on_turn)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/bot_framework_adapter.py", line 451, in process_activity
return await self.process_activity_with_identity(activity, identity, logic)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/bot_framework_adapter.py", line 493, in process_activity_with_identity
await self.run_pipeline(context, logic)
File "/Users/liming/venv/autoql-teams-bot/lib/python3.9/site-packages/botbuilder/core/bot_adapter.py", line 133, in run_pipeline
await self.on_turn_error(context, error)
File "/Users/liming/Dev/Projects/chata/autoql-teams-bot/app.py", line 111, in on_error
await utilities.send_message_with_log(context, Activity("The bot encountered an error or bug."))
TypeError: __init__() takes 1 positional argument but 2 were given
Scenario 1: It displays an error: "Something went wrong. Please try again"
Scenario 2: It displays an error: "Something went wrong. Please try again"
The root cause is the data transferred from iOS client contain a parameter “tab_entity_id” with 0 length string value to the bot. This value will cause the error AttributeError: 'str' object has no attribute 'get' This error/exception was thrown out inside MS python library file msrest/serialzation.py, before the logic goes into our bot.
This error comes before the logic entering the bot. We are not able to fix it.
The file serialization.py is part of package msrest. The msrest package is provided by MS for Azure:
https://learn.microsoft.com/en-us/python/api/msrest/msrest.serialization?view=azure-python
file serialization.py
Here are the screenshots:
This screenshot shows the exception was thrown out at line 1064 in file serialization.py in the console.
the exception was thrown out at line 1064 in file serialization.py
This screenshot shows the parameter value is 0 size string just before the exception was generated in line 1064 in file serialization.py
the parameter value is 0 size string just before the exception was generated in line 1064 in file serialization.py
This screenshot shows the value of “tab_entity_id” from iOS client is 0 length string.
the value of “tab_entity_id” from iOS client is 0 length string
I confirmed this issue can be reproduced by BotBuilder python library in 4.12.0(when we found this issue first time), 4.14.0(currently version in PROD) and 4.14.2(the latest released version for today, April 27, 2022). This issue still can be reproduced in latest version 4.14.2. Here is the link about the most recently release version information.
https://github.com/microsoft/botbuilder-python
Running a simple script for backing up L2 startup configuration i always get this type of output referring TypeError:
No handlers could be found for logger "paramiko.transport"
Traceback (most recent call last):
File "hp_tftp.py", line 108, in
net_connect = ConnectHandler(**a_device)
File "/usr/local/lib/python2.7/dist-packages/netmiko-1.5.1-py2.7.egg/netmiko/ssh_dispatcher.py", line 167, in ConnectHandler
return ConnectionClass(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/netmiko-1.5.1-py2.7.egg/netmiko/base_connection.py", line 187, in init
self.establish_connection()
File "/usr/local/lib/python2.7/dist-packages/netmiko-1.5.1-py2.7.egg/netmiko/base_connection.py", line 650, in establish_connection
self.remote_conn_pre.connect(**ssh_connect_params)
File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 392, in connect
t.start_client(timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 545, in start_client
raise e
TypeError: 'type' object is not iterable
And this is the code:
for a_device in all_devices:
net_connect = ConnectHandler(**a_device)
print("----------------------------------------BEGIN----------------------------------------")
print ("\n\n>>>>>>>>> Copying Config {0} to TFTP Server <<<<<<<<<".format(a_device['device_type']))
net_connect.send_command("copy startup-config tftp [ip_server] pdy.sw.l2.-{0}-{1}".format(a_device['ip'],date))
time.sleep(1)
print ("\n\n>>>>>>>>> Startup-Config Has Been Sent {0} <<<<<<<<<".format(a_device['ip']))
print ("\n\n----------------------------------------END----------------------------------------\n\n")
The 108 line is from net_connect = ConnectHandler(**a_device)
I'm trying to update my whoosh search index when I make changes to my database, but keep getting an error that I haven't been able to figure out.
One of my views:
from search import update_index
#view_config(route_name='update_effect_brief', permission='edit')
def update_effect_brief(request):
name = request.matchdict['pagename']
brief = request.params['effect_brief']
effect = Effect.get_by_name(name) # This is an "effect" object
effect.update_brief(brief)
update_index(effect)
return HTTPFound(location=request.route_url('view_effect', pagename=name))
My search.py file:
from whoosh.index import create_in, open_dir
def update_index(obj):
'''Update single ingredient, product or effect.'''
index = open_dir('searchindex') # searchindex is the name of the directory
with index.searcher as searcher: # crashes on this line!
writer = index.writer()
update_doc(writer, obj)
Traceback:
Traceback (most recent call last):
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid_debugtoolbar-1.0.9-py2.7.egg/pyramid_debugtoolbar/toolbar.py", line 152, in toolbar_tween
response = _handler(request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid_debugtoolbar-1.0.9-py2.7.egg/pyramid_debugtoolbar/panels/performance.py", line 55, in resource_timer_handler
result = handler(request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid-1.4.5-py2.7.egg/pyramid/tweens.py", line 21, in excview_tween
response = handler(request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid_tm-0.7-py2.7.egg/pyramid_tm/__init__.py", line 82, in tm_tween
reraise(*exc_info)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid_tm-0.7-py2.7.egg/pyramid_tm/__init__.py", line 63, in tm_tween
response = handler(request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid-1.4.5-py2.7.egg/pyramid/router.py", line 161, in handle_request
response = view_callable(context, request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid-1.4.5-py2.7.egg/pyramid/config/views.py", line 237, in _secured_view
return view(context, request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid-1.4.5-py2.7.egg/pyramid/config/views.py", line 377, in viewresult_to_response
result = view(context, request)
File "/home/home/SkinResearch/env/local/lib/python2.7/site-packages/pyramid-1.4.5-py2.7.egg/pyramid/config/views.py", line 493, in _requestonly_view
response = view(request)
File "/home/home/SkinResearch/skinresearch/skinproject/views.py", line 544, in update_effect_brief
update_index(effect)
File "/home/home/SkinResearch/skinresearch/skinproject/search.py", line 37, in start_update
update_index(obj)
File "/home/home/SkinResearch/skinresearch/skinproject/search.py", line 92, in update_index
with index.searcher as searcher:
AttributeError: __exit__
What am I doing wrong?
You need to call the index.searcher() method to create the context manager:
with index.searcher() as searcher:
See the Searcher object section in the Whoosh quickstart, and The Searcher object documentation.
It isn't entirely clear to me why you are creating a searcher, but then create a writer in the block and update the index. Perhaps you wanted to use the writer as a context manager instead here:
with index.writer() as writer:
update_doc(writer, obj)
and leave the searcher for searching operations.
I'm using a high level python library ncclient to edit the configuration of a NETCONF device but I run into this error:
ValueError: Invalid attribute name u'xmlns:if'
I suspect it has something to do with an xml namespace problem since the lxml library is complaining about an attribute name
All I'm doing is creating a connection to the device and then closing it
manager = ncclient.manager.connect(
host=host,
port=port,
username=username,
password=b64decode(password),
device_params={
"name": "nexus",
"ssh_subsystem_name": "xmlagent"
}
)
manager.close_session()
Here's a stack trace:
Traceback (most recent call last):
File "./switch_config.py", line 41, in <module>
main()
File "./switch_config.py", line 26, in main
manager.close_session()
File "/usr/lib/python2.6/site-packages/ncclient/manager.py", line 107, in wrapper
return self.execute(op_cls, *args, **kwds)
File "/usr/lib/python2.6/site-packages/ncclient/manager.py", line 174, in execute
raise_mode=self._raise_mode).request(*args, **kwds)
File "/usr/lib/python2.6/site-packages/ncclient/operations/session.py", line 28, in request
return self._request(new_ele("close-session"))
File "/usr/lib/python2.6/site-packages/ncclient/operations/rpc.py", line 290, in _request
req = self._wrap(op)
File "/usr/lib/python2.6/site-packages/ncclient/operations/rpc.py", line 275, in _wrap
**self._device_handler.get_xml_extra_prefix_kwargs())
File "/usr/lib/python2.6/site-packages/ncclient/xml_.py", line 153, in <lambda>
new_ele = lambda tag, attrs={}, **extra: etree.Element(qualify(tag), attrs, **extra)
File "lxml.etree.pyx", line 2812, in lxml.etree.Element (src/lxml/lxml.etree.c:61433)
File "apihelpers.pxi", line 123, in lxml.etree._makeElement (src/lxml/lxml.etree.c:13864)
File "apihelpers.pxi", line 111, in lxml.etree._makeElement (src/lxml/lxml.etree.c:13736)
File "apihelpers.pxi", line 263, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:15391)
File "apihelpers.pxi", line 1524, in lxml.etree._attributeValidOrRaise (src/lxml/lxml.etree.c:26886)
ValueError: Invalid attribute name u'xmlns:if'
I eventually got it work on NX-OS by:
Remove all the namespaces in ncclient/devices/nexus.py and add namespace "xmlns":"http://www.cisco.com/nxos:1.0:netconf".
def get_xml_base_namespace_dict(self):
return { "xmlns":"http://www.cisco.com/nxos:1.0:netconf" } #Add root namespace
def get_xml_extra_prefix_kwargs(self):
d = {
# "xmlns:nxos":"http://www.cisco.com/nxos:1.0", #remove other namespaces
# "xmlns:if":"http://www.cisco.com/nxos:1.0:if_manager"
}
d.update(self.get_xml_base_namespace_dict())
return d
i got this error when i try to run this test case: WHICH IS written in tests.py of my django application:
def test_accounts_register( self ):
self.url = 'http://royalflag.com.pk/accounts/register/'
self.c = Client()
self.values = {
'email': 'bilal#gmail.com',
'first_name': 'bilal',
'last_name': 'bash',
'password1': 'bilal',
'password2': 'bilal',
}
self.response = self.c.post( self.url, self.values )
my django version is 1.2.1 and python 2.6 and satchmo version is 0.9.2-pre hg-unknown
the complete error log is:
.E....
======================================================================
ERROR: test_accounts_register (administration.tests.AccountsRegisterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pytho\satchmo\administration\tests.py", line 53, in test_accounts_reg
ister
self.response = self.c.get( self.url )
File "C:\django\django\test\client.py", line 290, in get
response = self.request(**r)
File "C:\django\django\test\client.py", line 230, in request
response = self.handler(environ)
File "C:\django\django\test\client.py", line 74, in __call__
response = self.get_response(request)
File "C:\django\django\core\handlers\base.py", line 141, in get_response
return self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "C:\django\django\core\handlers\base.py", line 180, in handle_uncaught_ex
ception
return callback(request, **param_dict)
File "C:\django\django\views\defaults.py", line 23, in server_error
t = loader.get_template(template_name) # You need to create a 500.html templ
ate.
File "C:\django\django\template\loader.py", line 157, in get_template
template, origin = find_template(template_name)
File "C:\django\django\template\loader.py", line 134, in find_template
source, display_name = loader(name, dirs)
File "C:\django\django\template\loader.py", line 42, in __call__
return self.load_template(template_name, template_dirs)
File "C:\django\django\template\loader.py", line 48, in load_template
template = get_template_from_string(source, origin, template_name)
File "C:\django\django\template\loader.py", line 168, in get_template_from_str
ing
return Template(source, origin, name)
File "C:\django\django\template\__init__.py", line 158, in __init__
self.nodelist = compile_string(template_string, origin)
File "C:\django\django\template\__init__.py", line 186, in compile_string
return parser.parse()
File "C:\django\django\template\__init__.py", line 282, in parse
compiled_result = compile_func(self, token)
File "C:\django\django\template\defaulttags.py", line 921, in load
(taglib, e))
TemplateSyntaxError: 'settings_tags' is not a valid tag library: Template librar
y settings_tags not found, tried django.templatetags.settings_tags,satchmo_store
.shop.templatetags.settings_tags,django.contrib.admin.templatetags.settings_tags
,django.contrib.comments.templatetags.settings_tags,django.contrib.humanize.temp
latetags.settings_tags,livesettings.templatetags.settings_tags,sorl.thumbnail.te
mplatetags.settings_tags,satchmo_store.contact.templatetags.settings_tags,tax.te
mplatetags.settings_tags,pagination.templatetags.settings_tags,product.templatet
ags.settings_tags,payment.templatetags.settings_tags,payment.modules.giftcertifi
cate.templatetags.settings_tags,satchmo_utils.templatetags.settings_tags,app_plu
gins.templatetags.settings_tags,tinymce.templatetags.settings_tags
----------------------------------------------------------------------
Ran 6 tests in 47.468s
FAILED (errors=1)
Destroying test database 'default'...
It seems to me you probably have a code like {% load settings_tags %} somewhere in your template. Django looks for templatetags/settings_tags.py file in your installed apps' directories. This is the result of not finding a file like this. Maybe the app, which contains it is not in your INSTALLED_APPS or maybe it's a typo. You should be getting the same error when you put this url in your browser.
Sometimes this happens when you forgot to put an __ init __.py in the package.
Like #AJJ said, you may have to restart the server to get the new tags loaded
This is a common issue for this package. When you get it from pypi, it does not contains the template tag: settings_tag.py and that will cause the error 'settings_tags' is not a valid tag library: Template library settings_tags not found.
The current solution is to install it from the github zip.