primordic/IssueDupesLite huggingface dataset:
Repository: pydantic/pydantic-ai

Issue #71: Add ability to customize model calls
Created: 2024-11-19T15:03:04Z
As noted in the OpenAI docs, there are various parameters to the API that are not currently exposed, such as temperature, frequency_penalty, logit_bias, etc. We should provide some way to control what values are used when the agent makes calls.

Duplicate issue #175: Important Parameters Not Accessible 
Created: 2024-12-07T23:05:53Z
I would like to report that several models do not allow access to certain essential parameters, which are crucial for various tasks.
Here are the parameters in question:
Randomness and Diversity:

Temperature
Top K
Top P

Length:

Response Length
Length Penalty
Stop Sequence

Repetition:

Repetition Penalty

--
Note on the Groq Model:
For the Groq model, it is important to note that the temperature is set by default to 0.

Hardcoding Temperature Additional Information:
It is important to note that, depending on the model, you have access to features such as JSON Format or function calling.

This means the model will attempt to return responses in JSON format, and yes depending of the model, the prompt used, fine tuned etc..

So depending on your specific task, you may need to adjust parameters (like creativity needs, temperature).
So for example, if you are generating a summary, a story etc.. You might need to set the temperature to 0.6 to ensure creativity in the response.
Using JSON format or function call, we expect the response to be in JSON format. (No need to set the temperature to 0)
Temperature to 0 for all responses is not ideal for Json format.
We need to allow for parameter adjustments to better suit the specific needs of each task and its flexibility.

Closing comment (2024-12-08T12:29:50Z): Duplicate of #71, let's continue the conversation there.
Repository: pydantic/pydantic-ai

Issue #242: Use ollama's structured outputs feature
Created: 2024-12-13T15:35:45Z
I'm looking into pydantic-ai with small and locally running ollama models as backbones.
I'm noticing that sometimes even for simple models it's possible to run into unexpected ValidationErrors.
Here's what I mean: With a pydantic model as simple as
class Answer(BaseModel):
    value: str = ""
I can see pytandic-ai sometimes retrying and failing in validation.
Having experience with llama.cpp's grammars this was unexpected to me. I was under the assumption that pydantic-ai would transform the pydantic model into a grammar or json schema to hard-restrict the llm's output accordingly. Then validation could never fail by design since the llm's output is restricted to the specific grammar.
Instead when I debug the request pydantic-ai sends to the locally running ollama with
nc -l -p 11434

I can see pydantic-ai turning the pydantic model into a tool use invocation.
With ollama v0.5.0 structured output via json schema is now supported:
https://github.com/ollama/ollama/releases/tag/v0.5.0
I was wondering if that would solve the issue of small locally running models sometimes running into validation errors, since we hard-restrict the output to the shape of our pydantic model.
Any thoughts on this, or ideas why validation can fail with tool usage as implemented right now? Any pointers in terms of for which model providers validation might fail and for what reason? Thanks!

Duplicate issue #576: UnexpectedModelBehavior with ollama0.5.4 and llama3.2
Created: 2024-12-30T22:37:05Z
I'm encountering this error while running the roulette_wheel.py example code from the PydanticAI documentation. The only difference is that I replaced the model with "ollama:llama3.2". The error message is:
pydantic_ai.exceptions.UnexpectedModelBehavior: Exceeded maximum retries (1) for result validation.
ollama: 0.5.4
PydanticAI: 0.0.16

Closing comment (2025-01-07T08:26:16Z): Duplicate of #242 I think.
Repository: pydantic/pydantic-ai

Issue #582: Structured outputs as an alternative to Tool Calling
Created: 2025-01-01T17:29:35Z
Issue Description:
Currently, pydantic-ai implements structured output solely using tool-calling APIs from model providers. While this works in most cases, certain schemas supported by pydantic exhibit inconsistencies between model providers.
For instance, the following schema from the documentation does not work with Gemini models:
class UserProfile(TypedDict, total=False):
    name: str
    dob: date
    bio: str

agent = Agent(
    'gemini-2.0-flash-exp',
    result_type=UserProfile,
)
agent.run_sync("Generate a synthetic data")
This results in the following error:
UnexpectedModelBehavior: Unexpected response from gemini 400, body:
{
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[dob].format: only 'enum' is supported for STRING type\n",
    "status": "INVALID_ARGUMENT"
  }
}
In this example, the inconsistency stems from the model provider's limitations. However, based on my observations working with tools like instructor, modern LLMs are increasingly proficient at adhering to JSON-format prompts in their text responses. In fact, they often perform better in terms of json content in standard completion modes than in tool-calling modes. The Berkeley Function-Calling Leaderboard may provide further evidence of this trend.
Feature Request
Would it be possible for pydantic-ai to implement an alternative mode akin to instructor's MD_JSON mode? This mode could use prompt engineering to guide the LLM’s output and parse the resulting JSON as raw text rather than relying on tool-calling APIs.
Such a feature would:

Allow broader compatibility with any model capable of following JSON schema prompts.
Address model-specific inconsistencies while leveraging pydantic's full schema flexibility.

Thank you for considering this suggestion!

Duplicate issue #758: Wasted Good models
Created: 2025-01-24T07:04:59Z
Can we find a way to adapt non tool use models into the pydantac AI tool use, It should be pretty much just prompting and parsing,

Closing comment (2025-01-24T19:53:25Z): Duplicate of #582, we intend to support structured outputs as well as tool calls for structured results types.
Repository: pydantic/pydantic-ai

Issue #126: Is it possible to add images onto chat messages?
Created: 2024-12-03T10:54:26Z
Furthermore, how can one control how the chat-api is used, meaning how can one use images for example.

Duplicate issue #198: How can I pass in files for models with multimodal capabilities?
Created: 2024-12-09T23:07:54Z
Gemini supports a number of file types, Anthropic supports images and pdfs, and several providers support images.  How can we utilize those features in agents backed by models with multimodal capabilities?
In my particular situation, I'm working with both the Gemini and Vertex APIs (which are a bit different) and I'd like to know if its possible to include files where needed in my agents backed by either model API?
Thanks much!

Closing comment (2024-12-10T08:46:39Z): Related to #126, we intend to add multi-modal support in future, but we haven't started that yet.
Repository: pydantic/pydantic-ai

Issue #695: State persistence
Created: 2025-01-15T19:42:27Z
Following #528, we really need a way to store state after each node is run.
We should provide:

an ABC for persisting state
a disk implementation
a sqlite implementation

In future we'll probably want to provide a postgres implementation, but I think that can come later when we're more confident of the schema.
This also relates to other database access and persistence:

message persistence in graphs #530
vector search for RAG #58

Duplicate issue #676: Add some kind of mechanism/component for managing state between Agent calls
Created: 2025-01-13T21:12:17Z
Love the framework! I've used it to build an AI agent app, and needed to create an AgentRunner wrapper class to manage state (e.g. message history) between agent calls, and there's other useful functionality that could be added at this layer:

inspecting/clearing history
automatic pruning / compression of message history based on context limits as per #619).

Would something like this be a worthwhile addition to the framework?

Closing comment (2025-01-24T15:25:50Z): Going to close this as a dupe of #695 which we're using as a parent tracking issue.
If you think theres work missing that would come from addressing #619 and #695, we can consider reopening this issue 👍
Repository: pyfa-org/Pyfa

Issue #564: Citadel Pre-Release: Character API Import not working
Created: 2016-04-18T12:57:54Z
first time trying PYFA (or any third party fitting tool - been too old school to try) I downloaded 1.20.2 cause it was the latest...  when loading char API i get the following error
http://i.imgur.com/fUMAxX3.png
tested with Char Sheet only API and Full API - same error ..
if i type any text in i get that.
If i leave it blank i get
http://i.imgur.com/npeppYJ.png
tested with 1.20.1 with same API and it worked right away.

Duplicate issue #566: Character Editor - API codes not working in charc creation
Created: 2016-04-24T03:18:37Z
hi,  Iwas trying to get my character skills into pyfa, generated a key and no expiry.
Once I enter the key and VCode that has been generated for the API and press "Get Characters", the area below simply states "

'CharacterEditor' object has no attribute 'getActiveCharacter'

seems to not be able to pull the data through?
thanks! Pallara

Closing comment (2016-04-24T22:31:52Z): duplicate #564
Repository: pyfa-org/Pyfa

Issue #1383: Can't add drones to drone bays
Created: 2018-02-15T06:39:10Z
pyfa v2.0.0b1
Pretty blatant regression.

Duplicate issue #1393: [v2.0b] Not able to add drones to ship's drone bay
Created: 2018-02-15T18:19:05Z
Bug Report
Double clicking or drug'n'dropping the drone to the ship's drone bay takes no effect.
Expected behavior:
Drones are added to the drone bay and additional dps is added to the ship's "firepower".
Actual behavior:
The main fit window refreshes then nothing happens.
Detailed steps to reproduce:


Create fit for any ship.


Try to add the drones.


Fits involved in EFT format (Edit > To Clipboard > EFT):
Bug occurs for any fit.
Release or development git branch? Please note the release version or commit hash:
Version: v2.0b (py3 branch)
Commit hash: da0f89e
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Windows 7
Other relevant information:
Importing the fitting with drones already in it works as intended.

Closing comment (2018-02-16T00:33:54Z): Thanks for the report! Duplicate #1383, closing.
Repository: pyfa-org/Pyfa

Issue #438: OS X 10.11 - Slow rendering on OS X
Created: 2015-11-17T19:02:15Z
I personally cannot reproduce on 10.10, but apparently (on 10.11) this happens:
https://gyazo.com/df8b6af9ad3e9fcc2ec78e654e8fe19d

Duplicate issue #521: wxPython 3.0 pyfa mac problems
Created: 2016-02-15T09:59:30Z
Its seems that the mouse tracks slowly when using the wxPython 3.0 pyfa.  Here is a Video of what I mean.  Its a little hard to tell in the video but pyfa only registers mouse clicks when where it think the mouse is catches up to where the mouse actually is.  There is also a problem where it will sometimes fail to load a group of fits and need to be restarted after that happens.  There are also long load times when loading a saved fit for the first time that session.

Closing comment (2016-03-03T04:41:41Z): I have looked into this and can confirm that this happens on 10.11 (10.10 seems unaffected).
I am going to mark this as a duplicate of #438 - there seems to be differences in how OS X 10.11 renders content / interacts with wxWidgets compared to previous versions. I believe that this results in noticeable lag with our custom-drawn widgets when the visuals change in quick succession (such as the highlighting and the gauge animations).
Please go to that issue to follow discussion and progress. =)
Repository: pyfa-org/Pyfa

Issue #1999: Can't add characters from SSO
Created: 2019-06-09T02:10:32Z
Bug Report
Expected behavior:
Adding Character to Character Management
Actual behavior:
Pyfa hangs on Waiting for character login through Eve Single Sign-On
When chrome loads to the page for authorization and you authorize the character it displays pyfa local server for a few seconds then simply says pyfa and nothing else.
I am able to add an ESI character on my work laptop running Win7 64bit but my home computer is on Win10 64bit and it will not add characters
I have also tried to do this with the manual way to get the link and then I get an error
Detailed steps to reproduce:
Go to character - Manage ESI Character - Add Character - Authorize the correct character
Fits involved in EFT format (Edit > To Clipboard > EFT):
Release or development git branch? Please note the release version or commit hash:
2.9.4
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Win10 64b
Other relevant information:
This is working on a Win7 machine but not a Win10 machine. I also reinstalled the application to no avail
pyfa-2019-06-09.log

Duplicate issue #2011: "Manual Authentication" SSO character addition does not work.
Created: 2019-07-19T19:08:56Z
Bug Report
Expected behavior:
After configuring Manual Authentication, pasting the text response from the local webserver should result in a character being imported.
EDIT: Add screenshot of preferences dialog.
Actual behavior:
An error message is displayed suggesting that the user should configure pyfa the way pyfa is already configured.
Detailed steps to reproduce:

Start pyfa
Select Global->Preferences->EVE SSO->SSO Mode = pyfa.io, Login Authentication Method = Manual,

Select Character->Manage ESI Characters->Add Character.
Observe that web browser starts, loads login.eveonline.com
Log in to EVE Online. Observe that web browser loads authorization page.
Authorize character. Observe web response with text-encoded data:

Select and copy to clipboard the text-encoded data and alt-tab back to pyfa.
Observe that pyfa is prompting for text-encoded data.
Paste the text-encoded data into the pyfa dialog.

Click OK.
Observe that pyfa responds with error message instead of importing the character.


Fits involved in EFT format (Edit > To Clipboard > EFT):
Not Applicable
Release or development git branch? Please note the release version or commit hash:
pyfa v2.9.4

Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Windows 10 Enterprise
Other relevant information:
See attached log
pyfa_debug-2019-07-19.log

Closing comment (2019-08-12T15:01:10Z): Duplicate of #1999 - same error is there, although on different action.
Repository: pyfa-org/Pyfa

Issue #164: Segmentation Fault when deleting a fit that is being viewed.
Created: 2014-09-01T09:08:39Z
Software: Slackware 14.1 linux installation
Packages: wxPython-2.8.12.1-i486-2_SBo.tgz, SQLAlchemy-0.9.6-i486-1_SBo.tgz, python-dateutil-2.2-i486-1_SBo.tgz, matplotlib-1.1.1-i486-1_SBo.tgz, numpy-1.8.0-i486-1_SBo.tgz
Hardware: 1.7Ghz Celeron 32-bit (Single core)
Steps to reproduce.

View a fit.
Delete the fit as its being viewed.

Other messages: Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem.
Cheers,
Neug

Duplicate issue #266: Deleting a fit twice crashes Pyfa
Created: 2015-03-19T09:52:52Z
Steps to replicate:

Create a blank fitting.
Create a copy of blank fitting.
Double click the delete button.

The timing on this is a bit tight - much less so for larger fittings with many modules/drones/etc. I first found this by deleting a ship while renaming it (after copying) - that might make the timing easier. I have successfully replicated it with only step 1 and 3 though. (It also locked up once).
I suspect deletion doesn't have checks for if the thing to be deleted still exists - or that the checks are somehow confused if the fitting was just created.

Closing comment (2015-04-14T21:26:43Z): I strongly suspect this is the same or related to #164. Unless warranted otherwise, I will close this issue for now.
IIRC I was only able to reproduce under a specific linux distro. What platform are you experiencing this bug on? For the record, I cannot get your replication steps to work for me under Windows. =/
Repository: pyfa-org/Pyfa

Issue #2402: ERROR: The JWT token has expired: Signature has expired. FIX
Created: 2022-02-03T08:32:35Z
Bug Report
Expected behavior:
Login to ESI.
Actual behavior:
JWT token error, The JWT token has expired: Signature has expired
Detailed steps to reproduce:

Open 'PYFA'
Open 'Character'
Open 'Manage ESI Characters'
Click 'Add Character'
Enter ESI and get base64 string (Manual method)
Get local server startup error

Release or development git branch? Please note the release version or commit hash:
The version was obtained via 'git clone'.
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
5.16.2-arch1-1
Other relevant information:
When checking the token, the program considers it 'obsolete', after googling a little, I found out that the 'exp' parameter in the token itself is responsible for this. The check takes place in the 'esiAccess.py' file, 'services' folder.

After a little searching, I realized that you use the 'python-jose' library to work with jwt tokens, by opening its code and finding the decode method, I found the '_validate_exp' method in which the token is checked for 'validity'.

As it turned out, the library developers use the current time zone of my computer (+3:00) and the time specified in the JWT token is in the zone (+0:00), which is why the token is immediately considered 'not valid'.

A quick fix error on the user's side can be corrected by changing the clock, in my case it worked. On the part of the developer, you can refuse to check the token or rewrite everything to a new library for working with tokens, which allows you to specify the time zone when checking the 'exp' parameter. 'Python-jose' and 'PyJWT' don't provide this feature as far as I've been able to find.

Duplicate issue #2380: JWT token expired
Created: 2021-11-22T18:50:19Z
pyfa v2.38.1
EVE Data Version: 1957858 (2021-10-28 13:15:53)
OS version: Windows-10-10.0.19041-SP0
Python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
wxPython version: 4.0.6 (wxWidgets 3.0.5)
SQLAlchemy version: 1.3.23
Logbook version: 1.5.3
Requests version: 2.26.0
Dateutil version: 2.8.2
####################
Traceback (most recent call last):
File "service\esiAccess.py", line 238, in validate_eve_jwt
File "site-packages\jose\jwt.py", line 153, in decode
File "site-packages\jose\jwt.py", line 461, in _validate_claims
File "site-packages\jose\jwt.py", line 302, in _validate_exp
jose.exceptions.ExpiredSignatureError: Signature has expired.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gui\characterEditor.py", line 826, in addCharacter
File "service\esi.py", line 112, in login
File "service\esi.py", line 138, in handleLogin
File "service\esiAccess.py", line 178, in auth
File "service\esiAccess.py", line 241, in validate_eve_jwt
service.esiAccess.GenericSsoError: The JWT token has expired: Signature has expired.
Unable to get characters with manual or local server mode

Closing comment (2022-02-04T02:41:03Z): Possibly the  same as #2402. @VidVrbnjak  which time zone is your PC set to?
Repository: pyfa-org/Pyfa

Issue #453: OS X 10.11 - Sometimes Listboxes don't completely refresh
Created: 2015-11-30T08:32:43Z
Sometimes when switching between lists, old items will persist and mix in with the new items being loaded. I've noticed this on a Crest fit screen before and here I've a screenshot of it mixing two different market module lists; it failed to overwrite the two items shown on the previous list.
Going to a blank list, like "Propulsion" before going back to a list will clear the problem.

and this one:

Prerelease 1.16.3 OSX 10.11.1

Duplicate issue #519: Information in Rows does not always refresh until UI is clicked.
Created: 2016-02-12T01:32:35Z
Seems that information from previous groups of modules will remain in the listing until I click within the listing.  Once I click within the listing, the display will refresh and the correct data will display.
Mac OS version.  Did not happen in previous version.  Happens within Drone data grid also.
Screen shot attached.  Notice that The first two rows in the data from the "Extra Large" blasters, but displayed after selecting "Large" blasters.

Closing comment (2016-02-12T05:53:39Z): Duplicate #453. As of right now I don't really have a good idea on why this happens, other than it seems to only happen on OS X 10.11 (please confirm this)
It did not happen for you before because you probably did not use the -mac-wx3 build. That build is now the default, as noted in the release notes.
Repository: pygame/pygame

Issue #59: pygame and pip
Created: 2011-08-22T09:40:16Z
Originally reported by: René Dudfield (Bitbucket: illume, GitHub: illume)

Pygame should work on pip again.
What's left to do (easiest first):


Fixing usage of raw_input is tracked in #224


Changing the version scheme to pep 0440 is tracked in #223


Generating wheel format files is tracked at issue #222


~~Request pypi page. ~~




Bitbucket: https://bitbucket.org/pygame/pygame/issue/59

Duplicate issue #66: pip install downloads incorrect version on Windows
Created: 2011-08-22T09:40:22Z
Originally reported by: René Dudfield (Bitbucket: illume, GitHub: illume)

== Henrik Heimbuerger, 2011-03-04 02:16:05 -0800
I tried to install pygame on Windows 7 (x64), Python 2.7 (x86) and got the following output:

=====
S:\Develop>pip install pygame
Downloading/unpacking pygame
  Downloading pygame-1.9.2pre-py2.6-macosx10.6.mpkg.zip (5.9Mb): 5.9Mb downloaded
  Running setup.py egg_info for package pygame
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory: 'S:\\Develop\\build\\pygame\\setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or directory: 'S:\\Develop\\build\\pygame\\setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in C:\Users\username\AppData\Roaming\pip\pip.log
=====

Instead of the Windows version, it tried to install the OS X version and instead of the Python 2.7 version, it tried to install the Python 2.6 version. That's probably why it failed.




Bitbucket: https://bitbucket.org/pygame/pygame/issue/66

Closing comment (2011-09-06T08:50:14Z): Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):

Seems to be caused by pygame having not pypi page.
Duplicate of #59.
Repository: pygame/pygame

Issue #59: pygame and pip
Created: 2011-08-22T09:40:16Z
Originally reported by: René Dudfield (Bitbucket: illume, GitHub: illume)

Pygame should work on pip again.
What's left to do (easiest first):


Fixing usage of raw_input is tracked in #224


Changing the version scheme to pep 0440 is tracked in #223


Generating wheel format files is tracked at issue #222


~~Request pypi page. ~~




Bitbucket: https://bitbucket.org/pygame/pygame/issue/59

Duplicate issue #276: Host release files on PyPI
Created: 2015-09-01T07:53:52Z
Originally reported by: Paul Moore (Bitbucket: pmoore, GitHub: pmoore)

The pygame distribution files are currently hosted on a site external to PyPI. Please consider uploading the release files to PyPI, as this provides a much easier user experience for people using pip.
At a minimum, could you upload the source distribution, and ideally binary wheels for Windows (and maybe OSX)?
Wheels can be created from the existing wininst installers (avoiding the need to rebuild) using the "wheel convert" command provided with the wheel package.


Bitbucket: https://bitbucket.org/pygame/pygame/issue/276

Closing comment (2015-10-21T15:17:45Z): Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):

Duplicate of #59.
Repository: pygame/pygame

Issue #2785: pygame.error: mpg123_seek: Invalid RVA mode. (code 12)
Created: 2021-10-22T03:37:59Z
Environment:

Operating system: Windows 11
Python version: 3.9.7
PyGame version: 2.0.2

I made a music player. Source Code Here Line 284 is responsible to load audio file and Line 285 to play the loaded audio file. When I ran my script few days ago, it ran perfectly and played many mp3 files. But now I am getting pygame.error: mpg123_seek: Invalid RVA mode. (code 12) from nowhere. I have searched everywhere and some suggest to add the following code:
pygame.mixer.music.load(mp3_path)
pygame.mixer.music.play()

clock = pygame.time.Clock()

while True: # main loop
    clock.tick(60)

But the error still persists.

Duplicate issue #2909: pygame.mixer.music.play()
Created: 2021-12-13T12:04:32Z
???why

Closing comment (2021-12-13T12:10:21Z): Thanks for reporting an issue! This is a known issue and has been already reported in #2785, and has to be fixed on one of pygame's dependencies end.
In the meantime, you could try converting the mp3 file to something like an ogg file
Repository: pygame/pygame

Issue #732: pygame.draw.aaline doesn't draw on the first line/column of a surface
Created: 2019-01-11T20:30:27Z
Aaline won't render horizontal/vertical lines on the first column/line of a surface
It wouldn't work to draw the following vertical line:
screen_width, screen_height = (600, 400)
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.draw.aaline(screen, (255, 255, 255), (0, 1), (0, 150))
pygame.display.update()

But if I try to draw it to the second column it will work:
pygame.draw.aaline(screen, (255, 255, 255), (1, 1), (1, 150))
Also I saw that it would work partially for something like pygame.draw.aaline(screen, (255, 255, 255), (1, 1), (0, 150)) drawing one dot on the second column (actually it is the line ignoring the first column)

I'm using Ubuntu 18.04.1 LTS

Duplicate issue #731: aaline may not be drawn on surface if a coordinate is 0
Created: 2019-01-11T20:28:46Z
Aaline won't render horizontal/vertical lines on the first column/line of a surface
It wouldn't work to draw the following vertical line:
screen_width, screen_height = (600, 400)
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.draw.aaline(screen, (255, 255, 255), (0, 1), (0, 150))
pygame.display.update()

But if I try to draw it to the second column it will work:
pygame.draw.aaline(screen, (255, 255, 255), (1, 1), (1, 150))
Also I saw that it would work partially for something like pygame.draw.aaline(screen, (255, 255, 255), (1, 1), (0, 150)) drawing one dot on the second column (actually it is the line ignoring the first column)

I'm using Ubuntu 18.04.1 LTS

Closing comment (2019-02-09T05:02:58Z): This issue appears to the be same as #732. This one can be closed and #732 can be used to track the issue.
Repository: pygame/pygame

Issue #296: Python 3.5 not loading pygame
Created: 2016-05-08T11:33:13Z
Originally reported by: fred ariemma (Bitbucket: kingfred, GitHub: kingfred)

trying to match up pygame and python 3.5.  I'm running win10 with X64 (laptop).  Tried several different pygame versions none are working (with/without64 etc etc) .  Is there a problem running pygame with 3.5, or am I doing something stupid?


Bitbucket: https://bitbucket.org/pygame/pygame/issue/296

Duplicate issue #294: Installer for Python 3.5
Created: 2016-04-09T09:00:15Z
Originally reported by: aglim (Bitbucket: aglim, GitHub: aglim)

Please provide msi installer for Python 3.5!


Bitbucket: https://bitbucket.org/pygame/pygame/issue/294

Closing comment (2016-09-08T15:52:38Z): Original comment by Jason Marshall (Bitbucket: jmm0, GitHub: jmm0):

Duplicate of #296.
Repository: pygame/pygame

Issue #1013: [Enhancement]  Support for Android using Termux
Created: 2019-05-01T12:04:50Z
I have recently integrated pygame into PySimpleGUI and PySimpleGUIWeb.  I'm able to run a pygame window inside of my GUI window.
I am able to run PySimpleGUIWeb code on Android and show my GUI through a browser window.  I recently was able to get the pymunk physics package up and running on Termux which allows for this interesting test where the same screen is shown on 2 devices, perhaps the beginning of a 2-player game.

Here is pygame running in a browser on my PC

When I try and pip install pygame using termux, I get an error saying the sdl-dev pacakge needs to be installed.
When I posted an Issue on the Termux GitHub, I received this response which may provide some clues as to whether or not I'll be successful:

Unfortunately, we do not package python modules.
I get errors that a development version of SDL is required.
Such version of SDL exists in x11-packages repository.
And note that OpenGL is unsupported.

My goal is to make it really easy for people to write games that run on their phone / tablet, while also providing the capability to share the accomplishment by allowing friends to connect to their phone through the browser to see the game on the friend's phone.

Duplicate issue #1163: can't install in Termux (mobile development)
Created: 2019-07-15T00:09:56Z

Closing comment (2019-08-02T13:56:13Z): duplicate of #1013
Repository: pygame/pygame

Issue #2599: Python 3.10 support (beta is out)
Created: 2021-05-22T20:46:13Z
There's already been some patches to get it compiling/passing tests: #2586
Remaining work:

 unit tests pass on each platform
 example apps work on each platform (examples/ and things like solarwolf)
 check the whatsnew/migration guide (Any new features we could use?) look at other projects
 tested in CI
 windows wheels
 mac wheel(s)
 manylinux wheels

Duplicate issue #2777: Missing wheel for python 3.10 linux.
Created: 2021-10-17T21:03:35Z
Hello there! I've been trying to install pygame with python 3.10 with no success, i have only realized that there isn't an wheel for manylinux when I've successfully installed pygame on python 3.9.

Closing comment (2021-10-18T03:45:30Z): Yeah we are aware of this, manylinux python 3.10 wheels were missing from the previous release, but the next release (ETA a few weeks) should have the wheels! Also this issue is also being tracked in #2599
Repository: pygame/pygame

Issue #329: Mixer module sometimes hangs calling pygame.quit() on Virtual Machine/ArchLinux
Created: 2017-03-05T21:43:33Z
Originally reported by: ocket8888 (Bitbucket: ocket8888, GitHub: ocket8888)

Just like the title says, I've never been able to write a pygame script that will exit properly. Even something as simple as
#!python

#!/usr/bin/env python3

import pygame
from sys import exit as sysExit

pygame.init()
screen = pygame.display.set_mode((512,512))
screen.fill((255,255,255))

pygame.display.update()

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.display.update()
            pygame.display.quit()
            pygame.quit()
            exit(0)
            sysExit(0)
            #None of these work, code under them is unreachable but the process hangs

hangs. More information is available here


Bitbucket: https://bitbucket.org/pygame/pygame/issue/329

Steps to proceed with this:

 Try the code in the above with pygame 2.0.0.dev10 running in a linux virtual machine.
 If it is still broken try the code above replacing pygame.init() & pygame.display.init()

Related Docs: https://www.pygame.org/docs/ref/pygame.html

Duplicate issue #2813: pygame process hangs on SDL_Quit
Created: 2021-11-01T18:54:56Z
Environment:

Operating system: Windows, Mac (possibly any)
Python version: 3.7.4
SDL version: 2.0.16
PyGame version: 2.0.2+

Current behavior:
#2428 introduces an issue where pygame process will hang after trying to quit, either via closing the window, calling sys.exit() or calling pygame.quit() (note that the submodules like display or mixer seem to close gracefully). Problem did not occur before the change was introduced (I checked it with the same python/SDL mix). After some investigation, it turns out to be stuck on the following line: 
  
    
      pygame/src_c/base.c
    
    
         Line 389
      in
      14fbf61
    
  
  
    

        
          
           SDL_Quit(); 
        
    
  


Removing SDL_Quit line makes the process shut as expected.
Steps to reproduce:
This happens in an application of significant complexity, I did not run into this issue on simple ones. I cannot share the source code but can assist in any other meaningful way.

Closing comment (2022-01-15T13:30:52Z): Hi, thanks for the issue report! What you report is unrelated to this issue, but is exactly the same as #329
This one was a bug with timers and quit deadlock on our end, but the mixer hang is a bug in SDL_mixer
Repository: pygame/pygame

Issue #203: Window does not get focus on OS X with Python 3
Created: 2014-06-30T01:14:27Z
Originally reported by: Ian McCowan (Bitbucket: valrus, GitHub: valrus)

A pygame window created using the code below on OS X using the latest pygame source:
#!python

import pygame

pygame.init()
screen = pygame.display.set_mode((640, 480))

done = False
while not done:
    pygame.event.pump()
    keys = pygame.key.get_pressed()
    if keys[pygame.K_ESCAPE]:
        done = True
    if keys[pygame.K_SPACE]:
        print("got here")
    events = pygame.event.get()
    for event in events:
        if event.type == pygame.MOUSEBUTTONDOWN:
            print("mouse at ", event.pos)

does not receive any keyboard input. It is not possible to trigger the "got here" message nor cause it to terminate using Escape; instead all keypresses show up in the terminal window from which the script was run. This happens even though the window appears to have focus.
Additionally, based on the mouse event handling, the window exhibits some combination of the incorrect mouse behavior described in these two issues:
#79/pygame-incompatible-with-osx-lion-trackpad
#163/no-mouse-move-events-unless-mouse-button
viz. all subsequent clicks register with the same position as the first one, and the only way to update its position is to click and drag to a new location.


Bitbucket: https://bitbucket.org/pygame/pygame/issue/203

Duplicate issue #244: Window opens (and remains) in background on OS X under Python 3
Created: 2015-04-14T19:22:52Z
Originally reported by: Richard Jones (Bitbucket: r1chardj0n3s, GitHub: r1chardj0n3s)

Current repository HEAD version results in the window opening in the background and forcing itself to remain in the background when under Python 3. The same version of the code under Python 2 does not exhibit this problem. Sample code:
#!python

import pygame
pygame.init()
w = pygame.display.set_mode((640, 480))
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            QUIT

This is related to #203 which is about events not making it through to the app (if you do somehow get the window to stay in front no key/mouse events make it to the app). I also notice that under Python 2 the application icon appears in the Dock, but under Python 3 the icon does not appear. This would seem to indicate that the event handling system initialisation is b0rked.


Bitbucket: https://bitbucket.org/pygame/pygame/issue/244

Closing comment (2016-06-01T11:37:34Z): Original comment by Thomas Kluyver (Bitbucket: takluyver, GitHub: takluyver):

I think this is a duplicate of #203.
Repository: pygments/pygments

Issue #1603: Priority-based lexer selection in get_lexer_by_name et al.
Created: 2020-11-17T01:08:42Z
Current (0fa29a0) implementations of get_lexer_by_name and some other similar functions don't take priority of the lexer into consideration and return the first lexer with the matching name. This implies that plugins are never checked if there's a builtin lexer with the given name.
Checking all the installed lexers and matching based on priority or other heuristics that are already implemented for guessing lexers based on content etc. can enable users to override some of the builtin lexers with their own custom ones by assigning higher priority to their lexers.

Duplicate issue #896: lexer/formatter/style/filter search order
Created: 2019-08-31T17:41:11Z
(Original issue 1189 created by richardbann on 2016-01-12T04:04:20.210986+00:00)
In functions like get_lexer_by_name plugin objects should be searched first. This way it would be possible to write plugins with alternative lexers, formatters, etc. for existing languages, formats.
Today, using an alternative lexer for say javascript is only possible by monkeypatching pygments. (Am I missing something?)
The only possible drawback I can think of is having existing pygments plugins (or packages that define plugins as a side effect) with alternative built-in lexer (formatter, etc.) implementation, which can be installed by the user "accidentally" and hiding the default pygments implementation.
What do you think?

Closing comment (2022-05-29T08:55:57Z): Duplicates #1603.
Repository: pygments/pygments

Issue #1019: please add a comparison with highlight package (which is better than source-highlight)
Created: 2019-08-31T17:49:13Z
(Original issue 1315 created by timotheecour on 2016-12-31T17:26:43.853012+00:00)
In the process of picking the right tool [see also http://softwarerecs.stackexchange.com/questions/38481/gnu-source-highlight-alternative/38485#38485]
I see a comparison in http://petereisentraut.blogspot.com/2009/07/adding-color-to-console-pygments-vs.html against source-highlight; but source-highlight seems dead and highlight is better (eg 212 languages supported); is there a comparison to highlight?
http://www.andre-simon.de/doku/highlight/en/highlight.php

Duplicate issue #734: highlighting problems on github
Created: 2019-08-31T17:25:17Z
(Original issue 1027 created by cordoval on 2014-08-27T11:45:41.348808+00:00)
I see highlighting problems on github, and was pointed to this repo to ask what the problem is?
https://github.com/sstok/gush/blob/3ccee0811aa08395a3fa3dcd6dfa325d712e6a5e/src/Command/Util/MetaHeaderCommand.php#L49
It seems the current version does handle it well http://pygments.org/demo/597886/ but the tagged version github is using is still having issues.

Closing comment (2019-08-31T17:25:22Z): (Original comment by tshatch on 2014-10-05T17:53:38.332806+00:00)
Duplicate of #1019.
Repository: pygments/pygments

Issue #1154: Could not lex literal_block as "py3tb"
Created: 2019-08-31T17:54:58Z
(Original issue 1450 created by enov on 2018-06-22T12:26:16.270176+00:00)
I attached the traceback example. It looks like the lexer can not parse "    base_image=base_image, flavor_name=self.args.flavor) as self.instance:", in particular due to the trailing ":".

Duplicate issue #826: Add "async def" and "await" as new keywords for the Python lexer.
Created: 2019-08-31T17:33:39Z
(Original issue 1119 created by jonathanslenders on 2015-06-24T12:21:13.660010+00:00)
See: https://www.python.org/dev/peps/pep-0492/
This is coming to Python 3.5 and already in the current beta.
https://bitbucket.org/birkenfeld/pygments-main/src/652e08e410f4f4f3a61add91f75ce5ed9d134711/pygments/lexers/python.py?at=default#cl-71

Closing comment (2019-08-31T17:33:47Z): (Original comment by tshatch on 2015-11-03T15:36:49.262940+00:00)
Duplicate of #1154.
Repository: pygments/pygments

Issue #869: Typescript 1.5 Decorators
Created: 2019-08-31T17:38:29Z
(Original issue 1162 created by None on 2015-10-26T14:43:42.529029+00:00)
The Typescript Lexer doesn't know about Decorators and Annotations in typescript

Duplicate issue #577: PowerShellLexer sometimes fails on test_lexer_classes()
Created: 2019-08-31T17:08:17Z
(Original issue 870 created by roskakori on 2013-05-09T23:34:02.174821+00:00)
When running make test sometimes the PowerShellLexer fails in test_lexer_classes():

ERROR: test_basic_api.test_lexer_classes(<class 'pygments.lexers.shell.PowerShellLexer'>,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pyg/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/agi/workspace/pygments-main/tests/test_basic_api.py", line 67, in verify
    tokens = list(inst.get_tokens(test_content))
  File "../pygments/lexer.py", line 186, in streamer
    for i, t, v in self.get_tokens_unprocessed(text):
  File "../pygments/lexer.py", line 604, in get_tokens_unprocessed
    statetokens = tokendefs[statestack[-1]]
IndexError: list index out of range

As the test_content is random, this cannot be easily reproduced by just running the test. So I dumped test_content to a file and attached it so you can reproduce it from the console:
$ ./pygmentize -f html -O full,style=emacs -l powershell /tmp/test_content.txt >/tmp/example.html
This results in:
*** Error while highlighting:
IndexError: list index out of range
   (file "/Users/agi/workspace/pygments-main/pygments/lexer.py", line 604, in get_tokens_unprocessed)

Closing comment (2019-08-31T17:08:21Z): (Original comment by tshatch on 2013-05-09T23:56:39.773960+00:00)
Duplicate of #869.
Repository: pygments/pygments

Issue #784: Wrong year in CHANGES
Created: 2019-08-31T17:30:02Z
(Original issue 1077 created by uggedal on 2015-01-21T07:05:14.147179+00:00)
Version 2.0.2 was "released Jan 20, 2014".

Duplicate issue #699: make mapfiles fails with ImportError: No module named pygments.formatters.bbcode
Created: 2019-08-31T17:21:14Z
(Original issue 992 created by None on 2014-05-14T05:21:58.315658+00:00)
I'm writing my own lexer (for a faq script), and when trying to run make mapfiles, I get this.

pball@piglet:~/src/hg/pygments-main 
    $ make mapfiles
(cd pygments/lexers; python _mapping.py)
pygments.lexers.agile
pygments.lexers.asm
pygments.lexers.compiled
pygments.lexers.dalvik
pygments.lexers.dotnet
pygments.lexers.faq
pygments.lexers.foxpro
pygments.lexers.functional
pygments.lexers.graph
pygments.lexers.hdl
pygments.lexers.inferno
pygments.lexers.jvm
pygments.lexers.math
pygments.lexers.other
pygments.lexers.parsers
pygments.lexers.qbasic
pygments.lexers.rdf
pygments.lexers.shell
pygments.lexers.special
pygments.lexers.sql
pygments.lexers.templates
pygments.lexers.text
pygments.lexers.web
(cd pygments/formatters; python _mapping.py)
Traceback (most recent call last):
  File "_mapping.py", line 19, in <module>
    from pygments.formatters.bbcode import BBCodeFormatter
ImportError: No module named pygments.formatters.bbcode
make: *** [mapfiles] Error 1

 $ echo $PYTHONPATH
$HOME/src/hg/pygments-main/pygments


so pygments is on the PYTHONPATH. Am I overlooking something silly? thx.

Closing comment (2019-08-31T17:21:18Z): (Original comment by tshatch on 2014-05-19T22:58:41.443633+00:00)
Duplicate of #784.
Repository: pygments/pygments

Issue #645: Support for IPython Session Syntax Highlighting
Created: 2019-08-31T17:14:51Z
(Original issue 938 created by sanguineturtle on 2013-12-14T04:50:16.552485+00:00)
Previously I have used the minted package (which uses Pygments) to do code syntax highlighting in latex documents. It would be great to be able to include IPython Sessions with appropriate syntax highlighting.

Duplicate issue #421: pygments crashes while trying to guess the type of a file
Created: 2019-08-31T16:53:22Z
(Original issue 714 created by vvas on 2011-11-23T11:53:49.039333+00:00)
Hi, in our setup we're using hgweb with the highlight extension, which calls into pygments. When we try to display certain files whose first character is a dot, pygments crashes. Here's an example of a file where this happens, called CONFIG:
{{{
.timeout 300
.user root
}}}
When I try to view this through hgweb, I get the following traceback:
{{{
Traceback (most recent call last):
File "/srv/hgweb/hgweb.cgi", line 22, in 
wsgicgi.launch(application)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/wsgicgi.py", line 76, in launch
content = application(environ, start_response)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py", line 120, in call
return self.run_wsgi(req)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py", line 178, in run_wsgi
return hgweb(repo).run_wsgi(req)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgweb_mod.py", line 201, in run_wsgi
content = getattr(webcommands, cmd)(self, req, tmpl)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/webcommands.py", line 102, in file
return _filerevision(web, tmpl, webutil.filectx(web.repo, req))
File "/usr/lib/pymodules/python2.6/mercurial/extensions.py", line 182, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/hgext/highlight/init.py", line 39, in filerevision_highlight
highlight.pygmentize('fileline', fctx, style, tmpl)
File "/usr/lib/pymodules/python2.6/hgext/highlight/highlight.py", line 44, in pygmentize
lexer = guess_lexer(text[:1024])
File "/usr/lib/pymodules/python2.6/pygments/lexers/init.py", line 199, in guess_lexer
rv = lexer.analyse_text(_text)
File "/usr/lib/pymodules/python2.6/pygments/util.py", line 116, in text_analyse
return min(1.0, max(0.0, float(rv)))
TypeError: float() argument must be a string or a number
}}}
We have pygments 1.3.1 installed here (using the package in Debian stable), but someone just confirmed to me that they can reproduce this in 1.4 too.
Thanks,
Vasilis

Closing comment (2019-08-31T16:53:25Z): (Original comment by vvas on 2012-01-04T15:04:38.525163+00:00)
Duplicate of #645.
Repository: pygments/pygments

Issue #1128: Over stock exchange
Created: 2019-08-31T17:54:03Z
(Original issue 1424 created by None on 2018-03-06T15:33:54.200806+00:00)
YOU MOTHER FUCKERS..... HACKS PEOPLE'S ACCOUNTS BY USING YOUR 3RD PARTY APPS. YOU PEOPLE AIN'T  SHIT. YOU'VE HACKED INTO MY ACCOUNTS. PYTHON. CYBER. DI7. WIZARD. JSON FILES. ETC. I HAVE ALL YOUR NAMES. EVERYTHING HAS BEEN SENT TO THE FBI. COME FACE TO FACE WITH ME. YOU 3RD PARTIES AIN'T NOTHING BUT COWARDS. INCLUDING MY WIFE WHO YOU ALSO WORK WITH STEPHANIE CAMPOS AND HER MOTHER MAGGIE PARKER
COWARDS!!!!

Duplicate issue #814: Add a lexer for Zsh
Created: 2019-08-31T17:32:38Z
(Original issue 1107 created by chauncey-garrett on 2015-04-29T18:02:50.682824+00:00)
Include support for the Zsh, which I use and love :)

Closing comment (2019-08-31T17:32:40Z): (Original comment by tshatch on 2015-10-17T02:17:13.472320+00:00)
Duplicate of #1128.
Repository: pygments/pygments

Issue #777: Transpose sign ' recognized as string
Created: 2019-08-31T17:29:15Z
(Original issue 1070 created by innerlee on 2015-01-02T03:13:40.718319+00:00)
In matlab, the transpose of a matrix A is written as A' while pygments regard that ' as the start of a string. This is wrong.
You can see what's wrong in the attached img.
thx.

Duplicate issue #475: wrong position yielded for default eol (\n) in RegexLexer
Created: 2019-08-31T16:58:20Z
(Original issue 768 created by mgautierfr on 2012-05-11T12:40:38.162112+00:00)
In RegexLexer (get_tokens_unprocessed), if there is no token matching and we reach a '\n' then a Token.Text is yielded.
However, the pos is incremented before yielding the token. This leads to a wrong token's position being yielded.
The pos variable should be incremented after yielding the token.
Most of the time this is not a problem cause the next token will start at the right position. This is a problem if the client program uses the token pos to do some action.
Solve is easy : move the "pos +=1" line after the yield instruction.

Closing comment (2019-08-31T16:58:23Z): (Original comment by birkenfeld on 2012-08-19T09:53:11.581335+00:00)
Duplicate of #777.