pymongo


How do I deal with Error stated below?


I am performing a pymongo experiment.
Query: To add the article
jess#ubuntu:~/pymongo/pymongo$ python pymongo_assg.py --add_articles '{"text":"abc","title":"hi","author":"xyz","tags":"mongo,test","image":"/home/jess/pymongo/pymongo/index.png"}'
Respective Error:
usage: pymongo_assg.py [-h] [--get_articles] [--add_article ADD_ARTICLE]
pymongo_assg.py: error: unrecognized arguments: --add_articles {"text":"abc","title":"hi","author":"xyz","tags":"mongo,test","image":"/home/jess/pymongo/pymongo/index.png"}
I think the answer is in the error message.
You should use --add_article instead of --add_articles.

Related Links

how to test for empty mongodb query in pymong
read video file from mongodb with pymongo
Get OperationFailure error with PyMongo 2.7.1
Inserting string as regular string in mongodb
Mongos + Pymongo 2.5 ==>No suitable hosts found
pymongo collection add item using update
How to convert objectid to string
Conditional atomic mongo remove with different results
python script to connect to mongodb master
flask-admin and pymongo search
Running code when mongoengine loads a document
Can't replace mongo document
How do I call a function with pymongo using webpy?
python motor offers fetch_next exception on aggregation
python motor mongo cursor length or peek next
PyMongo check if update succeeded

Categories

HOME
visual-studio
extjs
openxml
braintree
odata
bittorrent
openfoam
javafx-8
siesta
xades4j
nexus3
parsley.js
csrf
sonicwall
bnf
google-tasks-api
web-deployment
spring-ldap
android-permissions
web-analytics
jstree
tracing
plyr
window-managers
uri
region
audit
objectmapper
mapnik
windows2012
mongoengine
advanced-filter
ms-media-foundation
nest
serversocket
db2-luw
autoencoder
orchardcms-1.8
twilio-php
fastlane
resampling
elasticsearch-aggregation
apache-toree
flume-twitter
sonicmq
openstack-glance
winston
sonatype
watir-webdriver
exc-bad-access
palindrome
word-2007
stateless-session-bean
dtd
boost-compute
ogg
ternary-operator
bilinear-interpolation
qtcpsocket
declarative
groovyfx
static-methods
timestamping
jeditable
utf-16
polymerfire
outlook.com
srv-record
calcite
canopy
css-paged-media
wso2ml
espresso
compositetype
erlog
web-api
kotlin-android-extensions
mgwt
python-c-extension
microsoft-expression-web
symja
password-recovery
configurable-product
iodocs
storing-data
maven-central
code-complexity
xulrunner
nodeload
roxy-fileman
jms-serializer
mp4parser
smartfox
kobold2d
liveconnect
mkannotation
affinetransform
gwt-celltable
snackjs
azure-acs
grails-validation
jmenu
printqueue
libxslt
aggregator
uninstaller
principles
jquery-effects
isapi-redirect
bindable-linq

Resources

Encrypt Message