Closed maplepy closed 2 years ago
I don't have any plans to make an official linux version, but you should be able to clone the repo, pip install requirements.txt to a virtual env, and run main.py from there. If that doesn't work let me know, but I've largely moved on from this project and will only be doing critical bug fixes for a while longer.
Thing is, there's no requirements.txt :/
And when I try to run it I get this error
from fbs_runtime.application_context.PySide2 import ApplicationContext
Import "fbs_runtime.application_context.PySide2" could not be resolved
I thought I had reqs in the repo, but I guess not. fbs PyQt5 PySide2 I think you're just missing fbs
Well, got a new error now:
Traceback (most recent call last):
File "/home/maplepy/Programs/Github/DRG-Save-Editor/main.py", line 23, in <module>
import winreg
File "/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'winreg'
~/Programs/Github/DRG-Save-Editor ❯ pip install winreg
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement winreg (from versions: none)
ERROR: No matching distribution found for winreg
I'm sorry, I don't know why your venv is not letting you add new packages but winreg is only used in a few spots to pull the steam install path so you should be able to take it out with minimal fuss.
So I could remove the import and anything related to this library if I use linux?
Yes
[maplepy@syrup DRG-Save-Editor]$ python3 -u "/home/maplepy/Github/DRG-Save-Editor/main.py"
Traceback (most recent call last):
File "/home/maplepy/Github/DRG-Save-Editor/main.py", line 1320, in <module>
appctext = ApplicationContext()
File "/home/maplepy/.local/lib/python3.10/site-packages/fbs_runtime/application_context/__init__.py", line 31, in __init__
self.app
File "/home/maplepy/.local/lib/python3.10/site-packages/fbs_runtime/application_context/__init__.py", line 54, in app
result.setApplicationName(self.build_settings['app_name'])
File "/home/maplepy/.local/lib/python3.10/site-packages/fbs_runtime/application_context/__init__.py", line 65, in build_settings
return _source.load_build_settings(self._project_dir)
File "/home/maplepy/.local/lib/python3.10/site-packages/fbs_runtime/application_context/__init__.py", line 127, in _project_dir
return _source.get_project_dir()
File "/home/maplepy/.local/lib/python3.10/site-packages/fbs_runtime/_source.py", line 21, in get_project_dir
raise FbsError(
fbs_runtime.FbsError: Could not determine the project base directory. Was expecting src/main/python.
Yeah no it isn't working either
Installed
fbs is part of the build process that packages the program for distribution. You might want to take a look here for info on building for linux. The other thing I notice is that you're using python 3.10, where the fbs documentation says that it only works for python 3.6. And the error message is telling you that it didn't find main.py in the right place. The only thing that immediately comes to mind is that (if main.py is in src/main/python) you might be running from a different current directory than the parent of src.
Since you seem to be using only Python with PyQT5 and PySide2 which are all usable on Linux, would you be interested in making a linux version out of it? or at least able to provide some instructions on how to run it from Linux itself?
I love your editor, fantastic job! If you need help or anything I'd be happy to help!
Rock and Stone brother