Re: python3 package import difference?

2024-08-08 Thread Cameron Simpson via Python-list
On 08Aug2024 21:55, Gilmeh Serda wrote: I guess in a sense Py2 was smarter figuring out what whent where and where it came from. Or it was a bad hack that has been removed. No, Python 2 offered less control. -- https://mail.python.org/mailman/listinfo/python-list

Re: python3 package import difference?

2024-08-07 Thread Cameron Simpson via Python-list
from dbi import * ModuleNotFoundError: No module named 'dbi' Python 3 imports are absolute (they start from the top of the package tree and you have no `dbi` at the top). You want a relative import i.e.: from .dbi import * Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: python3 package import difference?

2024-08-07 Thread Chris Angelico via Python-list
On Thu, 8 Aug 2024 at 03:40, Tobiah via Python-list wrote: > The one under rcs.dbi contains: > > from dbi import * > from regos import * > You probably want these to be package-relative now: from .dbi import * from .regos import * Or, since you're using names

Re: python3 package import difference?

2024-08-07 Thread Ronaldo Sc via Python-list
utorial/modules.html <https://docs.python.org/3/tutorial/modules.html#intra-package-references> in this link above we have some examples of relative imports: from . import echo from .. import formats from ..filters import equalizer In your code you're using "import *&quo

python3 package import difference?

2024-08-07 Thread Tobiah via Python-list
I have an old library from 20 some years ago for use with python2, that is structured like this: rcs ├── dbi │   ├── __init__.py │   ├── dbi.py │   └── regos.py └── __init__.py -- *empty* the __init__.py file under 'rcs' is empty. The one under rcs.dbi contains:

Re: venvs vs. package management

2024-05-20 Thread Left Right via Python-list
There are several independent problems here: 1. Very short release cycle. This is independent of the Python venv module but is indirectly influenced by Python's own release cycle. Package maintainers don't have time for proper testing, they are encouraged to release a bunch of new (

Re: venvs vs. package management

2024-05-19 Thread Piergiorgio Sartor via Python-list
On 19/05/2024 08.49, Peter J. Holzer wrote: [...] That's what package management on Linux is for. Sure, it means that you won't have the newest version of anything and some packages not at all, but you don't have to care about dependencies. Or updates. Well, that doesn

venvs vs. package management (was: Terminal Emulator (Posting On Python-List Prohibited))

2024-05-18 Thread Peter J. Holzer via Python-list
.g. if all our developers used Linux and preferrably the same version) I could see myself using venvs much less or maybe not at all. > The dependency nightmare created by python, pip and all the rest > cannot be resolved otherwise. That's what package management on Linux is for. Sure, it means

Safe package removal

2023-11-05 Thread dn via Python-list
After thread: "pip/pip3 confusion and keeping up to date" Over the years?centuries, have added various packages, using all of: - distribution-installer (dnf/yum - per apt-get) - su pip install, and - (user) pip install Because Fedora-Linux can be upgraded in-place. an amount of 'crud' hangs-a

Installing package as root to a system directory

2023-09-28 Thread Loris Bennett via Python-list
, but seems to me to be a little clunky, mainly because the files don't then belong to root. The most correct way, in my case, would probably be to create an RPM out of the Python package, but that seems like it would be too much overhead. What other approaches to people use? Cheers,

Re: Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread Peter J. Holzer via Python-list
On 2023-08-30 13:18:25 +, c.buhtz--- via Python-list wrote: > Am 30.08.2023 14:07 schrieb Peter J. Holzer via Python-list: > > another caveat: Japanese characters are usually double-width. So > > (unless your line length is 130 characters for English) you would > > want to add that line break e

Re: Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread c.buhtz--- via Python-list
Dear Peter, thanks for your reply. That is a very interesting topic. I was a bit wrong. I realized that textwrap.wrap() do insert linebreaks when "words" are to long. So even a string without any blank space well get wrapped. Am 30.08.2023 14:07 schrieb Peter J. Holzer via Python-list: anot

Re: Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread Peter J. Holzer via Python-list
On 2023-08-30 11:32:02 +, c.buhtz--- via Python-list wrote: > I do use "textwrap" package to wrap longer texts passages. Works well with > English. > But the source string used is translated via gettext before it is wrapped. > > Using languages like Japanese or Chi

Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread c.buhtz--- via Python-list
Hi, I do use "textwrap" package to wrap longer texts passages. Works well with English. But the source string used is translated via gettext before it is wrapped. Using languages like Japanese or Chinese would IMHO result in unwrapped text. Japanese rules do allow to break a l

Regarding- Issue on package install

2023-05-31 Thread Rakesh Vettrivel
x27;t') File "C:\Users\RAJESH.K\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 404, in _get_launcher raise ValueError(msg) ValueError: Unable to find resource t32.exe in package pip._vendor.distlib [notice] A new release of pip i

Re: [pygettext] --package-name and --package-version unknown

2023-05-08 Thread aapost
On 5/5/23 04:39, c.bu...@posteo.jp wrote: That being said, the git repo linked earlier has accepted commits to that file earlier this year. So read in to that what you will *shrugs* -- https://mail.python.org/mailman/listinfo/python-list

Re: [pygettext] --package-name and --package-version unknown

2023-05-08 Thread aapost
On 5/5/23 04:39, c.bu...@posteo.jp wrote: Thanks for the answer. Am 05.05.2023 03:24 schrieb aapost: pygettext is deprecated since xgettext supports python now, so using xgettext is recommended. If this is the official case then it should be mentioned in the python docs. The 3.11 docs still

Re: [pygettext] --package-name and --package-version unknown

2023-05-05 Thread c . buhtz
Thanks for the answer. Am 05.05.2023 03:24 schrieb aapost: pygettext is deprecated since xgettext supports python now, so using xgettext is recommended. If this is the official case then it should be mentioned in the python docs. The 3.11 docs still tell about pygettext and xgettext and don't

Re: [pygettext] --package-name and --package-version unknown

2023-05-04 Thread aapost
On 5/4/23 17:38, c.bu...@posteo.jp wrote: am I right to assume that "pygettext" is part of the official Python3 "package"? So it is OK to aks here? How can I set the "Project-Id-Version"? With "xgettext" I would use the arguments "--package-name&q

Re: [pygettext] --package-name and --package-version unknown

2023-05-04 Thread Alan Gauld
On 04/05/2023 22:38, c.bu...@posteo.jp wrote: > Hello, > > am I right to assume that "pygettext" is part of the official Python3 > "package"? So it is OK to aks here? > No it doesn't appear to be. It is not listed in the standard library. It is mentione

[pygettext] --package-name and --package-version unknown

2023-05-04 Thread c . buhtz
Hello, am I right to assume that "pygettext" is part of the official Python3 "package"? So it is OK to aks here? I do use pygettext to handle po and pot files. In the manpage I'm not able to find help about this. I would like to modify the header that pygettext doe

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Cameron Simpson
dle the occasional MP4 that a python program which basically manages JPEGs can't handle. It throws an exception so I can just get that to run a simple bash script to get the creation date. Yes, ffprobe is great, particularly the JSON output mode, very parsable. If you want to get into th

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak wrote: > Chris Green ha scritto: > > jak wrote: > >> rbowman ha scritto: > >>> On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > >>> > I'm looking for a Python (3) library to access (read only at present) > the metadata in MP4 video files, in particular I want to get at dates

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 20:19:37 +0100, Chris Green wrote: > That's why I hadn't thought it would help me as I'm after getting > metadata from an MP4 video file but I guess the metadata format may be > the same regardless of whether it's video or audio. If yuo chase back through the various ISOs you t

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak
rbowman ha scritto: On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available to do this? Ideally something available in the Ubun

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak
Chris Green ha scritto: jak wrote: rbowman ha scritto: On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available to do this? I

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
rbowman wrote: > On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > > > I'm looking for a Python (3) library to access (read only at present) > > the metadata in MP4 video files, in particular I want to get at dates > > and times. > > > > What's available to do this? Ideally something avai

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak wrote: > rbowman ha scritto: > > On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > > > >> I'm looking for a Python (3) library to access (read only at present) > >> the metadata in MP4 video files, in particular I want to get at dates > >> and times. > >> > >> What's available to do thi

Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available to do this? Ideally something available in the Ubuntu repositories but I can install with PIP if necessary. -- Chris Green · --

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > I'm looking for a Python (3) library to access (read only at present) > the metadata in MP4 video files, in particular I want to get at dates > and times. > > What's available to do this? Ideally something available in the Ubuntu > reposito

Re: My first attempt at a package.

2022-07-26 Thread Antoon Pardon
Op 25/07/2022 om 16:43 schreef Dennis Lee Bieber: On Mon, 25 Jul 2022 10:39:46 +0200, Antoon Pardon declaimed the following: Yes it is, but it doesn't answer my question: How do I create a package in which a file is built at install time. I just want to build a configuration file that

Re: My first attempt at a package.

2022-07-25 Thread Dennis Lee Bieber
On Mon, 25 Jul 2022 10:39:46 +0200, Antoon Pardon declaimed the following: >Yes it is, but it doesn't answer my question: How do I create a package >in which a file is built at install time. >I just want to build a configuration file that will among some other >info con

Re: My first attempt at a package.

2022-07-25 Thread Antoon Pardon
Op 19/07/2022 om 16:57 schreef David Lowry-Duda: On Tue, Jul 19, 2022 at 03:58:41PM +0200, Antoon Pardon wrote: I am writing a python package which has the following structure PACKAGE    * module1.py    * module2.py    * data.cfg However the data.cfg should be build at installation time

Re: My first attempt at a package.

2022-07-19 Thread David Lowry-Duda
On Tue, Jul 19, 2022 at 03:58:41PM +0200, Antoon Pardon wrote: I am writing a python package which has the following structure PACKAGE    * module1.py    * module2.py    * data.cfg However the data.cfg should be build at installation time. Can someone give advise on which packaging tool and

My first attempt at a package.

2022-07-19 Thread Antoon Pardon
I am writing a python package which has the following structure PACKAGE    * module1.py    * module2.py    * data.cfg However the data.cfg should be build at installation time. Can someone give advise on which packaging tool and how to use it, to accomplisch this. e.g. de data config.cfg

Re: dash/underscore on name of package uploaded on pypi

2022-06-01 Thread Dmitry Labazkin
On Friday, March 1, 2019 at 12:08:00 AM UTC+3, Terry Reedy wrote: > On 2/28/2019 11:09 AM, ast wrote: > > Hello > > > > I just uploaded a package on pypi, whose name is "arith_lib" > > > > The strange thing is that on pypi the package is renamed &q

Re: Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread George Fischhof
Turritopsis Dohrnii Teo En Ming ezt írta (időpont: 2022. máj. 25., Sze, 15:49): > Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys > > Good day from Singapore, > > Sharing this article for more awareness. > > Article: Popular PyPI Package 'ct

Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread Turritopsis Dohrnii Teo En Ming
Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys Good day from Singapore, Sharing this article for more awareness. Article: Popular PyPI Package 'ctx' and PHP Library 'phpass' Hijacked to Steal AWS Keys Link: https://thehackernews.com/2022/05/py

Re: Correct way to setup a package with both compiled C code and Python code?

2022-02-09 Thread Dieter Maurer
functions in Python. Is there a >>> tutorial on how to package such an extension? >> >> Look at "https://package.python.org";, >> especially >> "https://packaging.python.org/en/latest/guides/packaging-binary-extensions/";. > >Thank you, but that

Re: Correct way to setup a package with both compiled C code and Python code?

2022-02-08 Thread Christian Gollwitzer
Am 08.02.22 um 18:57 schrieb Dieter Maurer: Christian Gollwitzer wrote at 2022-2-7 20:33 +0100: we've developed a Python pacakge which consists of both a compiled extension module and some helper functions in Python. Is there a tutorial on how to package such an extension? Look at &

Re: Correct way to setup a package with both compiled C code and Python code?

2022-02-08 Thread Dieter Maurer
Christian Gollwitzer wrote at 2022-2-7 20:33 +0100: >we've developed a Python pacakge which consists of both a compiled >extension module and some helper functions in Python. Is there a >tutorial on how to package such an extension? Look at "https://package.python.org&qu

Correct way to setup a package with both compiled C code and Python code?

2022-02-07 Thread Christian Gollwitzer
Hi all, we've developed a Python pacakge which consists of both a compiled extension module and some helper functions in Python. Is there a tutorial on how to package such an extension? Most resources I found for distutils describe either building an extension or pure python mo

Re: Writing a package

2022-02-04 Thread Paulo da Silva
Às 02:01 de 05/02/22, Cameron Simpson escreveu: On 05Feb2022 00:37, Paulo da Silva wrote: Let's say I have a dir src containing another dir named foo and a script test.py. So, I have src/foo (dir) src/test.py (script) test.py has the folloing code: import foo as f c=f.C() I am inside src an

Re: Writing a package

2022-02-04 Thread Cameron Simpson
On 05Feb2022 00:37, Paulo da Silva wrote: >Let's say I have a dir src containing another dir named foo and a >script test.py. > >So, I have >src/foo (dir) >src/test.py (script) > >test.py has the folloing code: > >import foo as f >c=f.C() > >I am inside src and want to run python test.py. > >How

Writing a package

2022-02-04 Thread Paulo da Silva
Hello! Let's say I have a dir src containing another dir named foo and a script test.py. So, I have src/foo (dir) src/test.py (script) test.py has the folloing code: import foo as f c=f.C() I am inside src and want to run python test.py. How can I create the class C inside src/foo dir if i

Re: Call julia from Python: which package?

2021-12-21 Thread Dan Stromberg
Last I heard, Pypy itself will remain written in a statically typed dialect of Python that is closest to Python 2.7. However, what's written in that language includes JIT-compiled interpreters for both Python 2.x and Python 3.x. On Tue, Dec 21, 2021 at 9:15 AM Albert-Jan Roskam wrote: >Hi a

Re: Call julia from Python: which package?

2021-12-21 Thread Albert-Jan Roskam
Hi all, Thank you very much for your valuable replies! I will definitely do some tracing to see where the bottlenecks really are. It's good to know that pypy is still alive and kicking, I thought it was stuck in py2.7. I will also write a mini program during the holiday to see how th

Re: Call julia from Python: which package?

2021-12-18 Thread Martin Di Paola
careful and double check that what you are calling is really doing what you think. About the performance, Julia is not magic. It depends on how well it was coded each package. In my case I had a good experience except with Parquet.jl which it didn't understand how to handle categories in

Re: Call julia from Python: which package?

2021-12-17 Thread Oscar Benjamin
On Fri, 17 Dec 2021 at 23:11, Chris Angelico wrote: > > On Sat, Dec 18, 2021 at 10:01 AM Oscar Benjamin > wrote: > > > > On Fri, 17 Dec 2021 at 22:40, Chris Angelico wrote: > > > > > > On Sat, Dec 18, 2021 at 9:24 AM Oscar Benjamin > > > wrote: > > > > When I timed the result in Julia and in Py

Re: Call julia from Python: which package?

2021-12-17 Thread Chris Angelico
On Sat, Dec 18, 2021 at 10:01 AM Oscar Benjamin wrote: > > On Fri, 17 Dec 2021 at 22:40, Chris Angelico wrote: > > > > On Sat, Dec 18, 2021 at 9:24 AM Oscar Benjamin > > wrote: > > > When I timed the result in Julia and in Python I found that the Julia > > > code was slower than the Python code.

Re: Call julia from Python: which package?

2021-12-17 Thread Oscar Benjamin
On Fri, 17 Dec 2021 at 22:40, Chris Angelico wrote: > > On Sat, Dec 18, 2021 at 9:24 AM Oscar Benjamin > wrote: > > When I timed the result in Julia and in Python I found that the Julia > > code was slower than the Python code. Of course I don't know how to > > optimise Julia code so I asked one

Re: Call julia from Python: which package?

2021-12-17 Thread Chris Angelico
On Sat, Dec 18, 2021 at 9:24 AM Oscar Benjamin wrote: > When I timed the result in Julia and in Python I found that the Julia > code was slower than the Python code. Of course I don't know how to > optimise Julia code so I asked one of my colleagues who does (and who > likes to proselytise about J

Re: Call julia from Python: which package?

2021-12-17 Thread Oscar Benjamin
On Fri, 17 Dec 2021 at 15:04, Albert-Jan Roskam wrote: > > Hi, > > I have a Python program that uses Tkinter for its GUI. It's rather slow so I > hope to replace many or all of the non-GUI parts by Julia code. Has anybody > experience with this? Any packages you can recommend? I found three > a

Re: Call julia from Python: which package?

2021-12-17 Thread Lars Liedtke
Additionally I'd like to ask, if you e.g. used pandas and numpy before you make the effort of rewriting everything. Yes python is slower than compiled languages, but especially with numpy you can make use of compiled code underneath. Of course this could mean rewriting some existing code but stay

Re: Call julia from Python: which package?

2021-12-17 Thread Dan Stromberg
On Fri, Dec 17, 2021 at 7:02 AM Albert-Jan Roskam wrote: > Hi, > > I have a Python program that uses Tkinter for its GUI. It's rather slow so > I hope to replace many or all of the non-GUI parts by Julia code. Has > anybody experience with this? Any packages you can recommend? I found three > alt

Call julia from Python: which package?

2021-12-17 Thread Albert-Jan Roskam
Hi, I have a Python program that uses Tkinter for its GUI. It's rather slow so I hope to replace many or all of the non-GUI parts by Julia code. Has anybody experience with this? Any packages you can recommend? I found three alternatives: * https://pyjulia.readthedocs.io/en/latest/usage.html#

Re: How to package a Python command line app?

2021-12-10 Thread Anssi Saari
Manfred Lotz writes: > pyinstaller worked fine taking care of message.py and typer module. But > as said in my other reply it is glibc version dependent. Perhaps the included freeze.py script (included in the CPython source that is, in Tools/freeze) is worth considering as well. Although it also

Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 13:51:00 -0700 Mats Wichmann wrote: > On 12/9/21 11:35, Manfred Lotz wrote: > > > I played with pyinstaller which worked fine. However, it builds a > > dynamic executable and thus it is glibc version dependent. Means, I > > have to build different executables for differen glib

Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 21:23:58 +0100 "Peter J. Holzer" wrote: > On 2021-12-09 19:35:37 +0100, Manfred Lotz wrote: > > I played with pyinstaller which worked fine. However, it builds a > > dynamic executable and thus it is glibc version dependent. Means, I > > have to build different executables for

Re: How to package a Python command line app?

2021-12-09 Thread Mats Wichmann
archives are supposed to work. For me at least, I'm still not sure what you are trying to accomplish. "A Python command line app which requires some packages which are not in the standard library." If your code and its dependencies are "pure python" then you only need to

Re: How to package a Python command line app?

2021-12-09 Thread Peter J. Holzer
On 2021-12-09 19:35:37 +0100, Manfred Lotz wrote: > I played with pyinstaller which worked fine. However, it builds a > dynamic executable and thus it is glibc version dependent. Means, I > have to build different executables for differen glibc versions. Just build it for the oldest version. Even

Re: How to package a Python command line app?

2021-12-09 Thread Manfred Lotz
On Thu, 9 Dec 2021 18:18:26 +0100 "Dieter Maurer" wrote: > Manfred Lotz wrote at 2021-12-8 12:31 +0100: > >The are many possibilities to package a Python app, and I have to > >admit I am pretty confused. > > > >Here is what I have: > > > >A Pyt

Re: How to package a Python command line app?

2021-12-09 Thread Manfred Lotz
On Thu, 9 Dec 2021 17:34:03 + Barry wrote: > > On 8 Dec 2021, at 18:27, Manfred Lotz wrote: > > > > The are many possibilities to package a Python app, and I have to > > admit I am pretty confused. > > > > Here is what I have: > > > &g

Re: How to package a Python command line app?

2021-12-09 Thread Barry
> On 8 Dec 2021, at 18:27, Manfred Lotz wrote: > > The are many possibilities to package a Python app, and I have to admit > I am pretty confused. > > Here is what I have: > > A Python command line app which requires some packages which are not in > the standard

Re: How to package a Python command line app?

2021-12-09 Thread Dieter Maurer
Manfred Lotz wrote at 2021-12-8 12:31 +0100: >The are many possibilities to package a Python app, and I have to admit >I am pretty confused. > >Here is what I have: > >A Python command line app which requires some packages which are not in >the standard library. Are they o

Re: How to package a Python command line app?

2021-12-09 Thread Loris Bennett
Hi Manfred, Manfred Lotz writes: > Hi Loris, > > On Wed, 08 Dec 2021 15:38:48 +0100 > "Loris Bennett" wrote: > >> Hi Manfred, >> >> Manfred Lotz writes: >> >> > The are many possibilities to package a Python app, and I have to >

Re: How to package a Python command line app?

2021-12-08 Thread Manfred Lotz
Hi Loris, On Wed, 08 Dec 2021 15:38:48 +0100 "Loris Bennett" wrote: > Hi Manfred, > > Manfred Lotz writes: > > > The are many possibilities to package a Python app, and I have to > > admit I am pretty confused. > > > > Here is what I have: &g

Re: How to package a Python command line app?

2021-12-08 Thread Loris Bennett
Hi Manfred, Manfred Lotz writes: > The are many possibilities to package a Python app, and I have to admit > I am pretty confused. > > Here is what I have: > > A Python command line app which requires some packages which are not in > the standard library. > > I am o

How to package a Python command line app?

2021-12-08 Thread Manfred Lotz
The are many possibilities to package a Python app, and I have to admit I am pretty confused. Here is what I have: A Python command line app which requires some packages which are not in the standard library. I am on Linux and like to have an executable (perhaps a zip file with a shebang

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread 2QdxY4RzWzUUiLuE
to track > > that down to the libturbojpeg0-dev package, install that, and after a > > bit more fussing around now have jpegdupes installed. > > > > Thanks for the help, > > > > Sweet! I like stories that have happy endings. > > (No compilers were harmed in th

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
On Tue, Sep 28, 2021 at 10:40 AM Skip Montanaro wrote: > > Woo hoo! It's installed. The ultimate error was a missing turbojpeg.h > file. Thank goodness for the apt-file command. I was able to track > that down to the libturbojpeg0-dev package, install that, and after a > bit

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Skip Montanaro
Woo hoo! It's installed. The ultimate error was a missing turbojpeg.h file. Thank goodness for the apt-file command. I was able to track that down to the libturbojpeg0-dev package, install that, and after a bit more fussing around now have jpegdupes installed. Thanks for the help, Skip --

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
On Tue, Sep 28, 2021 at 8:09 AM Skip Montanaro wrote: >> >> For the most part, a proper colorizing compiler can make the >> errors stand out among the spam of warnings, but it's hard when people >> copy and paste just the text. > > > In my defense, the entire traceback was red. :-) It's quite poss

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Skip Montanaro
> > For the most part, a proper colorizing compiler can make the > errors stand out among the spam of warnings, but it's hard when people > copy and paste just the text. > In my defense, the entire traceback was red. :-) It's quite possible that GCC colorized its error/warning messages, but colori

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
On Tue, Sep 28, 2021 at 4:46 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > I agree that the standard shouldn't regulate warnings. I'm also saying > that sometimes, it's a pain that it doesn't, and that not every warning > is the package maintainer's f

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread 2QdxY4RzWzUUiLuE
s of conditional compilation, often controlled by the preprocessor; achieving ideal results can be, well, "tricky." It's not a matter of not caring. At some point, it comes down to a question of ignoring a warning vs. cluttering up your code (preprocessor or otherwise) with extra c

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
On Tue, Sep 28, 2021 at 4:04 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-28 at 03:23:53 +1000, > Chris Angelico wrote: > > > On Tue, Sep 28, 2021 at 3:11 AM Skip Montanaro > > wrote: > > >> > > >> Those are all warnings. Are there any errors that follow them? > > > > > > > > >

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread 2QdxY4RzWzUUiLuE
On 2021-09-28 at 03:23:53 +1000, Chris Angelico wrote: > On Tue, Sep 28, 2021 at 3:11 AM Skip Montanaro > wrote: > >> > >> Those are all warnings. Are there any errors that follow them? > > > > > > Maybe I just missed the actual errors, but the compiler exit status was 1, > > so there must hav

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Dieter Maurer
Skip Montanaro wrote at 2021-9-27 07:48 -0500: >I'd like to use the jpegdupes package <https://pypi.org/project/jpegdupes/> but >can't seem to get past compilation issued related to jpegtrans-cffi. >Attempts to install any available versions on my XUbuntu system crap

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
one of the annoying things of building large C packages is when the maintainers don't care about warnings, and then legit errors get lost in the spam. >> The package doesn't seem to have had a release since 2018, but the >> GitHub repository has had changes as recently as a m

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Skip Montanaro
> > Those are all warnings. Are there any errors that follow them? > Maybe I just missed the actual errors, but the compiler exit status was 1, so there must have been. I'll give it another try. The package doesn't seem to have had a release since 2018, but the > Git

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
On Mon, Sep 27, 2021 at 10:49 PM Skip Montanaro wrote: > > I'd like to use the jpegdupes package <https://pypi.org/project/jpegdupes/> > but > can't seem to get past compilation issued related to jpegtrans-cffi. > Attempts to install any available versions on my

Package conflicts trying to install jpegdupes package

2021-09-27 Thread Skip Montanaro
I'd like to use the jpegdupes package <https://pypi.org/project/jpegdupes/> but can't seem to get past compilation issued related to jpegtrans-cffi. Attempts to install any available versions on my XUbuntu system crap out with this C compiler error message: In file includ

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-26 Thread Mohsen Owzar
Mohsen Owzar schrieb am Donnerstag, 23. September 2021 um 08:53:15 UTC+2: > DFS schrieb am Mittwoch, 22. September 2021 um 09:41:42 UTC+2: > > On 9/22/2021 1:54 AM, Mohsen Owzar wrote: > > > DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > > >> On 9/21/2021 10:38 PM, Mohsen Owzar

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-23 Thread Mohsen Owzar
DFS schrieb am Mittwoch, 22. September 2021 um 09:41:42 UTC+2: > On 9/22/2021 1:54 AM, Mohsen Owzar wrote: > > DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > >> On 9/21/2021 10:38 PM, Mohsen Owzar wrote: > >>> DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > >>

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread DFS
On 9/22/2021 1:54 AM, Mohsen Owzar wrote: DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: On 9/21/2021 10:38 PM, Mohsen Owzar wrote: DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: On 9/21/2021 4:36 AM, Mohsen Owzar wrote: Hi Guys Long time ago I've written a pro

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread Mohsen Owzar
DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > On 9/21/2021 10:38 PM, Mohsen Owzar wrote: > > DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > >> On 9/21/2021 4:36 AM, Mohsen Owzar wrote: > >>> Hi Guys > >>> Long time ago I've written a program in Malab a GUI f

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread DFS
On 9/21/2021 10:38 PM, Mohsen Owzar wrote: DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: On 9/21/2021 4:36 AM, Mohsen Owzar wrote: Hi Guys Long time ago I've written a program in Malab a GUI for solving Sudoku puzzles, which worked not so bad. Now I try to write this GUI with

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread Roland Mueller via Python-list
st question is: > Is there any free OCR software, packages or code in Python, which I can > use to recognize the given digits and their positions in the puzzle square. > to my knowledge there is no Python package for OCR. Using a free OCR package that has a command line interface one could

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread Igor Korot
imgur.com Then you upload your image and post a perma-link here in reply. On Tue, Sep 21, 2021, 22:03 Mohsen Owzar wrote: > DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > > On 9/21/2021 4:36 AM, Mohsen Owzar wrote: > > > Hi Guys > > > Long time ago I've written a program in Ma

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread Mohsen Owzar
DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > On 9/21/2021 4:36 AM, Mohsen Owzar wrote: > > Hi Guys > > Long time ago I've written a program in Malab a GUI for solving Sudoku > > puzzles, which worked not so bad. > > Now I try to write this GUI with Python with PyQt5 or TKint

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread DFS
On 9/21/2021 4:36 AM, Mohsen Owzar wrote: Hi Guys Long time ago I've written a program in Malab a GUI for solving Sudoku puzzles, which worked not so bad. Now I try to write this GUI with Python with PyQt5 or TKinter. First question is: Is there any free OCR software, packages or code in Python,

Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread Mohsen Owzar
Hi Guys Long time ago I've written a program in Malab a GUI for solving Sudoku puzzles, which worked not so bad. Now I try to write this GUI with Python with PyQt5 or TKinter. First question is: Is there any free OCR software, packages or code in Python, which I can use to recognize the given dig

Re: Python Package documentation error

2021-09-02 Thread Krishna
Hi Python Team, I think the statement "The __init__.py files are required to make Python treat directories containing the file as packages" is wrong in the documentation[1] because it is valid only for Python 2.x version not Python 3.x version. Even though it is good practice to have this file, it

Why Pyto package not available yet ???

2021-08-23 Thread Steeve Kerou via Python-list
Hi,  Here is Pyto, the first animated character that help you Learn Python like you play video games Why not implement me on Python PyPI ??? Episode 1: Intro / Who is Pyto ? / The Idle World | Pytorial | | | | | | | | | | | Episode 1: Intro / Who is Pyto ? / The Idle World

Re: Faker package [RESOLVED]

2021-06-19 Thread Rich Shepard
On Sat, 19 Jun 2021, MRAB wrote: It looks like you're mixing some Python usage ("faker.names()") in with command line usage. MRAB, You are correct. That was my problem. Judging from the docs, I'd say you need something more like: $ faker -o temp.out name for 1 fake name or: $ faker -r

Re: Faker package

2021-06-18 Thread MRAB
File "/usr/lib64/python3.7/site-packages/faker/factory.py", line 90, in _find_provider_class provider_module = import_module(provider_path) File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], packa

Re: Faker package

2021-06-18 Thread Rich Shepard
90, in _find_provider_class provider_module = import_module(provider_path) File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "",

Re: Faker package

2021-06-18 Thread MRAB
On 2021-06-18 23:24, Rich Shepard wrote: I'm trying to use the faker package to generate data to load in a sample postgres database so I can learn how to use tksheet and psycopg2. The 8.8.1 documentation shows output on a root shell prompt (#), not a python prompt (>>>).

Re: Faker package

2021-06-18 Thread Rich Shepard
On Fri, 18 Jun 2021, Terry Reedy wrote: I would try using the 'given' function/decorator of hypothesis (on pypi) to generate random data that conforms to whatever specification. Thank you, Terry. I'll do that. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >