Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using "locale" for Localisation
Post: Using "locale" for Localisation

I'm using "locale" for localisation in a Python app. The translation of words and phrases is fine. I have a help menu with a few pages. I store these pages as string literals such as page1 = ''' To...
ChrisOfBristol General Coding Help 0 166 Apr-10-2024, 02:47 AM
    Thread: Webbrowser.open() causes errors
Post: Webbrowser.open() causes errors

I didn't realise others could edit my posts. I am extremely uncomfortable with that.
ChrisOfBristol General Coding Help 1 872 Apr-09-2023, 04:23 PM
    Thread: Replace Meson with PIP
Post: RE: Replace Meson with PIP

(Sep-24-2022, 02:38 PM)snippsat Wrote: Why you need to use Flatpak?This package involves many dependencies written in C. (Sep-24-2022, 02:38 PM)snippsat Wrote: Why you need to use Menson?I don't k...
ChrisOfBristol General Coding Help 4 1,065 Sep-24-2022, 05:54 PM
    Thread: Replace Meson with PIP
Post: RE: Replace Meson with PIP

(Sep-23-2022, 09:35 PM)Larz60+ Wrote: In order to use pip, the author must place package in PyPi.orgWell that's a simple answer - the Python element isn't standalone, so it couldn't be put on PyPI.
ChrisOfBristol General Coding Help 4 1,065 Sep-24-2022, 05:45 PM
    Thread: Installing Pillow from remote archive in Linux Flatpak
Post: RE: Installing Pillow from remote archive in Linux...

(Sep-23-2022, 06:05 PM)snippsat Wrote: - pip3 install --upgrade pipThat doesn't work, because it's more complicated for a Flatpak I suppose. I'm not going to worry about it. Thanks for your relevant...
ChrisOfBristol General Coding Help 6 1,450 Sep-23-2022, 07:48 PM
    Thread: Replace Meson with PIP
Post: Replace Meson with PIP

I have a Flatpak which uses Meson to install the main Python program. There is a meson.build file which finds appropriate directory names and does things like this: bindir = get_option(‘bindir’) datad...
ChrisOfBristol General Coding Help 4 1,065 Sep-23-2022, 06:28 PM
    Thread: Installing Pillow from remote archive in Linux Flatpak
Post: RE: Installing Pillow from remote archive in Linux...

This worked on my PC, but to make the Flatpak work I had put this parameter back "--prefix=${FLATPAK_DEST}" presumably to ensure that it is installed in the correct Flatpak directory. modules: ...
ChrisOfBristol General Coding Help 6 1,450 Sep-23-2022, 06:03 PM
    Thread: Installing Pillow from remote archive in Linux Flatpak
Post: RE: Installing Pillow from remote archive in Linux...

(Sep-22-2022, 10:18 PM)snippsat Wrote: Try with. build-commands: - pip3 install .Working install remote would be. pip3 install https://github.com/python-pillow/Pillow/archive/refs/tags/9.2.0.tar.g...
ChrisOfBristol General Coding Help 6 1,450 Sep-23-2022, 03:57 PM
    Thread: Installing Pillow from remote archive in Linux Flatpak
Post: Installing Pillow from remote archive in Linux Fla...

I've got a Flatpak which uses Python and Pillow (among other things). The installation of Pillow (was written for me, had contradictions and probably wasn't right but) worked until I had to update the...
ChrisOfBristol General Coding Help 6 1,450 Sep-22-2022, 07:59 PM
    Thread: Including data files in a package
Post: RE: Including data files in a package

The documentation on this is very confusing and the statements conflict in certain circumstances. A bug report/enhancement request has been made. This works: [options] package_dir = = src packa...
ChrisOfBristol General Coding Help 4 2,538 Oct-27-2021, 04:14 PM
    Thread: Including data files in a package
Post: RE: Including data files in a package

(Oct-24-2021, 09:11 PM)snippsat Wrote: Look at Configuring setup() using setup.cfg filesThe above states the following without any explanation of what the elements are: [options.data_files] /etc/my_...
ChrisOfBristol General Coding Help 4 2,538 Oct-25-2021, 06:44 PM
    Thread: Including data files in a package
Post: Including data files in a package

I want to create a binary package (Wheel) and possibly also a source package (tarball). I need to include a reference file and a help file. I believe I can do this for the source package just by stati...
ChrisOfBristol General Coding Help 4 2,538 Oct-24-2021, 07:33 PM
  Smile Thread: PyPI package and files
Post: RE: PyPI package and files

(Oct-22-2021, 08:49 PM)Axel_Erfurt Wrote: mypackage (Oct-22-2021, 10:51 PM)snippsat Wrote: Look at Entry PointsThe answer was to type info python This gives the syntax as python3 -m mymodules.myapp...
ChrisOfBristol General Coding Help 4 2,097 Oct-23-2021, 04:44 PM
    Thread: PyPI package and files
Post: PyPI package and files

I run my program from the command line like this: python3 myprogram.py {filename} where {filename} is the datafile that myprogram processes. Now I've created and installed it as a package I've trie...
ChrisOfBristol General Coding Help 4 2,097 Oct-22-2021, 07:58 PM
    Thread: Meson - to use or not to use
Post: Meson - to use or not to use

I have a Flatpak of an application which uses a Python (3.10.0) program. The Flatpak manifest uses two ways of installing Python programs, the graphics utility "Pillow" is installed like this (Flatpak...
ChrisOfBristol General Coding Help 1 1,425 Oct-13-2021, 09:53 PM
    Thread: Using install_requires
Post: RE: Using install_requires

I think this was a bad idea. I gave up and created a Flatpak.
ChrisOfBristol General Coding Help 12 5,541 Oct-13-2021, 07:00 PM
    Thread: Using install_requires
Post: RE: Using install_requires

@buran Having had a quick look at Pyinstaller I get the impression it will only run on the OS and distribution it's compiled on. That's a bit restrictive. I've already got a .deb source package that...
ChrisOfBristol General Coding Help 12 5,541 Feb-05-2019, 04:59 PM
    Thread: Using install_requires
Post: RE: Using install_requires

@buran OK, that's an important distinction. The GUI is created with Glade and GTK3+/PyGTK, does this count as a Python package or external software?
ChrisOfBristol General Coding Help 12 5,541 Feb-05-2019, 12:46 PM
    Thread: Using install_requires
Post: RE: Using install_requires

@buran OK, I have hugin installed on my computer. Should I expect pip3 install dist/*.tar.gz to install without error (it doesn't). or should I remove install_requires=['hugin'] and ensure in some oth...
ChrisOfBristol General Coding Help 12 5,541 Feb-04-2019, 10:43 PM
    Thread: Using install_requires
Post: RE: Using install_requires

@buran Quote:HSI HSI is an extension of Python. Import the hsi module and access Hugin functionality from your scripts. To see what objects and methods are available, run python -c 'import hsi; help(h...
ChrisOfBristol General Coding Help 12 5,541 Feb-04-2019, 08:40 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020