Bug 372428

Summary: Missing "share" folder ?
Product: [Applications] kajongg Reporter: Sovxx <benoit.cardinet>
Component: generalAssignee: Wolfgang Rohdewald <wolfgang>
Status: RESOLVED FIXED    
Severity: normal CC: kde-games-bugs-null, simonandric5, wolfgang
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 17.04
Sentry Crash Report:

Description Sovxx 2016-11-13 12:01:56 UTC
Hi,

I am using Windows 10 with Python v3.5.1 and have git cloned the kajongg sources yesterday.

I have installed pyqt5 and twisted packages and cx_Freeze‑4.3.4‑cp35‑none‑win32.whl

I cannot start the game ; It looks like there is no "share" folder :

C:\Users\sovxx_000\Desktop\maj\kajongg\src>setup.py build
running build
running build_exe
Traceback (most recent call last):
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\setup.py", line 118, in <module>
    license=LICENSE)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\dist.py", line 362, in setup
    distutils.core.setup(**attrs)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\dist.py", line 231, in run
    metadata = metadata)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\freezer.py", line 136, in __init__
    self._VerifyConfiguration()
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\freezer.py", line 514, in _VerifyConfiguration
    sourceFileName)
cx_Freeze.freezer.ConfigError: cannot find file/directory named share

C:\Users\sovxx_000\Desktop\maj\kajongg\src>kajongg.py --qt5
not found:C:\Users\sovxx_000\Desktop\maj\kajongg\src\share\icons\kajongg.svgz
Traceback (most recent call last):
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\kajongg.py", line 188, in <module>
    MainWindow()
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\mainwindow.py", line 130, in __init__
    super(MainWindow, self).__init__()
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\kdestub.py", line 637, in __init__
    self.setCaption('')
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\kdestub.py", line 296, in setCaption
    self.setWindowIcon(KIcon('kajongg'))
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\kdestub.py", line 1150, in __init__
    raise UserWarning('not found:%s' % name)
UserWarning: not found:C:\Users\sovxx_000\Desktop\maj\kajongg\src\share\icons\kajongg.svgz


Launching winprep.py or setup.py beforehand doesn't help either :

C:\Users\sovxx_000\Desktop\maj\kajongg\src>winprep.py
Traceback (most recent call last):
  File "C:\Users\sovxx_000\Desktop\maj\kajongg\src\winprep.py", line 66, in <module>
    "kde4-config --expandvars --install data".split()).strip()
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 629, in check_output
    **kwargs).stdout
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 696, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "C:\Users\sovxx_000\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1220, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable

Thanks
Comment 1 Wolfgang Rohdewald 2017-01-21 12:04:07 UTC
I am not quite sure what you want to accomplish - if you just want to run kajongg on your own machine: after installing all you did, you can just start the kajongg.py script - no need to cx_freeze. You only need cx_freeze if you want to generate a windows installer to be used on other systems.

Anyway - README.windows is now up to date and should answer all your questions.

Actually you should not have to to any of this - a windows installer is available here, I just updated it: https://www.linux-apps.com/p/1109453/



It bundles all dependencies, so you do not even need to install python