Re: pip install -e does not build shared libraries
On Wed, Jun 21, 2023 at 5:45 PM Cebtenzzre wrote: > In the case of bitsandbytes, there is no build folder generated at > all, just bitsandbytes.egg-info. This results in an error when I try > to import it, e.g. "CUDA SETUP: Required library version not found: > libbitsandbytes_cuda121_nocublaslt.so. Maybe you need to compile it > from source?". In this case, `python setup.py develop` does not seem > to work either. Correction: `make` must be run manually to build bitsandbytes. I made a mistake while testing. `make clean` doesn't work correctly, so I had to use `git clean` to get repeatable results. -- https://mail.python.org/mailman/listinfo/python-list
pip install -e does not build shared libraries
When I try to use `pip install -e .` with llama-cpp-python or bitsandbytes, it doesn't build the shared libraries like `pip install .` does. In the case of llama-cpp-python, there is no _skbuild folder generated at all, just llama_cpp_python.egg-info. This results in an error when I try to import it, e.g. "FileNotFoundError: Shared library with base name 'llama' not found". In this case, `python setup.py develop` also works. In the case of bitsandbytes, there is no build folder generated at all, just bitsandbytes.egg-info. This results in an error when I try to import it, e.g. "CUDA SETUP: Required library version not found: libbitsandbytes_cuda121_nocublaslt.so. Maybe you need to compile it from source?". In this case, `python setup.py develop` does not seem to work either. Is this something that can be fixed in the projects' setup.py or pyproject.toml, or is it an issue with pip or setuptools? Thanks, Cebtenzzre -- https://mail.python.org/mailman/listinfo/python-list
Re: TKinter in Python - advanced notions
On 6/21/23 09:47, Dan Kolis wrote: I've write a huge biotech program ( an IDE for synthetic biology ), and am slowly outgrowing TKINTER. Has anybody out there merged a little bit of TCL direct calls from Python 3.X to get more freedom then TKINTER for just some Windows ? I wish it looked better, but its 'ok'. I believe X11 IO is considerably superior for serious work the HTML. I mean 'serious' work. with lots of multi media windows. I am not talking about fb "Oh ! There is a window it opened inthe corner !"... trivial functionality. I don't know if it would help, but you can extend/add tcl/tk packages I don't remember the full instructions right off, but quickly reverse engineering my old stuff I think you just need to drop them in /usr/share/tcltk/ or equivalent. (I needed to do that to replace the terrible looking default file dialog for unix/linux with fsdialog.) then running something like the following from your Tk object self.eval('package require fsdialog') (reverse engineering the python tkinter source you can likely find other ways of doing more tcl direct stuff) I have not researched if there are some better, more featured (non-buggy) Text widgets implemented in tcl that can be dropped in, (I know several of the tcl drop in widgets I tried were lacking in refinement). From what I can tell, once upon a time there were better, more interesting projects and tutorials on extending tkinter, such as WCK (tkinter3000), but the only remnants of those remain publicly available are outdated unmaintained archives. You might also consider looking at the Grail browser source for research purposes, as it does some interesting things with some of the widgets, (parsing html and such), even though it is 20 years old now (and written in python 1). The update attempts from 10+ years ago have disappeared. (it's license is considered questionable from what I understand, so not sure if that is an aspect of it, the other being one of it's main features, python applets, is unsafe and was not easily fixable) You might already be beyond some of these things though. I know what you mean as far is feeling like the little bit extra you need pushes beyond what tkinter can do / makes you feel like you have outgrown the module. (I had to take a break from one of my projects and send it to development hell until my UI knowledge/skills improve after I found myself considering using xml schema appinfo annotations to store json formatted widget specific information, lol.) I have felt that sense of lack with most of the UI modules I have tried though. I don't know of a clear better python-only solution though that fits my personal needs. So I have to lean toward improving my tcl / C in hopes that it might help steer me toward that extra (which seems to be in the spirit of what tcl/tk's intent is to begin with). That will be a while for me though if I get there. -- https://mail.python.org/mailman/listinfo/python-list
Re: What is this TEST BANK stuff ?
On 2023-06-21, Chris Angelico via Python-list wrote: > On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list > wrote: >> >> Why do we tolerate this spam ? >> >> this seems most likely a way to inject viruses into people's workflow. >> >> That wiped out usenet. Ahh without an explaination; ( and it woudl have to >> be a good one ); what is the purpsoe of this, why is it here ? >> >> Can it be eliminated ? >> > > Yes, follow the mailing list instead of the newsgroup. Most spam > doesn't reach us over here at the list. > > Sign up here: https://mail.python.org/mailman/listinfo/python-list If you want to stick with NNTP as your access protocol, you can follow the list on gmane: nntp://news.gmane.io/gmane.comp.python.general However, the list recently stopped accepting posts via gmane, so you'll need to configure your nntp client to e-mail posts to that group. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Issue
On 22/06/2023 03.28, Pickle Pork via Python-list wrote: Python is unable to open. Exit Code: 1 This is not good. Please give some useful information: - from where did you download Python? - which operating system? - how do you "open" Python? etc. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list
Re: What is this TEST BANK stuff ?
On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list wrote: > > Why do we tolerate this spam ? > > this seems most likely a way to inject viruses into people's workflow. > > That wiped out usenet. Ahh without an explaination; ( and it woudl have to be > a good one ); what is the purpsoe of this, why is it here ? > > Can it be eliminated ? > Yes, follow the mailing list instead of the newsgroup. Most spam doesn't reach us over here at the list. Sign up here: https://mail.python.org/mailman/listinfo/python-list ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Python Issue
Python is unable to open. Exit Code: 1 -- https://mail.python.org/mailman/listinfo/python-list
TKinter in Python - advanced notions
Hi, I've write a huge biotech program ( an IDE for synthetic biology ), and am slowly outgrowing TKINTER. Has anybody out there merged a little bit of TCL direct calls from Python 3.X to get more freedom then TKINTER for just some Windows ? How about bold stories of successes ( yours, not mine ) on porting to stupid MS Windows from linux ? Adding threading makes TKinter hard ( but not impossible ) to manage. Also, a little bit here and there obviously exceeds TKINTERs goals. I wish it looked better, but its 'ok'. I believe X11 IO is considerably superior for serious work the HTML. I mean 'serious' work. with lots of multi media windows. I am not talking about fb "Oh ! There is a window it opened inthe corner !"... trivial functionality. Must be a uber expert out there. Is it you ? As attached. and little code. Coloring text makes me realise; some of this is pretty indirect, though this is quite well thought out, like all of TKINTER. Regards, Daniel B. Kolis """ An important worked example of text color and other look dynamic changes. This is the righ way to do this for fast changes ! 20 Jun 2023 22:11 """ import tkinter as tk from tkinter.font import Font class Pad( tk.Frame ): def __init__( self, parent, *args, **kwargs ): tk.Frame.__init__( self, parent, *args, **kwargs ) self.toolbar = tk.Frame( self, bg="#eee" ) self.toolbar.pack( side="top", fill="x" ) self.bold_btn = tk.Button( self.toolbar, text="CHANGE highlighted", command=self.make_Change_Highlighted ) self.bold_btn.pack( side="left" ) self.bold_btn = tk.Button( self.toolbar, text="CHANGE H.B.", command=self.make_Change_Hb ) self.bold_btn.pack( side="left" ) self.bold_btn = tk.Button( self.toolbar, text="Delete a char", command=self.make_Change_Delete ) self.bold_btn.pack( side="left" ) self.clear_btn = tk.Button( self.toolbar, text="Clear", command=self.clear_Some ) self.clear_btn.pack( side="left" ) # Applies this font self.bold_font = Font( family="Helvetica", size=14, weight="bold" ) self.da_Text = tk.Text( self ) self.da_Text.insert( "end", "Selectable parts of text is fun.\nSo is a happy birthday, right ?" ) self.da_Text.focus( ) self.da_Text.pack( fill="both", expand=True ) # configuring a tag called dingo-something self.da_Text.tag_configure( "reddingo", font=self.bold_font, foreground = "Red" ) self.da_Text.tag_configure( "bluedingo", font=self.bold_font, background = "Yellow", foreground = "Blue" ) # Button CB def make_Change_Delete( self ): self.da_Text.delete( '1.0', '1.1' ) # Button CB def make_Change_Highlighted( self ): # tk.TclError exception is raised if not text is selected try: self.da_Text.tag_add( "reddingo", "sel.first", "sel.last" ) except tk.TclError: tt = 569 # Button CB def make_Change_Hb( self ): try: lin_Idx = 2; col_Idx = 8 self.da_Text.tag_add( "bluedingo", f"{ lin_Idx }.{ col_Idx }", f"{ lin_Idx }.{ col_Idx + len( 'happy birthday' ) }" ) except: gg = 457 # Button CB def clear_Some( self ): self.da_Text.tag_remove( "reddingo", "1.0", 'end' ) self.da_Text.tag_remove( "bluedingo", "1.0", 'end' ) # Main body really def is_Main(): root = tk.Tk() Pad( root ).pack( expand=1, fill="both" ) root.mainloop() # Go if __name__ == "__main__": is_Main() Document end my ref: 21 Jun 2023, https://groups.google.com/g/comp.lang.python, Daniel B. Kolis, nafl -- https://mail.python.org/mailman/listinfo/python-list
What is this TEST BANK stuff ?
Why do we tolerate this spam ? this seems most likely a way to inject viruses into people's workflow. That wiped out usenet. Ahh without an explaination; ( and it woudl have to be a good one ); what is the purpsoe of this, why is it here ? Can it be eliminated ? Regards, Dan -- https://mail.python.org/mailman/listinfo/python-list