BEEmod / BEE2.4

Tool to mod Portal 2's Puzzlemaker
283 stars 63 forks source link

Can't compile BEEmod on Linux #1552

Closed sonofevil closed 1 year ago

sonofevil commented 3 years ago

Getting this error trying to compile BEE2.4 on Arch Linux. No clue what it means.

BEE2 Version: git clone from minutes ago

pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp BEE2.spec
189 INFO: PyInstaller: 4.2
189 INFO: Python: 3.9.2
191 INFO: Platform: Linux-5.10.16-arch1-1-x86_64-with-glibc2.33
194 INFO: UPX is not available.
Reading translations from source...
Done!
Updating translations: 
> zh
> pl
> fr
> ja
> ru
> es
BEE2 Version (x.y.z): 4.39.2
25699 INFO: Extending PYTHONPATH with paths
['/home/hauke/BEE2.4/src',
 '/home/hauke/BEE2.4/build_tmp/BEE2',
 '/usr/lib/python3.9/site-packages/srctools-1.2.0-py3.9-linux-x86_64.egg']
25709 INFO: checking Analysis
25709 INFO: Building Analysis because Analysis-00.toc is non existent
25709 INFO: Initializing module dependency graph...
25715 INFO: Caching module graph hooks...
25719 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
25721 INFO: Analyzing base_library.zip ...
26965 INFO: Caching module dependency graph...
27013 INFO: running Analysis Analysis-00.toc
27045 INFO: Analyzing BEE2_launch.pyw
28304 INFO: Processing pre-find module path hook distutils from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
28305 INFO: distutils: retargeting to non-venv dir '/usr/lib/python3.9'
30922 INFO: Processing pre-safe import module hook win32com from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py'.
31209 INFO: Processing pre-find module path hook site from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-site.py'.
31209 INFO: site: retargeting to fake-dir '/usr/lib/python3.9/site-packages/PyInstaller/fake-modules'
36414 INFO: Processing pre-safe import module hook gi.repository.Gst from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gst.py'.
36415 INFO: Processing pre-safe import module hook gi.repository.GLib from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GLib.py'.
37181 INFO: Analyzing hidden import 'PIL._tkinter_finder'
37182 INFO: Processing module hooks...
37183 INFO: Loading module hook 'hook-pycparser.py' from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
37184 INFO: Loading module hook 'hook-appdirs.py' from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
37186 INFO: Excluding import of win32com from module appdirs
37186 INFO: Loading module hook 'hook-srctools.py' from '/usr/lib/python3.9/site-packages/srctools-1.2.0-py3.9-linux-x86_64.egg/srctools/_pyinstaller'...
37188 INFO: Excluding import of tkinter from module srctools.vtf
37188 INFO: Excluding import of wx from module srctools.vtf
37189 INFO: Excluding import of PIL.Image from module srctools.vtf
37189 INFO: Loading module hook 'hook-PIL.Image.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37477 INFO: Loading module hook 'hook-heapq.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37480 INFO: Excluding import of doctest from module heapq
37480 INFO: Loading module hook 'hook-packaging.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37481 INFO: Loading module hook 'hook-PyQt5.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
45204 WARNING: Hidden import "sip" not found!
45204 INFO: Loading module hook 'hook-lib2to3.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
45226 INFO: Loading module hook 'hook-gi.repository.GLib.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
Traceback (most recent call last):
  File "/usr/bin/pyinstaller", line 33, in <module>
    sys.exit(load_entry_point('pyinstaller==4.2', 'console_scripts', 'pyinstaller')())
  File "/usr/lib/python3.9/site-packages/PyInstaller/__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/usr/lib/python3.9/site-packages/PyInstaller/__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/usr/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 725, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/usr/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 672, in build
    exec(code, spec_namespace)
  File "BEE2.spec", line 179, in <module>
    bee2_a = Analysis(
  File "/usr/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 242, in __init__
    self.__postinit__()
  File "/usr/lib/python3.9/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__
    self.assemble()
  File "/usr/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 420, in assemble
    self.graph.process_post_graph_hooks()
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/analysis.py", line 367, in process_post_graph_hooks
    module_hook.post_graph()
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/imphook.py", line 447, in post_graph
    self._load_hook_module()
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/imphook.py", line 408, in _load_hook_module
    self._hook_module = importlib_load_source(
  File "/usr/lib/python3.9/site-packages/PyInstaller/compat.py", line 598, in importlib_load_source
    return mod_loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 469, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 969, in load_module
  File "<frozen importlib._bootstrap_external>", line 794, in load_module
  File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 711, in _load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/PyInstaller/hooks/hook-gi.repository.GLib.py", line 27, in <module>
    binaries, datas, hiddenimports = get_gi_typelibs('GLib', '2.0')
  File "/usr/lib/python3.9/site-packages/PyInstaller/utils/hooks/gi.py", line 90, in get_gi_typelibs
    path = findSystemLibrary(lib.strip())
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/bindepend.py", line 958, in findSystemLibrary
    return findLibrary(name)
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/bindepend.py", line 774, in findLibrary
    utils.load_ldconfig_cache()
  File "/usr/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 402, in load_ldconfig_cache
    path = m.groups()[-1]
AttributeError: 'NoneType' object has no attribute 'groups'

python-babel 2.9.0-1 pyinstaller 4.2-1 cython 0.29.22-1 python-mistletoe 0.7.2-1 libnoise 1.0.0-6 python-pillow 8.1.0-1 python-pyglet 1.5.14-1 python 3.9.2-1 tk 8.6.11.1-1

beepster4096 commented 3 years ago

I believe this is solved in pyinstaller 4.3. Can you try again now?

sonofevil commented 3 years ago

Yes, thank you, that helped. But now it fails with /dist/64bit being empty:

pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp BEE2.spec
160 INFO: PyInstaller: 4.3
160 INFO: Python: 3.9.4
162 INFO: Platform: Linux-5.11.16-arch1-1-x86_64-with-glibc2.33
164 INFO: UPX is not available.
Reading translations from source...
Done!
Updating translations: 
> zh
> pl
> fr
> ja
> ru
> es
BEE2 Version (x.y.z): 4.39.2-210508 
19095 INFO: Extending PYTHONPATH with paths
['/home/hauke/BEE2.4/src',
 '/home/hauke/BEE2.4/build_tmp/BEE2',
 '/usr/lib/python3.9/site-packages/srctools-1.2.0-py3.9-linux-x86_64.egg']
19099 INFO: checking Analysis
19099 INFO: Building Analysis because Analysis-00.toc is non existent
19099 INFO: Initializing module dependency graph...
19103 INFO: Caching module graph hooks...
19107 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
19108 INFO: Analyzing base_library.zip ...
20192 INFO: Caching module dependency graph...
20285 INFO: running Analysis Analysis-00.toc
20316 INFO: Analyzing BEE2_launch.pyw
21590 INFO: Processing pre-find module path hook distutils from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
21590 INFO: distutils: retargeting to non-venv dir '/usr/lib/python3.9'
24414 INFO: Processing pre-safe import module hook win32com from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py'.
24644 INFO: Processing pre-find module path hook site from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-site.py'.
24645 INFO: site: retargeting to fake-dir '/usr/lib/python3.9/site-packages/PyInstaller/fake-modules'
30739 INFO: Processing pre-safe import module hook gi.repository.Gst from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gst.py'.
30740 INFO: Processing pre-safe import module hook gi.repository.GLib from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GLib.py'.
31564 INFO: Analyzing hidden import 'PIL._tkinter_finder'
31565 INFO: Processing module hooks...
31565 INFO: Loading module hook 'hook-pycparser.py' from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
31566 INFO: Loading module hook 'hook-appdirs.py' from '/usr/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
31568 INFO: Loading module hook 'hook-srctools.py' from '/usr/lib/python3.9/site-packages/srctools-1.2.0-py3.9-linux-x86_64.egg/srctools/_pyinstaller'...
31571 INFO: Loading module hook 'hook-PIL.Image.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
31816 INFO: Loading module hook 'hook-heapq.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
31818 INFO: Loading module hook 'hook-packaging.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
31818 INFO: Loading module hook 'hook-PyQt5.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
35775 WARNING: Hidden import "sip" not found!
35776 INFO: Loading module hook 'hook-lib2to3.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
35793 INFO: Loading module hook 'hook-gi.repository.GLib.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36335 INFO: Loading module hook 'hook-distutils.util.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36337 INFO: Loading module hook 'hook-encodings.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36386 INFO: Loading module hook 'hook-pickle.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36390 INFO: Loading module hook 'hook-gi.repository.Gst.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36834 INFO: Processing pre-safe import module hook gi.repository.GObject from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GObject.py'.
36835 INFO: Processing pre-safe import module hook gi.repository.GModule from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GModule.py'.
36835 INFO: Processing pre-safe import module hook gi.repository.Gio from '/usr/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gio.py'.
36835 INFO: Loading module hook 'hook-PIL.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36838 INFO: Import to be excluded not found: 'FixTk'
36841 INFO: Loading module hook 'hook-gi.repository.GObject.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36976 WARNING: Hidden import "gi._gobject" not found!
36976 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
36976 INFO: Loading module hook 'hook-setuptools.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37023 INFO: Import to be excluded not found: 'setuptools.py27compat'
37023 INFO: Import to be excluded not found: 'setuptools.py33compat'
37023 INFO: Loading module hook 'hook-sysconfig.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37029 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
ldd: warning: you do not have execution permission for `/usr/lib/python3.9/site-packages/PyQt5/QtGui.abi3.so'
37090 WARNING: Unable to find Qt5 translations /usr/share/qt/translations/qtbase_*.qm. These translations were not packaged.
37091 INFO: Loading module hook 'hook-pkg_resources.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37139 WARNING: Hidden import "pkg_resources.py2_warn" not found!
37578 WARNING: Hidden import "pkg_resources.markers" not found!
37580 INFO: Loading module hook 'hook-xml.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37651 INFO: Loading module hook 'hook-idlelib.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37661 INFO: Loading module hook 'hook-importlib_metadata.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37662 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37663 INFO: Import to be excluded not found: 'FixTk'
37663 INFO: Loading module hook 'hook-setuptools.msvc.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37665 INFO: Loading module hook 'hook-distutils.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37665 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37666 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37668 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
ldd: warning: you do not have execution permission for `/usr/lib/python3.9/site-packages/PyQt5/QtCore.abi3.so'
37695 WARNING: Unable to find Qt5 translations /usr/share/qt/translations/qtbase_*.qm. These translations were not packaged.
37696 INFO: Loading module hook 'hook-_tkinter.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37783 INFO: checking Tree
37783 INFO: Building Tree because Tree-00.toc is non existent
37783 INFO: Building Tree Tree-00.toc
37790 INFO: checking Tree
37790 INFO: Building Tree because Tree-01.toc is non existent
37790 INFO: Building Tree Tree-01.toc
37846 INFO: checking Tree
37846 INFO: Building Tree because Tree-02.toc is non existent
37846 INFO: Building Tree Tree-02.toc
37848 INFO: Loading module hook 'hook-gi.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
37851 INFO: Loading module hook 'hook-gi.repository.Gio.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
38087 INFO: Loading module hook 'hook-gi.repository.GModule.py' from '/usr/lib/python3.9/site-packages/PyInstaller/hooks'...
38301 INFO: checking Tree
38302 INFO: Building Tree because Tree-03.toc is non existent
38302 INFO: Building Tree Tree-03.toc
38307 INFO: Looking for ctypes DLLs
38598 WARNING: library opengl32.dll required via ctypes not found
38634 WARNING: library glu32.dll required via ctypes not found
39057 WARNING: library d2d1.dll required via ctypes not found
39210 WARNING: library dinput8.dll required via ctypes not found
39248 WARNING: library wintab32.dll required via ctypes not found
39320 WARNING: library dsound.dll required via ctypes not found
39352 INFO: Analyzing run-time hooks ...
39359 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgres.py'
39364 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_glib.py'
39364 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_gstreamer.py'
39365 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_gio.py'
39365 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_gi.py'
39366 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth__tkinter.py'
39367 INFO: Including run-time hook '/usr/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
39377 INFO: Looking for dynamic libraries
ldd: warning: you do not have execution permission for `/usr/lib/libnettle.so.8'
ldd: warning: you do not have execution permission for `/usr/lib/libhogweed.so.6'
ldd: warning: you do not have execution permission for `/usr/lib/libgcc_s.so.1'
ldd: warning: you do not have execution permission for `/usr/lib/libxvidcore.so.4'
ldd: warning: you do not have execution permission for `/usr/lib/libcap.so.2'
ldd: warning: you do not have execution permission for `/usr/lib/libcdda_interface.so.0'
ldd: warning: you do not have execution permission for `/usr/lib/libcdda_paranoia.so.0'
ldd: warning: you do not have execution permission for `/usr/lib/libimagequant.so.0'
47222 INFO: Looking for eggs
47222 INFO: Using Python library /usr/lib/libpython3.9.so.1.0
47231 INFO: Warnings written to ../build_tmp/BEE2/warn-BEE2.txt
47279 INFO: Graph cross-reference written to ../build_tmp/BEE2/xref-BEE2.html
47309 INFO: Appending 'datas' from .spec
Unable to find "../dist/64bit/compiler" when adding binary and data files.
TeamSpen210 commented 3 years ago

Actually, that last line might be because you compiled the app before the compiler - it needs the latter so it can copy the files to the right spot.

sonofevil commented 3 years ago

strange, I thought for sure I did compile the compiler first. guess I need to retrace my steps.

sonofevil commented 3 years ago

oh right, the log is from the compilation of the compiler.

JustYourAverageGithubUser commented 3 years ago

Having the same issue and I absolutely compiled the compiler first.

ostapczuk commented 3 years ago

I ran into the same error message while building BEE2.4 from source on Linux Mint 19 - the first command (compiling the compiler) ran fine, but the other one failed:

oscypex@RADOM-JAZDA:~/Pobrane/BEE2.4/BEE2.4/src$ pyinstaller --distpath ../dist/BEE2/ --workpath ../build_tmp compiler.spec
89 INFO: PyInstaller: 4.5.1
89 INFO: Python: 3.6.9
90 INFO: Platform: Linux-4.15.0-136-generic-x86_64-with-LinuxMint-19-tara
92 INFO: UPX is not available.
BEE2 Version ("x.y.z" or blank for dev): 
1831 INFO: Extending PYTHONPATH with paths
['/home/oscypex/Pobrane/BEE2.4/BEE2.4/src',
 '/home/oscypex/Pobrane/BEE2.4/BEE2.4/build_tmp/compiler']
2365 INFO: checking Analysis
2369 INFO: Building because hiddenimports changed
2369 INFO: Initializing module dependency graph...
2372 INFO: Caching module graph hooks...
2382 INFO: Analyzing base_library.zip ...
3685 INFO: Caching module dependency graph...
3846 INFO: running Analysis Analysis-00.toc
3902 INFO: Analyzing compiler_launch.py
10853 INFO: Processing pre-find module path hook site from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks/pre_find_module_path/hook-site.py'.
10855 INFO: site: retargeting to fake-dir '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/fake-modules'
16337 INFO: Analyzing hidden import 'binhex'
16354 INFO: Analyzing hidden import 'statistics'
16381 INFO: Analyzing hidden import 'srctools.vec'
16382 INFO: Analyzing hidden import 'srctools.instancing'
16410 INFO: Analyzing hidden import 'srctools.cmdseq'
16415 INFO: Analyzing hidden import 'srctools.props_config'
16431 INFO: Analyzing hidden import 'srctools.choreo'
16433 INFO: Analyzing hidden import 'srctools.compiler.propcombine'
16587 INFO: Analyzing hidden import 'srctools.dmx'
16676 INFO: Analyzing hidden import 'precomp.conditions.addInstance'
16681 INFO: Analyzing hidden import 'precomp.conditions.antlaser'
16695 INFO: Analyzing hidden import 'precomp.conditions.apTag'
16754 INFO: Analyzing hidden import 'precomp.conditions.brushes'
16771 INFO: Analyzing hidden import 'precomp.conditions.catwalks'
16789 INFO: Analyzing hidden import 'precomp.conditions.connections'
16794 INFO: Analyzing hidden import 'precomp.conditions.conveyorBelt'
16801 INFO: Analyzing hidden import 'precomp.conditions.custItems'
16804 INFO: Analyzing hidden import 'precomp.conditions.cutoutTile'
16869 INFO: Analyzing hidden import 'precomp.conditions.entities'
16878 INFO: Analyzing hidden import 'precomp.conditions.faithplate'
16881 INFO: Analyzing hidden import 'precomp.conditions.fizzler'
16887 INFO: Analyzing hidden import 'precomp.conditions.glass'
16906 INFO: Analyzing hidden import 'precomp.conditions.logical'
16910 INFO: Analyzing hidden import 'precomp.conditions.piston_platform'
16919 INFO: Analyzing hidden import 'precomp.conditions.positioning'
16944 INFO: Analyzing hidden import 'precomp.conditions.python'
16952 INFO: Analyzing hidden import 'precomp.conditions.randomise'
16965 INFO: Analyzing hidden import 'precomp.conditions.removed'
16972 INFO: Analyzing hidden import 'precomp.conditions.resizableTrigger'
16983 INFO: Analyzing hidden import 'precomp.conditions.scaffold'
17008 INFO: Analyzing hidden import 'precomp.conditions.sendificator'
17013 INFO: Analyzing hidden import 'precomp.conditions.trackPlat'
17019 INFO: Analyzing hidden import 'precomp.conditions.vactubes'
17047 INFO: Processing module hooks...
17047 INFO: Loading module hook 'hook-srctools.py' from '/home/oscypex/.local/lib/python3.6/site-packages/srctools/_pyinstaller'...
17059 INFO: Loading module hook 'hook-pytest.py' from '/home/oscypex/.local/lib/python3.6/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
18957 INFO: Loading module hook 'hook-PIL.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
18968 INFO: Loading module hook 'hook-numpy.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
18995 INFO: Import to be excluded not found: 'f2py'
19059 INFO: Loading module hook 'hook-pygments.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
20787 INFO: Loading module hook 'hook-importlib_resources.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
20794 INFO: Loading module hook 'hook-importlib_metadata.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
20795 INFO: Loading module hook 'hook-pkg_resources.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
21481 INFO: Processing pre-safe import module hook win32com from '/home/oscypex/.local/lib/python3.6/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py'.
21733 INFO: Processing pre-safe import module hook six.moves from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py'.
21819 WARNING: Hidden import "pkg_resources.markers" not found!
21824 INFO: Loading module hook 'hook-PyQt5.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22050 INFO: Loading module hook 'hook-xml.dom.domreg.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22051 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22055 INFO: Import to be excluded not found: 'test'
22055 INFO: Loading module hook 'hook-PIL.Image.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22426 INFO: Loading module hook 'hook-encodings.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22512 INFO: Loading module hook 'hook-difflib.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22517 INFO: Loading module hook 'hook-pickle.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22520 INFO: Loading module hook 'hook-packaging.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22521 INFO: Loading module hook 'hook-numpy._pytesttester.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22526 INFO: Loading module hook 'hook-wcwidth.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22530 INFO: Loading module hook 'hook-xml.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22531 INFO: Loading module hook 'hook-scipy.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22532 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22539 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22637 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22637 INFO: Loading module hook 'hook-sysconfig.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22645 INFO: Loading module hook 'hook-heapq.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22651 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22655 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
22719 INFO: Loading module hook 'hook-setuptools.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
23152 WARNING: Hidden import "distutils.command.build_ext" not found!
23627 INFO: Loading module hook 'hook-setuptools.msvc.py' from '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks'...
23648 INFO: Looking for ctypes DLLs
23791 INFO: Analyzing run-time hooks ...
23797 INFO: Including run-time hook '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks/rthooks/pyi_rth_inspect.py'
23799 INFO: Including run-time hook '/home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py'
23808 INFO: Looking for dynamic libraries
24229 INFO: Looking for eggs
24230 INFO: Python library not in binary dependencies. Doing additional searching...
24308 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
24319 INFO: Warnings written to ../build_tmp/compiler/warn-compiler.txt
24403 INFO: Graph cross-reference written to ../build_tmp/compiler/xref-compiler.html
24417 INFO: checking PYZ
24424 INFO: Building because toc changed
24424 INFO: Building PYZ (ZlibArchive) ../build_tmp/compiler/PYZ-00.pyz
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/precomp/conditions/__init__.py
('future feature annotations is not defined',)
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/utils.py
('future feature annotations is not defined',)
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/precomp/template_brush.py
('future feature annotations is not defined',)
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/precomp/tiling.py
('future feature annotations is not defined',)
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/precomp/conditions/instances.py
('future feature annotations is not defined',)
Syntax error in  /home/oscypex/Pobrane/BEE2.4/BEE2.4/src/precomp/conditions/brushes.py
('future feature annotations is not defined',)
24994 INFO: Building PYZ (ZlibArchive) ../build_tmp/compiler/PYZ-00.pyz completed successfully.
25004 INFO: checking PKG
25005 INFO: Building because ../build_tmp/compiler/PYZ-00.pyz changed
25005 INFO: Building PKG (CArchive) PKG-00.pkg
25111 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
25112 INFO: Bootloader /home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/bootloader/Linux-64bit-intel/run
25112 INFO: checking EXE
25114 WARNING: ignoring icon, platform not capable
25115 INFO: Rebuilding EXE-00.toc because pkg is more recent
25115 INFO: Building EXE from EXE-00.toc
25116 INFO: Appending archive to ELF section in EXE ../build_tmp/compiler/vbsp_linux
25133 INFO: Building EXE from EXE-00.toc completed successfully.
25135 INFO: checking PKG
25137 INFO: Building because ../build_tmp/compiler/PYZ-00.pyz changed
25137 INFO: Building PKG (CArchive) PKG-01.pkg
25224 INFO: Building PKG (CArchive) PKG-01.pkg completed successfully.
25227 INFO: Bootloader /home/oscypex/.local/lib/python3.6/site-packages/PyInstaller/bootloader/Linux-64bit-intel/run
25228 INFO: checking EXE
25229 WARNING: ignoring icon, platform not capable
25229 INFO: Rebuilding EXE-01.toc because pkg is more recent
25229 INFO: Building EXE from EXE-01.toc
25229 INFO: Appending archive to ELF section in EXE ../build_tmp/compiler/vrad_linux
25238 INFO: Building EXE from EXE-01.toc completed successfully.
25239 INFO: checking COLLECT
WARNING: The output directory "../dist/BEE2/compiler" and ALL ITS CONTENTS will be REMOVED! Continue? (y/N)y
On your own risk, you can use the option `--noconfirm` to get rid of this question.
29454 INFO: Removing dir ../dist/BEE2/compiler
29457 INFO: Building COLLECT COLLECT-00.toc
29528 INFO: Building COLLECT COLLECT-00.toc completed successfully.
oscypex@RADOM-JAZDA:~/Pobrane/BEE2.4/BEE2.4/src$ pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp BEE2.spec
60 INFO: PyInstaller: 4.5.1
60 INFO: Python: 3.6.9
61 INFO: Platform: Linux-4.15.0-136-generic-x86_64-with-LinuxMint-19-tara
63 INFO: UPX is not available.
Reading translations from source...
Done!
Updating translations: 
> pl
> ru
> ja
> es
> zh
> fr
BEE2 Version (x.y.z): 
2994 INFO: Extending PYTHONPATH with paths
['/home/oscypex/Pobrane/BEE2.4/BEE2.4/src',
 '/home/oscypex/Pobrane/BEE2.4/BEE2.4/build_tmp/BEE2',
 '/home/oscypex/.local/lib/python3.6/site-packages']
3570 INFO: checking Analysis
3579 INFO: Appending 'datas' from .spec
Unable to find "../dist/64bit/compiler" when adding binary and data files.
CStafford-14 commented 3 years ago

I found out that the finished compiler was placed in /BEE2.4/dist/BEE2 rather than /BEE2.4/dist/64bit. I copied the compiler folder to the 64bit folder and it doesn't complain about the compiler missing.

I get an executable in /BEE2.4/dist/64bit/BEE2, but upon execution, a window displays claiming it can't find the idlelib module.


  File "BEE2_launch.pyw", line 50, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "app/BEE2.py", line 5, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "app/gameMan.py", line 35, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "app/backup.py", line 16, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "app/tk_tools.py", line 25, in <module>
ModuleNotFoundError: No module named 'idlelib'
[I] sound.load(): Loading sound "select" -> /home/user/beemod/BEE2.4/dist/64bit/BEE2/sounds/rollover.ogg
[W] BEE2_config.load(): Config "/home/user/.config/BEEMOD2/config/config.cfg" not found! Using defaults...
[I] BEE2_config.save(): Saving changes in config "/home/user/.config/BEEMOD2/config/config.cfg"!
[138600] Failed to execute script 'BEE2_launch' due to unhandled exception!```
Konclan commented 3 years ago

@CStafford-14 might be related to #1624, make sure the config folder exists

sonofevil commented 3 years ago

I can compile successfully through this workaround, but I get a different error upon trying to launch:

[I] utils.setup_localisations(): Language: 'en_US'
[I] BEE2_launch.<module>(): Arguments: ['./BEE2']
[I] BEE2_launch.<module>(): Running "bee2", version git-21-08-31:
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).

Edit: now this

[I] utils.setup_localisations(): Language: 'en_US'
[I] BEE2_launch.<module>(): Arguments: ['./BEE2']
[I] BEE2_launch.<module>(): Running "bee2", version git-21-08-31:
XIO:  fatal IO error 2 (No such file or directory) on X server ":0"
      after 29 requests (29 known processed) with 2 events remaining.
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 38 requests (38 known processed) with 2 events remaining.
sonofevil commented 3 years ago

Regarding the compile error, I guess the commands in the readme simply need to be changed to:

cd BEE2.4/src/
pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp compiler.spec
pyinstaller --distpath ../dist/64bit/ --workpath ../build_tmp BEE2.spec
CStafford-14 commented 3 years ago

@CStafford-14 might be related to #1624, make sure the config folder exists

I can confirm the config folder does exist and the issue still persists. However, when I executed the file this time, the log is the same with the exception that the warning line ([W] BEE2_config.load(): Config "/home/user/.config/BEEMOD2/config/config.cfg" not found! Using defaults...) is missing.

CStafford-14 commented 3 years ago

I can compile successfully through this workaround, but I get a different error upon trying to launch:

[I] utils.setup_localisations(): Language: 'en_US'
[I] BEE2_launch.<module>(): Arguments: ['./BEE2']
[I] BEE2_launch.<module>(): Running "bee2", version git-21-08-31:
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).

Edit: now this

[I] utils.setup_localisations(): Language: 'en_US'
[I] BEE2_launch.<module>(): Arguments: ['./BEE2']
[I] BEE2_launch.<module>(): Running "bee2", version git-21-08-31:
XIO:  fatal IO error 2 (No such file or directory) on X server ":0"
      after 29 requests (29 known processed) with 2 events remaining.
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 38 requests (38 known processed) with 2 events remaining.

I just recompiled BEE2 with the proposed changes in #1690. Not sure if it's what fixed the problem or not, but a folder called idlelib now resides in the BEE2 folder with the executable. When trying to execute, I get a similar error.

[I] utils.setup_localisations(): Language: 'en_US'
[I] BEE2_launch.<module>(): Arguments: ['./BEE2']
[I] BEE2_launch.<module>(): Running "bee2", version 4.40.2:
XIO:  fatal IO error 2 (No such file or directory) on X server ":1"
      after 178 requests (178 known processed) with 2 events remaining.
XIO:  fatal IO error 2 (No such file or directory) on X server ":1"
      after 188 requests (188 known processed) with 2 events remaining.
sonofevil commented 3 years ago

(...)/dist/64bit/logs/bee2.log:

[INFO] utils.setup_localisations(): Language: 'en_US'
[DEBUG] utils.setup_localisations(): Language codes: ['en_US.ISO8859-1', 'en_US', 'en.ISO8859-1', 'en']
[INFO] BEE2_launch.<module>(): Arguments: ['/home/hauke/BEE2.4/dist/64bit/BEE2/BEE2']
[INFO] BEE2_launch.<module>(): Running "bee2", version git-21-08-31:

After some googling it seems that the XIO error is often caused by missing language pack files. I noticed that (...)/dist/64bit/BEE2/share/locale/ doesn't contain any en_US folder, only en_CA, en_GB & en@shaw, but running BEE2 with LC_ALL=en_GB still produces the same error.

Wish the error was more verbose. Which file is missing? My Xorg log contains absolutely nothing about it.

TeamSpen210 commented 3 years ago

It could be the app icon, which is loaded very early on - try commenting out lines 76 and 81 here. That warning you got about the config being missing is expected, it prints when the file is being created the first time with default values.

sonofevil commented 3 years ago

It could be the app icon, which is loaded very early on - try commenting out lines 76 and 81 here. That warning you got about the config being missing is expected, it prints when the file is being created the first time with default values.

I rebuilt after commenting out those lines but I'm still getting the same error unfortunately.