Open maserowik opened 3 days ago
python3 -m venv --system-site-packages venv source venv/bin/activate
python3 -m pip install --upgrade pip python3 -m pip install -r requirements.txt
so as long as I stay in the venv environment, the webapp starts to run but not I get this
(venv) sysop@dx-spider-test:~/web$ python3 webapp.py
2024-09-22 12:44:28,463 [INFO] (webapp.py) Starting SPIDERWEB
2024-09-22 12:44:28,467 [INFO] (webapp.py) Version:v2.5.4
2024-09-22 12:44:28,472 [INFO] (webapp.py) visit saved on: data/visits.json
2024-09-22 12:44:28,475 [INFO] (cty.py) CTY: start initialization
2024-09-22 12:44:28,476 [INFO] (cty.py) /home/sysop/web/lib/../data/cty_wt_mod.dat not present: proceding to download it
2024-09-22 12:44:28,476 [INFO] (cty.py) connection to: https://www.country-files.com/cty/cty_wt_mod.dat
2024-09-22 12:44:29,656 [INFO] (cty.py) cty file saved in: /home/sysop/web/lib/../data/cty_wt_mod.dat
2024-09-22 12:44:29,664 [INFO] (cty.py) number of lines reads: 8609
2024-09-22 12:44:29,666 [INFO] (cty.py) number of valid lines: 7638
2024-09-22 12:44:29,948 [INFO] (cty.py) number of entities: 346
2024-09-22 12:44:29,948 [INFO] (cty.py) number of single alias: 28652
2024-09-22 12:44:29,949 [INFO] (cty.py) loading:/home/sysop/web/lib/../cfg/country.json
2024-09-22 12:44:30,782 [INFO] (cty.py) memory used for prefix: 961264 bytes
2024-09-22 12:44:30,783 [INFO] (cty.py) CTY: initialization complete
2024-09-22 12:44:30,785 [INFO] (qry.py) [Errno 2] No such file or directory: '../cfg/config.json'
2024-09-22 12:44:30,786 [INFO] (qry.py) trying with other path...
2024-09-22 12:44:30,786 [INFO] (qry.py) config file loaded
2024-09-22 12:44:30,910 [INFO] (qry.py) db connection pool created
2024-09-22 12:44:31,180 [ERROR] (adxo.py) time data 'Dec 26, 2024 2024-Jan 4, 2025' does not match format '%b %d %Y'
2024-09-22 12:44:31,184 [INFO] (plot_data_provider.py) Class: ContinentsBandsProvider init start
2024-09-22 12:44:31,185 [INFO] (plot_data_provider.py) Class: ContinentsBandsProvider refresh data
2024-09-22 12:44:31,185 [INFO] (plot_data_provider.py) Start
2024-09-22 12:44:31,186 [INFO] (plot_data_provider.py) doing query...
2024-09-22 12:44:31,257 [WARNING] (plot_data_provider.py) no data found
2024-09-22 12:44:31,257 [INFO] (plot_data_provider.py) query done
2024-09-22 12:44:31,261 [INFO] (plot_data_provider.py) Class: ContinentsBandsProvider init end
2024-09-22 12:44:31,262 [INFO] (plot_data_provider.py) Class: SpotsPerMounthProvider init start
2024-09-22 12:44:31,263 [INFO] (plot_data_provider.py) Class: SpotsPerMounthProvider refresh data
2024-09-22 12:44:31,263 [INFO] (plot_data_provider.py) Start
2024-09-22 12:44:31,263 [INFO] (plot_data_provider.py) doing query...
2024-09-22 12:44:31,281 [INFO] (plot_data_provider.py) query done
2024-09-22 12:44:31,282 [INFO] (plot_data_provider.py) Class: SpotsPerMounthProvider init end
2024-09-22 12:44:31,283 [INFO] (plot_data_provider.py) Class: SpotsTrend init start
2024-09-22 12:44:31,283 [INFO] (plot_data_provider.py) Class: SpotsTrend refresh data
2024-09-22 12:44:31,284 [INFO] (plot_data_provider.py) Start
2024-09-22 12:44:31,284 [INFO] (plot_data_provider.py) doing query...
/home/sysop/web/lib/qry.py:77: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
self.data = pd.read_sql(qs, con=cnx)
2024-09-22 12:44:31,409 [INFO] (plot_data_provider.py) query done
2024-09-22 12:44:31,410 [WARNING] (plot_data_provider.py) no data found
Traceback (most recent call last):
File "/home/sysop/web/webapp.py", line 162, in
not sure how to proceed? anyone have a suggestion?
Mike- N3BSQ
trying to install the webgui and I am getting the following message when i issue the install command. Any ideas?
sysop@DX-Spider:~/spider/spiderweb $ pip install -r requirements.txt error: externally-managed-environment
× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.