Skip to content

Commit

Permalink
fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Trilarion committed Jul 19, 2017
1 parent f3e105e commit f46e976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/imperialism_remake/lib/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def send(self, value):

# write using a data stream
writer = QtCore.QDataStream(self.socket)
writer.setVersion(QtCore.QDataStream.Qt_5_6)
writer.setVersion(QtCore.QDataStream.Qt_5_5)
writer << bytearray

def count_bytes_written(self, bytes):
Expand Down
6 changes: 5 additions & 1 deletion source/imperialism_remake/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def main():
# guidelines at https://docs.python.org/3.6/library/multiprocessing.html#programming-guidelines
multiprocessing.set_start_method('spawn')

# test for minimal supported python version
# test for minimal supported python version (3.5)
required_version = (3, 5)
if sys.version_info < required_version:
raise RuntimeError('Python version must be {}.{} at least.'.format(*required_version))
Expand All @@ -158,6 +158,10 @@ def main():
except ImportError:
raise RuntimeError('PyQt5 must be installed.')

# test for minimal supported Qt version (5.5)
if QtCore.QT_VERSION < 0x50500:
raise RuntimeError('Qt version of PyQt5 must be 5.5 at least.')

# fix PyQt5 exception eating
fix_pyqt5_exception_eating()

Expand Down

0 comments on commit f46e976

Please sign in to comment.