Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

missing peewee in installtion #762

Open
0xIslamTaha opened this issue Aug 5, 2019 · 0 comments
Open

missing peewee in installtion #762

0xIslamTaha opened this issue Aug 5, 2019 · 0 comments
Labels

Comments

@0xIslamTaha
Copy link
Contributor

In [3]: c = j.clients.github.new("test_bcdb_delete_option", token="test_bcdb_delete_option")                                                                                                                         

In [4]: c.save()                                                                                                                                                                                                     
Mon 05 13:44:15 JSBase.py        - 123 - dbsqlite                           : ***CLASS INIT 1: dbsqlite
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/sandbox/bin/js_shell in <module>
----> 1 c.save()

/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfig.py in save(self)
    135 
    136     def save(self):
--> 137         self.save_()
    138 
    139     def save_(self):

/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfig.py in save_(self)
    140         assert self._model
    141         self._triggers_call(self, "save")
--> 142         self._data.save()
    143         self._triggers_call(self, "save_post")
    144 

/sandbox/lib/jumpscale/Jumpscale/data/schema/JSXObject.py in save(self, serialize)
    167                                 return self  # means data was not changed
    168 
--> 169                 o = self._model.set(self)
    170                 self.id = o.id
    171                 # self._log_debug("MODEL CHANGED, SAVE DONE")

/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBDecorator.py in wrapper_queue_method(*args, **kwargs)
     58             if "noqueue" in kwargs:
     59                 kwargs.pop("noqueue")
---> 60             res = func(*args, **kwargs)
     61             return res
     62         else:

/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py in set(self, obj, index, store)
    371                 # means a new one
    372                 if not self.storclient:
--> 373                     obj.id = self.bcdb.sqlclient.set(key=None, val=data)
    374                 else:
    375                     obj.id = self.storclient.set(data)

/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in sqlclient(self)
    249     def sqlclient(self):
    250         if self._sqlclient is None:
--> 251             self._sqlclient = DBSQLite(self)
    252         return self._sqlclient
    253 

/sandbox/lib/jumpscale/Jumpscale/data/bcdb/DBSQLite.py in __init__(self, bcdb)
     40             self._log_debug("NEW SQLITEDB in %s" % self._dbpath)
     41 
---> 42         self.sqlitedb = j.clients.peewee.SqliteDatabase(self._dbpath)
     43         if self.sqlitedb.is_closed():
     44             self.sqlitedb.connect()

/sandbox/lib/jumpscale/Jumpscale/jumpscale_generated.py in peewee(self)
    990     def peewee(self):
    991         if self._peewee is None:
--> 992             from Jumpscale.clients.peewee.PeeweeFactory import PeeweeFactory
    993             self._peewee =  PeeweeFactory()
    994         return self._peewee

/sandbox/lib/jumpscale/Jumpscale/clients/peewee/PeeweeFactory.py in <module>
      3 
      4 import importlib
----> 5 from peewee import *
      6 import uuid
      7 

ModuleNotFoundError: No module named 'peewee'


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant