ozsolarwind / siren Goto Github PK
View Code? Open in Web Editor NEWSEN's Interactive Renewable Energy Network tool
License: GNU Affero General Public License v3.0
SEN's Interactive Renewable Energy Network tool
License: GNU Affero General Public License v3.0
xlrd 2.0 removed xlsx:
python-excel/xlrd@2f015b7#comments
With xlrd 2.0.1 running siren-makeweatherfiles fails:
`% makeweatherfiles --help
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.10/makeweatherfiles", line 33, in <module>
from credits import fileVersion
File "/usr/lib/python3.10/site-packages/credits.py", line 31, in <module>
import editini
File "/usr/lib/python3.10/site-packages/editini.py", line 29, in <module>
from displaytable import Table
File "/usr/lib/python3.10/site-packages/displaytable.py", line 27, in <module>
import displayobject
File "/usr/lib/python3.10/site-packages/displayobject.py", line 27, in <module>
from turbine import Turbine
File "/usr/lib/python3.10/site-packages/turbine.py", line 30, in <module>
from senutils import getParents, getUser
File "/usr/lib/python3.10/site-packages/senutils.py", line 35, in <module>
xlrd.xlsx.ensure_elementtree_imported(False, None)
AttributeError: module 'xlrd' has no attribute 'xlsx'
%
I patched my local copy of senutils.py to avoid the problem:
--- siren-16e0a796f9c2c9201f61d865c672f9402a21afe1-orig/senutils.py 2023-02-28 20:56:29.000000000 +1100
+++ siren-16e0a796f9c2c9201f61d865c672f9402a21afe1/senutils.py 2023-03-19 21:00:11.553010251 +1100
@@ -31,10 +31,6 @@
import sys
from PyQt5 import QtCore, QtWidgets
import xlrd
-if sys.version_info[1] >= 9: # python 3.9 onwards
- xlrd.xlsx.ensure_elementtree_imported(False, None)
- xlrd.xlsx.Element_has_iter = True
-
class ClickableQLabel(QtWidgets.QLabel):
clicked = QtCore.pyqtSignal()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.