coulisse / spiderweb

Web Interface for DXSpider hamradio cluster
https://www.iu1bow.it
GNU General Public License v3.0
25 stars 12 forks source link

Installation error #71

Open maserowik opened 3 days ago

maserowik commented 3 days ago

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.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

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.

maserowik commented 3 hours 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 line_graph_st = SpotsTrend(logger, qm) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/sysop/web/lib/plot_data_provider.py", line 297, in init super().init(logger, qm, [], []) File "/home/sysop/web/lib/plot_data_provider.py", line 41, in init self.refresh() File "/home/sysop/web/lib/plot_data_provider.py", line 337, in refresh qry_data = self.load_data() ^^^^^^^^^^^^^^^^^^ File "/home/sysop/web/lib/plot_data_provider.py", line 330, in __load_data df = df.rolling("30D").mean() ^^^^^^^^^^^^^^^^^ File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/generic.py", line 12577, in rolling return Rolling( ^^^^^^^^ File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/window/rolling.py", line 170, in init self._validate() File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/window/rolling.py", line 1877, in _validate self._validate_datetimelike_monotonic() File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/window/rolling.py", line 1921, in _validate_datetimelike_monotonic if self._on.hasnans: ^^^^^^^^^^^^^^^^ File "properties.pyx", line 36, in pandas._libs.properties.CachedProperty.get File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 2840, in hasnans return bool(self._isnan.any()) ^^^^^^^^^^^ File "properties.pyx", line 36, in pandas._libs.properties.CachedProperty.get File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 2810, in _isnan return isna(self) ^^^^^^^^^^ File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/dtypes/missing.py", line 178, in isna return _isna(obj) ^^^^^^^^^^ File "/home/sysop/web/venv/lib/python3.11/site-packages/pandas/core/dtypes/missing.py", line 203, in _isna raise NotImplementedError("isna is not defined for MultiIndex") NotImplementedError: isna is not defined for MultiIndex

not sure how to proceed? anyone have a suggestion?

Mike- N3BSQ