-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
far2l does not build with python on ubuntu 24.04 lts #2373
Comments
I have configured cmake with: |
Also question: why far2l that comes via apt install is not built with python? python is essential part of debian based distros, so why not building it with python support there? |
|
@faerot you can try build with system python via About python problems lets ask far2l python creator @m32 |
Does not work either. With -DVIRTUAL_PYTHON=python3 it has this kind of errors:
I have installed |
python3 -m venv env /devel/bin/python3
This cannot be the system python interpreter. This speeds up building far2l and allows you to use your own virtual python instance as well as using a package like adbutils. |
I don't want to mess with various venvs because frankly I am not really sure what exactly the problem is. I am just trying to build far2l with python as stated by the documentation on front page here. Is the described way to build far2l with python is obsolete or makefiles are broken? Need to either fix the makefile or update the documentation. |
Before building with python enabled install requred package: and build as described in README.md, eg: will create virtual env in install/Plugins/python/plug/python with required python packages |
Unfortunately installing python3-venv did not help, I have deleted _build dir contents before trying again just in case, but error is pretty much the same.
|
I forgot about cffi requirements: |
@m32 However I still can not install it on the other (Linux Mint 22) machine. The following commands were executed successfully: |
When I tried again to install libffi-dev the response was: Could the libffi-dev version be a problem? |
This is something related to cmake - my is 3.25.1 on debian 12 or python3-dev Python3_INCLUDE_DIRS is available after: |
@m32 The list of required libraries to be installed is:
It would be helpful to place this list in some easily visible place. |
these are downloaded while building plugin: the cffi package must be compiled from source, otherwise there may be problems with running the plugin |
Thank you. Indeed I removed these 2 packages and the plugin still builds OK. But there is an error (that does not prevent the plugin from being built):
|
@m32 Grzegorz,
But it (python3-debugpy package) isn't installed by default . And not mentioned in requirements. |
debugpy, adbutils, cffi, pcpp are instaled while building python plugin - i'm sure CMakeLists.txt:493 line python plugin requires only python development package nothing more, rest is installed from pypi |
@shmuz is not used by python plugin, can you provide more context ? log, ... |
@m32 , here is the full log of building the Python plugin:
|
yours build is ok your compilation is correct but surprising start it's normal up to this point prebuild.sh:21 tries to force reinstallation of packages from sources and somehow a different (system?) python interpreter starts up for you and starts messing around with something other than itself (Not uninstalling pycparser at /usr/lib/python3/dist-packages) on debian 12/python3.11 looks like: |
@shmuz yt-dl ? - I don't know what it's about at all my script:
|
@m32 , I don't have a clue about what that yt-dl is. I don't consider it as a major problem and even don't have plans to investigate it. |
Indeed, that helped to build it. README needs to be updated to include libffi-dev requirement not to waste your time every time someone will try to build far2l with python :) |
I have tried last release 2.6.3, it did not build due to some xerces error
I have tried master, and it fails to build
The text was updated successfully, but these errors were encountered: