Comments (9)
@flexiondotorg I will take a look. I have to create a new VM to debug and test the code on Ubuntu MATE 21.10. I haven't seen these log lines on Fedora.
from python-caja.
#67 may fix the issue, it didn't show any bug on Fedora, I will try it on Ubuntu ASAP...
from python-caja.
In the live session (Ubuntu-MATE 21.10 "Impish Indri" - Beta amd64 (20210925)) running caja-file-management-properties
from terminal and navigating to Extensions tab leads to the following terminal output:
$ caja-file-management-properties
Initializing caja-open-terminal extension
Initializing caja-sendto extension
Initializing caja-wallpaper extension
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:49.682: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:49.682: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:49.686: Failed to set text from markup due to error parsing markup: Error on line 1 char 31: Invalid UTF-8 encoded text in name — not valid “Python: `\u00192~\xdcU”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.885: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.885: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.885: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.886: Failed to set text from markup due to error parsing markup: Error on line 1 char 35: Invalid UTF-8 encoded text in name — not valid “Python: \xb0\xd5\xfb\u000b\xe7\u007f”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.887: Failed to set text from markup due to error parsing markup: Error on line 1 char 31: Invalid UTF-8 encoded text in name — not valid “Python: `\u00192~\xdcU”
(caja-file-management-properties:5153): Gtk-WARNING **: 18:54:50.888: Failed to set text from markup due to error parsing markup: Error on line 1 char 31: Invalid UTF-8 encoded text in name — not valid “Python: `\u00192~\xdcU”
The above output is not expected.
from python-caja.
@rbuj Reverting this commit (from #58) fixes this issue:
from python-caja.
@rbuj Patched versions (that commit reverted) are published in this PPA for Focal, Hirsute and Impish
My testing confirms the issue is resolved and also the extensions list is correctly displayed now.
from python-caja.
@rbuj Reverting this commit (from #58) fixes this issue:
* [3ad9a5d](https://github.com/mate-desktop/python-caja/commit/3ad9a5d5e71736632ad979557c6f687596d24992)
Yeah this commit is buggy, because caja_python_load_file()
while actually having a const char*
argument keeps a reference in all_pyfiles
without making a copy, so it must not be freed. It also discards the const
qualifier in the PyImport_ImportModuleEx()
call, not sure what the implications are there.
from python-caja.
I may be wrong, but at first glance a g_strdup (filename)
seems to be missing at the line
Line 133 in 94538f8
from python-caja.
@flexiondotorg python extensions seem to work properly after applying #67 on Ubuntu MATE 21.10.
from python-caja.
Thanks for working on this. I'll test it later 👍
from python-caja.
Related Issues (20)
- python-caja does not look at /usr/share/caja-python/extensions HOT 4
- Examples won't work HOT 1
- pygobject initialization failed HOT 4
- ERROR:root:Could not find any typelib for Caja HOT 5
- Python lib suffix detection flawed (kind of) HOT 7
- don't install docbook data into GTK doc destination
- extension file has incomplete about dialog
- $XDG_DATA_DIR not defined HOT 2
- Unable to have multiple working extensions HOT 11
- lintian reports a grammar error (allows to -> allows one to) in some text output HOT 1
- Gettext domain is not preserved between extensions
- Make python-caja cross-compile safe HOT 5
- Where; documentation for python API HOT 14
- Python 3 compatibility HOT 4
- undefined symbol: _Py_ZeroStruct when built against current Debian Unstable as of 4-22-2018 HOT 4
- Problems related to Caja.OperationResult.IN_PROGRESS and some others HOT 1
- autogen.sh failed HOT 2
- autoconf errors HOT 1
- Caja-Python example with configurable settings via Configure Extension
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 python-caja.