Comments (3)
Apparently, "python2" isn't ubiquitous enough to warrant a patch. The above will remain in distro-specific package files.
from resynthesizer.
My understanding is that the hash bang is read by a shell. As I recall, the plug-in scripts are only usable from within GIMP and serve no purpose when called from a shell. Thus the hash bang is superfluous and I propose to remove it instead of changing it as you propose.
But I could be wrong, I need to study more especially concerning how GIMP in command line ( batch mode?) might execute plug-ins. In that case, I think GIMP must still be invoked first, GIMP invokes some version of a python interpreter, and GIMP does not read the hash bang.
Possibly the plug-in should check the version of Python separately, without the hash bang. I think it is of low priority, and would only serve rare users using very old Python.
Probably a higher priority for me to test that the plug-ins don't break under Python 3.
from resynthesizer.
I propose to remove it
+1, if batch mode doesn't require it. I'm not familiar with this.
plug-in should check the version of Python separately
-1
test that the plug-ins don't break under Python 3.
Here is an initial patch, as much as I could do without installing the plug-in and testing through gimp itself: http://sprunge.us/TjMR
There are some missing modules, such as "gettext", which I assume gimp will import in lieu of the plugin itself. Therefore I didn't fix these errors.
Also, testResynth.py seems broken:
(process:32019): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
** (process:32019): ERROR **: could not find handler for message: 6
Trace/breakpoint trap
Causative line (119):
image = pdb.gimp_file_load(infilepath, infilepath, run_mode=RUN_NONINTERACTIVE)
from resynthesizer.
Related Issues (20)
- Great tool, but wondering zip file consists of files of 2011 - 2013
- deprecations branch changes HOT 5
- ambiguity in which flatpak package to use HOT 3
- This plug-in didn't work on zorin os 16.1
- Uncrop doesn't work when there is an alpha channel HOT 1
- 404 link to gimp repositry HOT 2
- Nightly releases via GitHub Actions
- Menu strings should use Header Capitalization
- Cannot install in Arch linux HOT 6
- Can't build the deprecations branch on windows. HOT 6
- Not working on Fedora 36 HOT 1
- Most functionality does not appear in GIMP 2.10.30 on Ubuntu 22.04.1 HOT 15
- it doesn't run on ARM64 linux distros HOT 2
- An error occurred running python_fu_heal_selection HOT 2
- Error message HOT 3
- Roadmap for resynthesizer to Gimp 3 HOT 2
- Enhance enlarge by resynthesis
- The input map should be the same size as the input texture image
- resynthesizer_gui plugin crashes Mac OSX Sonoma 14.2 HOT 2
- Misbehaviour on context aware features within folders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resynthesizer.