Re: pygame.midi input/output not working
On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site says this: > > "Pygame still does not run on Python 3.11" This doesn't sound like "we haven't got around to preparing packages yet" and more like "there's a serious incompatibility we haven't solved yet". Does anybody know what the issue is? hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) || | | | [email protected] |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list
Re: pygame.midi input/output not working
https://github.com/pygame/pygame/issues/3522 From: Python-list on behalf of Peter J. Holzer Date: Thursday, December 22, 2022 at 5:06 AM To: [email protected] Subject: Re: pygame.midi input/output not working On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site says this: > > "Pygame still does not run on Python 3.11" This doesn't sound like "we haven't got around to preparing packages yet" and more like "there's a serious incompatibility we haven't solved yet". Does anybody know what the issue is? hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) || | | | [email protected] |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" -- https://mail.python.org/mailman/listinfo/python-list
Re: pygame.midi input/output not working
This issue thread on Github says that everyone is waiting on the packaging maintainer, but nothing from him for some time. On 12/22/2022 5:04 AM, Peter J. Holzer wrote: On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: The pygame web site says this: "Pygame still does not run on Python 3.11" This doesn't sound like "we haven't got around to preparing packages yet" and more like "there's a serious incompatibility we haven't solved yet". Does anybody know what the issue is? hp -- https://mail.python.org/mailman/listinfo/python-list
Pyserial problem
Hi all, I use Python 3.10.9 and Pyserial 3.5 on a Win10 machine. I'm sending datas via an USB port to a device that accept commands in the form of : cmd; The device receives and reacts to the commands sent, and it should reply with an ACK of the same kind. But looking with a COM port sniffer, nothing is sent back. I checked that everything is working with PUTTY and even MINITERM, and everything is just fine, the device is responding correctly. I have set the flow control to different values, as well as setting the RTS and DTR high or low with no change. Normally, the device works without any flow control, and CTS + DTR high. I checked with MINITERM, that the flow control and control lines have the same state. I'm a bit surprised and stucked. Can someone help ? Thanks, -- Patrick Egloff email : [email protected] Web page : http://www.egloff.eu -- https://mail.python.org/mailman/listinfo/python-list
Extract the “Matrix form” dataset from BCS website.
I want to extract / scrape the “Matrix form” dataset from the BCS website [1],
a.k.a., the data appeared in the 3rd column.
I tried with the following python code snippet, but still failed to figure out
the trick:
import requests
from bs4 import BeautifulSoup
import re
proxies = {
'http': 'socks5h://127.0.0.1:1',
'https': 'socks5h://127.0.0.1:1'
}
requests.packages.urllib3.disable_warnings()
r =
requests.get('https://www.cryst.ehu.es/cgi-bin/plane/programs/nph-plane_getgen?gnum=17&type=plane',
proxies=proxies, verify=False)
soup = BeautifulSoup(r.content, features="lxml")
table = soup.find('table')
id = table.find_all('id')
My python environment is as follows:
werner@X10DAi:~$ pyenv shell datasci
(datasci) werner@X10DAi:~$ python --version
Python 3.11.1
Any tips will be appreciated.
[1]
https://www.cryst.ehu.es/cgi-bin/plane/programs/nph-plane_getgen?gnum=17&type=plane
Regards,
Zhao
--
https://mail.python.org/mailman/listinfo/python-list
SQLObject 3.10.1
Hello!
I'm pleased to announce version 3.10.1, the first minor feature release of
branch 3.10 of SQLObject.
What's new in SQLObject
===
Minor features
--
* Use ``module_loader.exec_module(module_loader.create_module())``
instead of ``module_loader.load_module()`` when available.
Drivers
---
* Added ``mysql-connector-python``.
Tests
-
* Run tests with Python 3.11.
CI
--
* Ubuntu >= 22 and ``setup-python`` dropped Pythons < 3.7.
Use ``conda`` via ``s-weigand/setup-conda`` instead of ``setup-python``
to install older Pythons on Linux.
For a more complete list, please see the news:
http://sqlobject.org/News.html
What is SQLObject
=
SQLObject is a free and open-source (LGPL) Python object-relational
mapper. Your database tables are described as classes, and rows are
instances of those classes. SQLObject is meant to be easy to use and
quick to get started with.
SQLObject supports a number of backends: MySQL/MariaDB (with a number of
DB API drivers: ``MySQLdb``, ``mysqlclient``, ``mysql-connector``,
``PyMySQL``, ``mariadb``), PostgreSQL (``psycopg2``, ``PyGreSQL``,
partially ``pg8000`` and ``py-postgresql``), SQLite (builtin ``sqlite``,
``pysqlite``, partially ``supersqlite``); connections to other backends
- Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB) - are less
debugged).
Python 2.7 or 3.4+ is required.
Where is SQLObject
==
Site:
http://sqlobject.org
Download:
https://pypi.org/project/SQLObject/3.10.1
News and changes:
http://sqlobject.org/News.html
StackOverflow:
https://stackoverflow.com/questions/tagged/sqlobject
Mailing lists:
https://sourceforge.net/p/sqlobject/mailman/
Development:
http://sqlobject.org/devel/
Developer Guide:
http://sqlobject.org/DeveloperGuide.html
Example
===
Install::
$ pip install sqlobject
Create a simple class that wraps a table::
>>> from sqlobject import *
>>>
>>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
>>>
>>> class Person(SQLObject):
... fname = StringCol()
... mi = StringCol(length=1, default=None)
... lname = StringCol()
...
>>> Person.createTable()
Use the object::
>>> p = Person(fname="John", lname="Doe")
>>> p
>>> p.fname
'John'
>>> p.mi = 'Q'
>>> p2 = Person.get(1)
>>> p2
>>> p is p2
True
Queries::
>>> p3 = Person.selectBy(lname="Doe")[0]
>>> p3
>>> pc = Person.select(Person.q.lname=="Doe").count()
>>> pc
1
Oleg.
--
Oleg Broytmanhttps://phdru.name/[email protected]
Programmers don't die, they just GOSUB without RETURN.
--
https://mail.python.org/mailman/listinfo/python-list
Re: Extract the “Matrix form” dataset from BCS website.
On 12/22/2022 8:35 AM, [email protected] wrote: I want to extract / scrape the “Matrix form” dataset from the BCS website [1], a.k.a., the data appeared in the 3rd column. I tried with the following python code snippet, but still failed to figure out the trick: Tell what you observed, and what you expected. For example, does the data get downloaded? Do you get error messages, and if so what are they? Does the id variable contain anything at all? Etc. import requests from bs4 import BeautifulSoup import re proxies = { 'http': 'socks5h://127.0.0.1:1', 'https': 'socks5h://127.0.0.1:1' } requests.packages.urllib3.disable_warnings() r = requests.get('https://www.cryst.ehu.es/cgi-bin/plane/programs/nph-plane_getgen?gnum=17&type=plane', proxies=proxies, verify=False) soup = BeautifulSoup(r.content, features="lxml") table = soup.find('table') id = table.find_all('id') My python environment is as follows: werner@X10DAi:~$ pyenv shell datasci (datasci) werner@X10DAi:~$ python --version Python 3.11.1 Any tips will be appreciated. [1] https://www.cryst.ehu.es/cgi-bin/plane/programs/nph-plane_getgen?gnum=17&type=plane Regards, Zhao -- https://mail.python.org/mailman/listinfo/python-list
Re: Pyserial problem
> On 22 Dec 2022, at 17:09, Patrick EGLOFF wrote: > > Hi all, > > I use Python 3.10.9 and Pyserial 3.5 on a Win10 machine. > > I'm sending datas via an USB port to a device that accept commands in the > form of : cmd; > The device receives and reacts to the commands sent, and it should reply > with an ACK of the same kind. > > But looking with a COM port sniffer, nothing is sent back. > > I checked that everything is working with PUTTY and even MINITERM, and > everything is just fine, the device is responding correctly. > > I have set the flow control to different values, as well as setting the RTS > and DTR high or low with no change. > Normally, the device works without any flow control, and CTS + DTR high. > > I checked with MINITERM, that the flow control and control lines have the > same state. > > I'm a bit surprised and stucked. > Can someone help ? Please post tour code that you are using to talk to the device. Barry > Thanks, > -- > Patrick Egloff > email : [email protected] > Web page : http://www.egloff.eu > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
