Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread 2QdxY4RzWzUUiLuE
On 2021-09-28 at 10:44:02 +1000, Chris Angelico wrote: > 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 libturbojpeg

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 more fussing around no

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 -- https:

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 fault. :-) Agreed. For the most part, a pro

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread 2QdxY4RzWzUUiLuE
On 2021-09-28 at 04:16:58 +1000, Chris Angelico wrote: > 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

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 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

Re: Package conflicts trying to install jpegdupes package

2021-09-27 Thread Chris Angelico
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 have been. I'll give it another try. Yeah, one of the annoying things of bui

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 > GitHub repository has had change

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 > 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 thi

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Hello Spencer, On 16/10/2018 17:15, Spencer Graves wrote: > Where can I find a reasonable tutorial on how to create a Python > package? IMO, the best documentation about this is the tutorial: https://docs.python.org/3/tutorial/modules.html#packages > According to the Python 3 Glossar

Re: Package creation documentation?

2018-10-16 Thread Thomas Jollans
On 2018-10-16 17:15, Spencer Graves wrote: >   Where can I find a reasonable tutorial on how to create a Python > package? > > >   I've not created a Python package before, and I want to. Sadly, > I'm having trouble finding reasonable documentation on how to do so. > > >   According

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Given your coding experience also you may want to look at https://docs.python.org/3/reference/import.html#packages, which is the technical detail of what a package is (And "how" it's implemented). -- https://mail.python.org/mailman/listinfo/python-list

Re: Package directory question

2018-06-26 Thread Ben Finney
From: Ben Finney Robert Latest via Python-list writes: > Because the main.py script needs to import the tables.py module from > backend, I put this at the top if main.py: > >sys.path.append('../..') >import jobwatch.backend.tables as tables > > My question is: Is this the way it should

Re: Package directory question

2018-06-25 Thread Robert Latest via Python-list
Ben Finney wrote: > Robert Latest via Python-list writes: > >> Because the main.py script needs to import the tables.py module from >> backend, I put this at the top if main.py: >> >>sys.path.append('../..') >>import jobwatch.backend.tables as tables >> >> My question is: Is this the way i

Re: Package directory question

2018-06-24 Thread Ben Finney
Robert Latest via Python-list writes: > Because the main.py script needs to import the tables.py module from > backend, I put this at the top if main.py: > >sys.path.append('../..') >import jobwatch.backend.tables as tables > > My question is: Is this the way it should be done? It looks f

Re: Package DLL or SO in wheel

2018-05-17 Thread dieter
Chris Nyland writes: > We have several internal modules we have developed that are used mostly to > read different types of data files. Most of the time the different data > file formats come with some sort of DLL or SO files that gives a standard > interface to read the files. Our design pattern

Re: Package containing C sources (Posting On Python-List Prohibited)

2018-01-31 Thread Vincent Vande Vyvre
Le 31/01/18 à 07:52, Victor Porton a écrit : Lawrence D’Oliveiro wrote: On Wednesday, January 31, 2018 at 6:13:00 PM UTC+13, Victor Porton wrote: I am going to create a Python wrapper around a generally useful C library. So the wrapper needs to contain some C code to glue them together. Not n

Re: Package containing C sources

2018-01-30 Thread dieter
Victor Porton writes: > I am going to create a Python wrapper around a generally useful C library. > So the wrapper needs to contain some C code to glue them together. > > Can I upload a package containing C sources to PyPi? You can. This is documented in "https://docs.python.org/2/extending/b

Re: Package containing C sources (Posting On Python-List Prohibited)

2018-01-30 Thread Victor Porton
Lawrence D’Oliveiro wrote: > On Wednesday, January 31, 2018 at 6:13:00 PM UTC+13, Victor Porton wrote: >> I am going to create a Python wrapper around a generally useful C >> library. So the wrapper needs to contain some C code to glue them >> together. > > Not necessarily. It’s often possible to

Re: Package not visible/available on pypi

2017-08-13 Thread dieter
Kryptxy via Python-list writes: > I had recently uploaded a package on pypi. For some reason, I removed the > package, and committed a BIG mistake along the way. > I clicked the DELETE PACKAGE [Warning about NEVER TO CLICK THAT BUTTON] > (silly me!) > Now, after re-uploading the package, its no

Re: Package setup best practice style question

2016-05-28 Thread Steven D'Aprano
On Sun, 29 May 2016 03:00 am, Steven D'Aprano wrote: > On Sun, 29 May 2016 02:15 am, Gerald Britton wrote: > >> suppose I have a simple python project setup like this: [...] To which I responded: > If this is a single project, why do you set it up like this? Is there a > reason why you don't ju

Re: Package setup best practice style question

2016-05-28 Thread Steven D'Aprano
On Sun, 29 May 2016 02:15 am, Gerald Britton wrote: > suppose I have a simple python project setup like this: > > Project diectory > prog.py > pkg directory > __init__.py > mod1.py >class A: If this is a single project, why do you set it up like this

Re: Package manager cooperation? (was Weaknesses of distro package managers)

2015-03-16 Thread Chris Angelico
On Tue, Mar 17, 2015 at 2:32 PM, Michael Torrie wrote: > A meta package manager could, in theory, interact with all these systems > in a unified way. That's certainly one approach. http://xkcd.com/927/ ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Package manager cooperation? (was Weaknesses of distro package managers)

2015-03-16 Thread Mark Lawrence
On 17/03/2015 03:32, Michael Torrie wrote: On 03/16/2015 09:09 PM, Rustom Mody wrote: OTOH many large-scale systems have sprouted their own packaging-systems And indeed PIP and CPAN are both forms of package managers to fit the special needs of those languages' developers. Sometimes that works

Re: Package manager cooperation? (was Weaknesses of distro package managers)

2015-03-16 Thread Michael Torrie
On 03/16/2015 09:09 PM, Rustom Mody wrote: > OTOH many large-scale systems have sprouted their own packaging-systems And indeed PIP and CPAN are both forms of package managers to fit the special needs of those languages' developers. Sometimes that works well with the OS package manager, sometimes

Re: package extension problem

2012-02-13 Thread Terry Reedy
On 2/13/2012 12:58 PM, Miki Tebeka wrote: import new_pandas as np df = np.DataFrame({'A':[1,2,3],'B':[4,5,6]}) col_A = df['A'] I'm not familiar with pandas, but my *guess* will be that you'll need to override __getitem__ in the new DataFrame. This is essentially the same problem that if you, f

Re: package extension problem

2012-02-13 Thread Peter Otten
Fabrizio Pollastri wrote: > Ok. To be more clear, consider the real python package Pandas. > > This package defines a Series class and a DataFrame class. > The DataFrame is a matrix that can have columns of > different type. > > If I write > > import pandas as pd > df = pd.DataFrame({'A':[1,2,3

Re: package extension problem

2012-02-13 Thread Jerry Hill
On Sun, Feb 12, 2012 at 1:46 PM, Fabrizio Pollastri wrote: > Hello, > > I wish to extend the functionality of an existing python package by > creating > a new package that redefines the relevant classes of the old package. Each > new class inherits the equivalent old class and adds new methods. >

Re: package extension problem

2012-02-13 Thread Miki Tebeka
> import new_pandas as np > df = np.DataFrame({'A':[1,2,3],'B':[4,5,6]}) > col_A = df['A'] I'm not familiar with pandas, but my *guess* will be that you'll need to override __getitem__ in the new DataFrame. -- http://mail.python.org/mailman/listinfo/python-list

Re: package extension problem

2012-02-13 Thread Fabrizio Pollastri
Ok. To be more clear, consider the real python package Pandas. This package defines a Series class and a DataFrame class. The DataFrame is a matrix that can have columns of different type. If I write import pandas as pd df = pd.DataFrame({'A':[1,2,3],'B':[4,5,6]}) a data frame with two cols na

Re: package extension problem

2012-02-13 Thread Miki Tebeka
> B[some_hash] still returns an instance of the old class A, while I want an instance of the new class A. I don't understand this sentence. How does B[some_hash] related to A? I've tried the below and it seems to work. Can you paste some code to help us understand more? -- old.py -- class A:

Re: Package management

2010-08-04 Thread Lawrence D'Oliveiro
In message <87pqxy2aqd@benfinney.id.au>, Ben Finney wrote: > Have you ever tried to make such a package and get it into Debian? I have found it very easy to recreate the same steps used by the package maintainers. For instance, “apt-get source ” brings down the exact same source files used

Re: Package management

2010-08-04 Thread Ben Finney
Lawrence D'Oliveiro writes: > In message <87aap44mc7.fsf...@benfinney.id.au>, Ben Finney wrote: > > > Sadly, Python's package management is rather lacking by these > > standards. The Distutils legacy assumption of “package recipient, > > system administrator, and end user are all the same person”

Re: Package management (was: Why is there no platform independent way of clearing a terminal?)

2010-08-04 Thread Lawrence D'Oliveiro
In message <87aap44mc7.fsf...@benfinney.id.au>, Ben Finney wrote: > Sadly, Python's package management is rather lacking by these standards. > The Distutils legacy assumption of “package recipient, system > administrator, and end user are all the same person”, among other design > decisions, makes

Re: package import dangers

2009-10-09 Thread Ethan Furman
Thanks to all for the answers! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: package import dangers

2009-10-06 Thread Dave Angel
Steven D'Aprano wrote: On Tue, 06 Oct 2009 21:44:35 -0400, Dave Angel wrote: I'm surprised to see you missed this. A module doesn't generally import itself, but it's an easy mistake for a circular dependency to develop among modules. Circular imports are always a difficulty. That has

Re: package import dangers

2009-10-06 Thread Steven D'Aprano
On Tue, 06 Oct 2009 21:44:35 -0400, Dave Angel wrote: > I'm surprised to see you missed this. A module doesn't generally import > itself, but it's an easy mistake for a circular dependency to develop > among modules. Circular imports are always a difficulty. That has nothing to do with making m

Re: package import dangers

2009-10-06 Thread Dave Angel
Steven D'Aprano wrote: On Tue, 06 Oct 2009 18:42:16 +0200, Diez B. Roggisch wrote: The most common problem is that a file is used as module and as executable at the same time. Like this: --- test.py --- class Foo(object): pass if __name__ == "__main__": import test assert Foo

Re: package import dangers

2009-10-06 Thread Steven D'Aprano
On Tue, 06 Oct 2009 17:01:41 -0700, Carl Banks wrote: >> Why would a module need to import itself? Surely that's a very rare >> occurrence -- I think I've used it twice, in 12 years or so. I don't >> see why you need to disparage the idea of combining modules and scripts >> in the one file because

Re: package import dangers

2009-10-06 Thread Carl Banks
On Oct 6, 3:56 pm, Steven D'Aprano wrote: > On Tue, 06 Oct 2009 18:42:16 +0200, Diez B. Roggisch wrote: > > The most common problem is that a file is used as module and as > > executable at the same time. > > > Like this: > > > --- test.py --- > > > class Foo(object): > >     pass > > > if __name_

Re: package import dangers

2009-10-06 Thread Steven D'Aprano
On Tue, 06 Oct 2009 18:42:16 +0200, Diez B. Roggisch wrote: > The most common problem is that a file is used as module and as > executable at the same time. > > Like this: > > --- test.py --- > > class Foo(object): > pass > > > if __name__ == "__main__": >import test >assert Foo i

Re: package import dangers

2009-10-06 Thread Diez B. Roggisch
Ethan Furman wrote: > Greetings! > > I'm working on a package with multiple modules (and possibly packages), > and I would like to do it correctly. :) > > I have read of references to possible issues regarding a module being > imported (and run) more than once, but I haven't been able to find >

Re: Package for fast plotting of many data points in Python?

2009-07-15 Thread mmanns
On Sat, 11 Jul 2009 15:33:32 -0700 (PDT) Daniel Platz wrote: > thanks for your repleys. I have tried matplotlib but it is extremely > slow. I think it is more optimized for good looking plots instead of > speed. I do not know the Python bindings of gnuplot and Veusz. To > clarify the issue again,

Re: Package for fast plotting of many data points in Python?

2009-07-11 Thread Ben Finney
Daniel Platz writes: > I do not know the Python bindings of gnuplot and Veusz. A web search does, though. http://clusty.com/search?query=gnuplot+python> http://clusty.com/search?query=veusz+python> -- \“The problem with television is that the people must sit and | `\kee

Re: Package for fast plotting of many data points in Python?

2009-07-11 Thread Daniel Platz
Hi, thanks for your repleys. I have tried matplotlib but it is extremely slow. I think it is more optimized for good looking plots instead of speed. I do not know the Python bindings of gnuplot and Veusz. To clarify the issue again, by 25000 data points I mean 25000 pixels, i.e. corresponding (x,y

Re: Package for fast plotting of many data points in Python?

2009-07-10 Thread Jeremy Sanders
tt-industries wrote: > Hi, > > I am programming a oscilloscope module in Python. For this reason, I > want to plot very many data points as fast as possible. This can be > more than 100 000 at once. So far I have been using the ploting module > of wxPython. However, it becomes unstable for more t

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread lazy1
Hello Daniel, > Can someone recommend me a faster plotting library? I found out gnuplot to be blazing fast for many many points. I usually just call it using subprocess but there are Python bindings to it somewhere as well. HTH, -- Miki http://pythonwise.blogspot.com -- http://mail.python.org

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Roy Smith
In article <0734dc45-d8a0-4f28-b945-f9e179f30...@h11g2000yqb.googlegroups.com>, tt-industries wrote: > I am programming a oscilloscope module in Python. Sigh. I guess I'm showing my age, but I still can't get used to the idea that the right tool to build an oscilloscope is no longer a solder

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Ben Finney
tt-industries writes: > I am programming a oscilloscope module in Python. For this reason, I > want to plot very many data points as fast as possible. This can be > more than 100 000 at once. I think you will find good results using Numpy for your arrays of data http://numpy.scipy.org/> and Matp

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Chris Rebert
On Thu, Jul 9, 2009 at 3:03 PM, tt-industries wrote: > Hi, > > I am programming a oscilloscope module in Python. For this reason, I > want to plot very many data points as fast as possible. This can be > more than 100 000 at once. So far I have been using the ploting module > of wxPython. However,

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Stef Mientki
tt-industries wrote: Hi, I am programming a oscilloscope module in Python. For this reason, I want to plot very many data points as fast as possible. This can be more than 100 000 at once. At once is impossible ;-) So far I have been using the ploting module of wxPython. which plotting modul

Re: package questions

2009-05-22 Thread Scott David Daniels
Daniel wrote: Thanks for doing the experiment. I'll begin to consider testing with python 2.6 for a possible upgrade. I hope you know you can have different minor versions installed simultaneously. --Scott David Daniels scott.dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-

Re: package questions

2009-05-22 Thread Daniel
On May 22, 3:37 pm, Scott David Daniels wrote: > Daniel wrote: > > I'm on WinXP using Python 2.5  Sorry I didn't mention that at first. > > Generally, you want the full version number (my 2.5 is 2.5.4). > However, I set up your demo setup, and found that 2.6.2 worked, and > 2.5.4 failed in the sam

Re: package questions

2009-05-22 Thread Scott David Daniels
Daniel wrote: I'm on WinXP using Python 2.5 Sorry I didn't mention that at first. Generally, you want the full version number (my 2.5 is 2.5.4). However, I set up your demo setup, and found that 2.6.2 worked, and 2.5.4 failed in the same way you see. I also see that even inside the effects dir

Re: package questions

2009-05-22 Thread Daniel
On May 22, 11:29 am, Scott David Daniels wrote: > Daniel wrote: > > Hello, > > > I've posted about this before, but after reading the docs, I have a > > few more questions > > here are the docs:http://docs.python.org/tutorial/modules.html#packages > > here is my previous post: > >http://groups.goo

Re: package questions

2009-05-22 Thread Scott David Daniels
Daniel wrote: Hello, I've posted about this before, but after reading the docs, I have a few more questions here are the docs: http://docs.python.org/tutorial/modules.html#packages here is my previous post: http://groups.google.com/group/comp.lang.python/browse_thread/thread/3a352159f6828eb9/cda

Re: package with executable

2009-05-20 Thread Stefano Costa
Il Wed, 20 May 2009 07:01:39 +0100, A. Cavallo ha scritto: > With the standard distutils (no need for setuptools) the config.py file > might look like: Right, I ended up using setuptools just because I used paster to create the project layout. I'll think about using plain distutils instead. > i

Re: package with executable

2009-05-19 Thread A. Cavallo
Hi, > Matplotlib and Numpy, and a command line program. My goal is to create a > distributable package, that should ideally contain both the "gnucal" > package and the command line program. > * where should the executable module be wrt setup.py and/or the > package directory in the s

Re: package with executable

2009-05-19 Thread MRAB
Ben Finney wrote: Stefano Costa writes: my name is Stefano Costa, I am an archaeologist and I am developing GNUCal, a radiocarbon calibration program released under the GNU GPL. [1][2] That is a great use of Python, and sounds like interesting work. I would highly recommend you change the n

Re: Package problem

2009-05-19 Thread David Lyon
On Tue, 19 May 2009 13:29:47 +0100, "A. Cavallo" wrote: > You could try: > > http://download.opensuse.org/repositories/home:/cavallo71:/python-opt/ > > This is a python interpreter installed under /opt/opt-python-2.7a0. > All you have to do is sourcing /opt/opt-python-2.7a0/opt-python-env.sh > f

Re: package with executable

2009-05-19 Thread Ben Finney
Stefano Costa writes: > my name is Stefano Costa, I am an archaeologist and I am developing > GNUCal, a radiocarbon calibration program released under the GNU GPL. > [1][2] That is a great use of Python, and sounds like interesting work. I would highly recommend you change the name, though. Yo

Re: Package problem

2009-05-19 Thread David Lyon
On Wed, 20 May 2009 00:40:28 +0900, David Cournapeau wrote: > The discussion has nothing to do with setuptools, or even python for > that matter. It has everything to do with python > on any system (including windows). That's why you should avoid > installing from sources into the location

Re: package with executable

2009-05-19 Thread Jeff McNeil
On May 19, 2:54 pm, Stefano Costa wrote: > Hi, > my name is Stefano Costa, I am an archaeologist and I am developing > GNUCal, a radiocarbon calibration program released under the GNU GPL. > [1][2] > > Currently the program consists of a small "library", largely based on > Matplotlib and Numpy, an

Re: Package problem

2009-05-19 Thread David Cournapeau
On Tue, May 19, 2009 at 9:29 PM, A. Cavallo wrote: >> > It is solved in other languages.. for example perl.. and delphi >> I don't know much about perl, and even less about delphi, but I am >> pretty sure it does not solve the problem of overwriting files from a >> package with an installation out

Re: Package problem

2009-05-19 Thread David Lyon
On Tue, 19 May 2009 15:45:42 +0900, David Cournapeau wrote: > There is no simple solution to the following situation: >- install setuptools from ubuntu... When I have a ubuntu system I will try it > But still, the whole > value of ..(python).. is to have a whole set of packages which > a

Re: Package problem

2009-05-19 Thread Benjamin Kaplan
On Tue, May 19, 2009 at 2:45 AM, David Cournapeau wrote: > On Tue, May 19, 2009 at 2:35 PM, David Lyon > wrote: > > On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau > > > wrote: > >> Given that nobody has managed to solve this problem, I doubt you will > >> find a solution. > > > > It is sol

Re: Package problem

2009-05-19 Thread A. Cavallo
> > It is solved in other languages.. for example perl.. and delphi > I don't know much about perl, and even less about delphi, but I am > pretty sure it does not solve the problem of overwriting files from a > package with an installation outside the control of the package > manager. On a sytem a

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 2:35 PM, David Lyon wrote: > On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau > wrote: >> Given that nobody has managed to solve this problem, I doubt you will >> find a solution. > > It is solved in other languages.. for example perl.. and delphi I don't know much ab

Re: Package problem

2009-05-18 Thread David Lyon
On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau wrote: > Given that nobody has managed to solve this problem, I doubt you will > find a solution. It is solved in other languages.. for example perl.. and delphi > If there was a reasonable solution, it would have > already been developed.

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 1:31 PM, David Lyon wrote: > > Hi David, > > I guess paraphrased you are saying "don't touch your packages".. > > To my point of view, the needs of the developer override the > priorities of the O/S house... > > We should expect "old" packages on our systems from the O/S >

Re: Package problem

2009-05-18 Thread David Lyon
Hi David, I guess paraphrased you are saying "don't touch your packages".. To my point of view, the needs of the developer override the priorities of the O/S house... We should expect "old" packages on our systems from the O/S and have an easier way to update them to whatever we want.. That's

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 1:15 PM, David Cournapeau wrote: > something like virtualenv for packages using autotools. ^^^ Sorry, I meant setuptools here, not autotools David -- http://mail.python.org/mailman/listinfo/python-list

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 4:52 AM, Sverre wrote: > I'm using Ubuntu and some of the packages in the repository are too > old. So I got the thought to remove nearly  all packages downloaded > from the repository and install them with easy_install. Is this a way > to go without greater problems? This

Re: Package problem

2009-05-18 Thread A. Cavallo
On Monday 18 May 2009 20:52:52 Sverre wrote: > I'm using Ubuntu and some of the packages in the repository are too > old. So I got the thought to remove nearly all packages downloaded > from the repository and install them with easy_install. Is this a way > to go without greater problems? If you'

Re: Package / Module Hierarchy question

2009-01-04 Thread alex goretoy
You might try this in qwe.py import os,sys sys.path.append(os.getcwd()+"../") This will allow you to then import modules from module(dir). Hope this helps. OTOH, there maybe a better solution. -Alex Goretoy http://www.alexgoretoy.com On Sun, Jan 4, 2009 at 9:10 PM, Torsten Mohr wrote: > Hi,

Re: package structure?

2008-12-14 Thread Torsten Mohr
>> I wonder how i can make AClass() known in that package. >> > > Why don't you put the contents of smod1.py in mod/smod1/__init__.py? > It'll work this way. Of course, thanks for that hint. Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: package structure?

2008-12-14 Thread Arnaud Delobelle
Torsten Mohr writes: > Hi, > > in a package i'd like to have a structure like this: > > Files end with ".py", others are directories: > > mod > __init__.py # sets __all__ = ['smod1'] > smod1.py # contains AClass() > smod1 > __init__.py # sets __all__ = ['abc', 'def']

Re: package structure?

2008-12-14 Thread Benjamin Kaplan
On Sun, Dec 14, 2008 at 3:16 PM, Torsten Mohr wrote: > Hi, > > in a package i'd like to have a structure like this: > > Files end with ".py", others are directories: > > mod > __init__.py # sets __all__ = ['smod1'] > smod1.py # contains AClass() > smod1 >__init__.py # se

Re: package import

2008-02-06 Thread Sean Allen
Thanks. Found that 10 minutes after I sent. On Feb 6, 2008, at 4:57 AM, Diez B. Roggisch wrote: > Sean Allen wrote: > >> ok, what am i doing wrong? >> >> in current working directory i have: >> >> t.py >> sub/t1.py >> >> t.py is: >> >> import sub.t1 >> >> i get: >> >> ImportError: No module named

Re: package import

2008-02-06 Thread Diez B. Roggisch
Sean Allen wrote: > ok, what am i doing wrong? > > in current working directory i have: > > t.py > sub/t1.py > > t.py is: > > import sub.t1 > > i get: > > ImportError: No module named sub.t1 > > t.py is > > import sub > > i get: > > ImportError: No module named sub.t1 > > -- > > i am o

Re: package import

2008-02-05 Thread Steve Holden
Sean Allen wrote: > ok, what am i doing wrong? > > in current working directory i have: > > t.py > sub/t1.py > > t.py is: > > import sub.t1 > > i get: > > ImportError: No module named sub.t1 > > t.py is > > import sub > > i get: > > ImportError: No module named sub.t1 > > -- > > i am ob

Re: package import question

2007-10-22 Thread Phoe6
On Oct 22, 1:24 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Phoe6 wrote: > > Hi all, > > I have the following directory structure: > > > wallpaper/ > > -main.py > > -ng/ > > -- __init__.py > > -- setdesktop.py > > -yb/ > >

Re: package import question

2007-10-22 Thread Peter Otten
Phoe6 wrote: > Hi all, > I have the following directory structure: > > wallpaper/ > -main.py > -ng/ > -- __init__.py > -- setdesktop.py > -yb/ > -- __init__.py > -- setdesktop.py > >>Fro

Re: package import question

2007-10-22 Thread Diez B. Roggisch
Phoe6 wrote: > Hi all, > I have the following directory structure: > > wallpaper/ > -main.py > -ng/ > -- __init__.py > -- setdesktop.py > -yb/ > -- __init__.py > -- setdesktop.py > >>Fro

Re: package rating system for the Cheese Shop

2007-05-13 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > On May 12, 2:49 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> Is there a package rating system for the Cheese Shop, like how Perl >>> has cpanratings (http://cpanratings.perl.org/)? >> I don't know CPAN, but maybe this is what you're lookin

Re: package rating system for the Cheese Shop

2007-05-12 Thread cbtube03
On May 12, 2:49 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Is there a package rating system for the Cheese Shop, like how Perl > > has cpanratings (http://cpanratings.perl.org/)? > > I don't know CPAN, but maybe this is what you're looking for: > > http://www.

Re: package rating system for the Cheese Shop

2007-05-12 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > Is there a package rating system for the Cheese Shop, like how Perl > has cpanratings (http://cpanratings.perl.org/)? I don't know CPAN, but maybe this is what you're looking for: http://www.cheeserater.com/ ? STeVe -- http://mail.python.org/mailman/listinfo/pyt

Re: Package vs. module

2006-12-16 Thread Gabriel Genellina
On 16 dic, 12:28, "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote: > NOW, this is all very nice and modular. BUT, the original module was a > single file, which could be run as a script as well as imported as a > module. The script features provided useful command line functionality. > (Using if __n

Re: Package to handle table text render (handle space or tab between the columns) ?

2006-10-06 Thread hanumizzle
On 10/6/06, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: > hanumizzle a écrit : > > On 10/6/06, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I would like print tabular values on terminal (stdout). Are there > >> package to handle table text render ? > > > > Have a look at: > > > > http

Re: Package to handle table text render (handle space or tab between the columns) ?

2006-10-06 Thread KLEIN Stéphane
hanumizzle a écrit : > On 10/6/06, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I would like print tabular values on terminal (stdout). Are there >> package to handle table text render ? > > Have a look at: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/267662 Thanks, this

Re: Package to handle table text render (handle space or tab between the columns) ?

2006-10-06 Thread hanumizzle
On 10/6/06, KLEIN Stéphane <[EMAIL PROTECTED]> wrote: > Hi, > > I would like print tabular values on terminal (stdout). Are there > package to handle table text render ? Have a look at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/267662 -- Theerasak -- http://mail.python.org/mailman

Re: Package organization

2006-07-25 Thread Mike Wyatt
: Re: Package organization From: Matt Good <[EMAIL PROTECTED]> Date: Sat, 15 Jul 2006 15:57:22 -0700 To: python-list@python.org One class per module? Sounds like you've been programming in Java

Re: Package organization

2006-07-17 Thread Steve Holden
Mike Wyatt wrote: > I've been playing around with Python for a few months now, and I just > recently started looking at packages to organize my growing project. So > far, I've been organizing my application into one class per module. > This has been working pretty well. For example, I simply

Re: Package organization

2006-07-15 Thread Matt Good
Mike Wyatt wrote: > I've been playing around with Python for a few months now, and I just > recently started looking at packages to organize my growing project. So > far, I've been organizing my application into one class per module. > This has been working pretty well. For example, I simply "imp

Re: package search

2006-06-11 Thread imho
boris ha scritto: > > COOL! You just saved me an awful lot of work. > > Thanks, Diego! > > Boris > ;-) Bye -- http://mail.python.org/mailman/listinfo/python-list

Re: package search

2006-06-11 Thread boris
imho wrote: > > You just have to put in "__init__.py" in "lib2" (the package directory > you are "extending"), the following lines: > > from pkgutil import extend_path > __path__ = extend_path(__path__, __name__) > > "__path__", in each __init__ module, is a list initialized with the > module's pa

  1   2   >