Re: [pygame] Error pygame with timidity.cfg

2018-04-21 Thread Thomas Kluyver
I think it's a problem with the way we've packaged pygame. If I'm right,
you'll need to install it another way - either:

1. Get the source code of pygame (https://github.com/pygame/pygame ), make
sure you have all the dependencies installed, and compile it yourself.
2. Or use a platform package manager (like apt or dnf) to install it.

On 21 April 2018 at 13:10,  wrote:

> I apologize if I expressed myself badly. however I repeat that timidity
> works well. The problem comes to me with pykaraoke that uses the pygame
> module. Just pygame has a syntax error when it goes to read this file:
> timidity.cfg, line 30. But, as explained here ->, the syntax is the one I
> used, that is only "soundfont filename". In fact I read the .midi quietly
> with timidity. I do not know what's wrong with pygame ..


Re: [pygame] Error pygame with timidity.cfg

2018-04-21 Thread teodoro . coluccio
I apologize if I expressed myself badly. however I repeat that timidity works 
well. The problem comes to me with pykaraoke that uses the pygame module. Just 
pygame has a syntax error when it goes to read this file: timidity.cfg, line 
30. But, as explained here ->, the syntax is the one I used, that is only 
"soundfont filename". In fact I read the .midi quietly with timidity. I do not 
know what's wrong with pygame ..

Re: [pygame] Error pygame with timidity.cfg

2018-04-21 Thread Thomas Kluyver
Let's remember that pygame is used by new programmers who don't necessarily
know how or where to best ask questions. Providing guidance is great, but
let's keep the tone friendly. Don't forget that written messages tend to
sound grumpier/snarkier than you meant them to, so
it's easy for everyone to quickly get angry.

Teodoro, you're getting terse responses because you turned up to get help
with a problem, without any evidence that you had investigated it or tried
to understand the cause. If you've checked that timidity works outside
pygame, mention that up front. Did you put the error message into Google as
well? People will be happier to help if you show that you're trying to
figure it out yourself. And your second message comes across as a bit
demanding - no-one here has to help you.

Back to the problem itself: what platform are you on, and how did you
install pygame? There are some problems using timidity with the Linux
wheels, because the bundled copy of the timidity library uses a config file
found on your system, and this might be for a different version of timidity:
https://github.com/pygame/pygame/issues/343

If it's that kind of problem, then the workaround is to either install from
source, or get a (possibly older) version of pygame from your system
package manager (apt/dnf/...). There are more installation instructions
here:
https://www.pygame.org/wiki/GettingStarted#Installing%20From%20Source

On 21 April 2018 at 08:38, Martin Kühne  wrote:

> Neither timidity nor any of its configuration is parsed or otherwise
> referenced by the pygame source. Please justify what your need is
> here.
>
> cheers!
> mar77i
>


Re: [pygame] Error pygame with timidity.cfg

2018-04-21 Thread Martin Kühne
Neither timidity nor any of its configuration is parsed or otherwise
referenced by the pygame source. Please justify what your need is
here.

cheers!
mar77i


Re: [pygame] Error pygame with timidity.cfg

2018-04-20 Thread teodoro . coluccio
the problem, certainly not of timidity because with those soundfont so set can 
reproduce midi. If I write otherwise it is timidity not to work .. but this is 
the syntax, exactly as I wrote, in fact timidity works well -> 
https://i.imgur.com/76i6UGy.jpg

Re: [pygame] Error pygame with timidity.cfg

2018-04-20 Thread Martin Kühne
Line 30, according to https://i.imgur.com/efCVxHg.png was the
soundfont path, btw.

cheers!
mar77i


Re: [pygame] Error pygame with timidity.cfg

2018-04-20 Thread Ian Mallett
​Also, and not to put too fine a point on it, but (1) trying obvious things
and (2) telling us what you tried are just *foundational* netiquette when
asking for help.

For example, the error says "timidity.cfg: line 30: syntax error". Did you
look in timidity.cfg for a syntax error on line 30?

Ian


Re: [pygame] Error pygame with timidity.cfg

2018-04-20 Thread Martin Kühne
On Fri, Apr 20, 2018 at 4:57 PM,   wrote:
> Can anyone help me!?

1. Okay I get it. You had a problem and asked in the wrong place. We
assumed you'd ask in a better place eventually, that's why nobody
responded.
2. Pygame-users is really the wrong list for your problem, you need to
look for support with timiditiy.
3. The error message is clear in that there was an "Error with opening
file". How about if you check whether it's in the expected place and
whether the user running it may read it?
4. The path in your config is spelled the same way as the path in the
wiki I'm comparing it to. Look for trailing whitespace in your config,
maybe?

a) Really make sure that the soundfont is where you're trying to load
it from and that your user may in fact read it.
b) consider looking at your configuration with a hex editor.
c) consider running timidity it in a debugging tool such as `strace`
so you can see what file is *actually* attempted to be opened.

cheers!
mar77i


[pygame] Error pygame with timidity.cfg

2018-04-20 Thread teodoro . coluccio
Can anyone help me!?

[pygame] Error pygame with timidity.cfg

2018-04-13 Thread Teo777
Hi, i have an error with pykaraoke... in fact, pygame find an (syntax) error
on the soundfont of timidity. This is a screen
https://i.imgur.com/efCVxHg.png



--
Sent from: http://pygame-users.25799.x6.nabble.com/