Posts

data from database to fusioncharts in laravel

Image
0 I want to display the data from the database to myFusionCharts in laravel but somehow I got stuck. I can't find any answers from the documentations since they use predefined dataset in their sample. Any help would be much appreciated. This is my controller: public function index() { $subj = DB::Table('tbl_subjects') ->select('subject') ->get(); // ->toArray() foreach ( $subj as $s){ // $c = $s->subject; $c = DB::table('tbl_ordinances') ->where('subject', 'like', '%'.$s->subject.'%') ->get() ->count(); } // dd($subj,$c); return view('statistics',compact('subj','c'...

GCP DataflowRunner ImportErrors

Image
0 Code is working when using option DirectRunner. But getting import errors when switching it to DataflowRunner. lxml module is not found is the reason. When trying to use setuptools code along with the main code, its still not working ( --setup_file setup.py). setuptools.setup( name='lxml', version='4.2.5', install_requires=, packages= setuptools.find_packages(), ) Error: ImportError: No module named lxml [while running 'Run Query'] Any help/suggestions to overcome this error? Thanks. python google-cloud-platform apache-beam share | improve this question edited Nov 30 '18 at 3:35 ...