AIworx-Labs / chocolate

A fully decentralized hyperparameter optimization framework
http://chocolate.readthedocs.io
BSD 3-Clause "New" or "Revised" License
121 stars 41 forks source link

Unable use Mongodb connection #2

Closed krishnakalyan3 closed 7 years ago

krishnakalyan3 commented 7 years ago

Hello, I am using chocolate to search over my parameter space, Currently I am unable to import MongoDBConnection libraries.

Error below:

Traceback (most recent call last):
  File "svm_opt.py", line 40, in <module>
    conn = choco.MongoDBConnection(url="mongodb://127.0.0.1:27017")
AttributeError: module 'chocolate' has no attribute 'MongoDBConnection'

Another question : why is it mandatory to connect to a database?. (Maybe I am missing something?. It would have been easier to get started without the overhead of installing Mongodb or SQLLite)

Thanks

fmder commented 7 years ago

Sorry if this is way too basic, but have you installed pymongo? It is not in the hard dependencies.

Moreover, if you are working on a single file system, we encourage you to use the sqlite connection. This is the most tested one.

Le 27 févr. 2017 06:57, "Krishna Kalyan" notifications@github.com a écrit :

Hello, I am using chocolate to search over my parameter space, Currently I am unable to import MongoDBConnection libraries.

Error below:

Traceback (most recent call last): File "svm_opt.py", line 40, in conn = choco.MongoDBConnection(url="mongodb://127.0.0.1:27017") AttributeError: module 'chocolate' has no attribute 'MongoDBConnection'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NovaSyst/chocolate/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6rwkHLuJxM4BtWrJoMG1g1Y094gZwxks5rgrpAgaJpZM4MNBTQ .

krishnakalyan3 commented 7 years ago

@fmder Thank you. I did not have pymongo installed. If required I can submit a pull request with pymongo as a hard dependency.