bob84 wrote:
hello,
while opening scratch in debian 5.0 using
$ squeak Scratch.image
i cannot use many features of the software:
- save, save as
- choose new sprite from file
- import project
- export sprite
and many many others;
is there any way to get away from all these issues ?
when these errors appear, a debugging pink window pops out with this title:
"message not understood: findTokens:"
and a whole bunch of errors which i do not understand and, unfortunately i cannot past them here
thank you very much in advance
Sounds like a problem with directory permissions?
Offline
Lightnin wrote:
Hmm - have you tried installing the Ubuntu / Debian package from here? That's more likely to be a better solution:
http://info.scratch.mit.edu/Linux_installer
We haven't tested it on Debian, but it should work.
i've already given it a try and it gave me many problems for libraries conflicts which aptitude didn't get rid of; anyway i will try again since i think it is the most suitable solution for the platform;
i'll report back problems
Lightnin wrote:
If for some reason that solution isn't practical, I'll provide a little more info. The problem you are seeing above is because you aren't including links to the Scratch Plugin. Here's a copy of the startup script that installs with Debian package:
/usr/bin/scratch_squeak_vm \
-plugins /usr/lib/scratch/Plugins \
-vm-sound-PA \
/usr/lib/scratch/Scratch.image "${@}"
You'll want to replace scratch_squeak_vm with your Squeak-vm
sorry, i did not understand exactly how i have to use that script: should i invoke squeak using some special flag in order to include that script ?
moreover, i suppose i do not have the script since i am using the .image file obtained from WS version; it is possible to extract it from a linux tarball ?
thank you very much for your help
Offline
The script just saves time / typing. It launches squeak with the correct arguments necessary to run Scratch. So you can just try:
squeak -plugins /usr/lib/scratch/Plugins -vm-sound-PA /usr/lib/scratch/Scratch.image
1. - plugins tells squeak where to look for Scratch plugins. The reason you can't save, etc. is b/c your squeak doesn't have access to the plugins that Scratch needs, especially ScratchPlugin. You can get them from the Ubuntu PPA linked to from the Linux Installers page.
2. -vm-sound-PA tells squeak to use the PulseAudio plugin to play sound. You might not have PulseAudio, so instead you could try -vm-sound-ALSA .
Good luck!
Offline
Lightnin wrote:
Arc-k wrote:
Where I can receive a source code of -vm-sound-PA?
PS: Sorry for my englishCheck out the source code repository mentioned here:
http://squeakvm.org/unix/
yes.
but
v3.10 have not pulse
and v3.11 have a buggy pulse-plugin
Last edited by Arc-k (2010-01-31 10:13:29)
Offline
Ah, the pulse plugin we use has a few bugs as well, unfortunately. I think it is probably the same version as you've found on the Squeak site.
The Pulseaudio sound libraries seem to be a moving target for developers. So the plugin we had worked great on Jaunty, but on Karmic there are problems with recording. If you'd like to help contribute a fix, or perhaps work on a GStreamer plugin, we'd love the help!
Offline
There is a workaround for the recording problem on Ubuntu 9.10 Karmic.
Before recording with Scratch, open up the sound preferences window. (Usually you can do this by right clicking on the speaker icon in the right side of the top panel). Choose the "input" tab. You should see a little meter that shows the sounds level being detected by the microphone.
Now record something in Scratch, and it should work fine! (Weird, I know... it has to do with the way pulseaudio sets latency when that window is open).
Offline
All right, I am kinda getting steamed up right now.
Scratch Team says "blah blah blah blah", it's not helpful.
I'd like a straightforward list of steps on what I need to do on 64-bit Ubuntu Karmic Koala linux operating system using the PPA.
I unsure wether I need to update the key in 9.10 or 9.04.
I'm sorry, the instructions are just kinda badly built. I sound really mad, don't I?
I'd still like it soon, because all my computer skills in Windows and Mac don't apply in Linux.
And please don't say "Go to Windows, it's easier" because I am USING LINUX and that is that.
Offline
Hmmm... sorry you are feeling frustrated.
We hope to get the Linux packaging issues simplified soon - probably by making a binary downloadable from our main Download page. However, we still don't have official support for 64 bit platforms.
But for now, go the ppa page and manually download the .deb file for your distribution.
https://launchpad.net/~scratch/+archive/ppa
(Click view package details, and then the version corresponding to your OS. Download the .deb file.)
Then look at this post for instructions on how to force installation of the 32 bit Scratch package.
http://scratch.mit.edu/forums/viewtopic.php?pid=279634#p279634
Scratch On!
Offline
Thanks.
The thing is, I don't have an i386 architecture- I have an AMD 64-bit! That's my problem. I was wondering, aren't 64-bit systems backwards compatible? I thought that would be the case with Ubuntu Linux 9.10, but not. Maybe I should just download a 32-bit Ubuntu version?
I did try the 64-bit force, though. It worked! Thanks!
Last edited by Greatdane (2010-03-02 23:32:51)
Offline
64 platforms aren't really backwards compatible - they require that binaries are built for them. Many can emulate 32 bit, but it's not seamless. I'm glad to see that forcing the install has worked though!
Offline
At the time i'm using Ubuntu Linux too. My windows 7 computer broke down so..... yeah.
I hate how the applet doesn't play sound on linux. How annoying!
Offline
err.......how do you get scratch for the Eee pc ? please could someone send a link 2 me!? i need linux version
Offline
superpikachu wrote:
err.......how do you get scratch for the Eee pc ? please could someone send a link 2 me!? i need linux version
there was no problem with eeepc901 (eb4 beta) and 1.4, it worked fine ; but i have reinstalled my system and now, the scratch 1.4.0.1 ask for a pulseaudio >= 1.0.9... but this pulseaudio does not exist (higher is 0.9.21-1)
Offline
mathazay wrote:
superpikachu wrote:
err.......how do you get scratch for the Eee pc ? please could someone send a link 2 me!? i need linux version
there was no problem with eeepc901 (eb4 beta) and 1.4, it worked fine ; but i have reinstalled my system and now, the scratch 1.4.0.1 ask for a pulseaudio >= 1.0.9... but this pulseaudio does not exist (higher is 0.9.21-1)
What version of the Scratch package had you installed earlier? It may be that the EEPC OS is using a version of Pulseaudio that is too old. This package should be compatible with Ubuntu based distributions as old as Jaunty (9.04). You could try installing Netbook remix....
Offline
superpikachu wrote:
err.......how do you get scratch for the Eee pc ? please could someone send a link 2 me!? i need linux version
What I know about the Eee PC which I do not know that much about, tells me that you may not be able to run scratch on it.
To my knoledge, it comes with the OS Sugar, which scratch can not be used on.
If you want scratch on Eee PC, I'd suggest getting Linux Ubuntu or Debian.
Offline
I put this command and ...
/scratchv2$ squeak -plugins /usr/lib/scratch/Plugins -vm-sound-PA /usr/lib/scratch/Scratch.image
i have this message
found gettext in path
/home/gduteil/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2
could not find display driver vm-display-X11; either:
- check that /usr/lib/squeak/3.11.3-2147/vm-display-X11.so exists, or
- use the '-plugins <path>' option to tell me where it is, or
- remove DISPLAY from your environment.
/usr/bin/squeak: line 277: 10233 Abandon $VM "$1" "$2"
gduteil@gduteil-desktop:~/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2$ ^C
gduteil@gduteil-desktop:~/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2$
thanks a lot
Offline
Thought I would post this in case others ran into the same problem.
Just installed Scratch on a 32bit Ubuntu system (10.04) and noticed that the audio playback had a bit of a delay. Read this in the README.txt:
The "scratch" startup script shows how to execute the vm, and
the necessary command line switches to indicate where the
plugins can be found, and which sound plugin should be used.
The included script uses the pulseaudio sound plugin by
defauilt, but plugins are also available for alsa and oss -
simply change the vm's command line switches to try different
ones. Here's the script:
/usr/bin/scratch_squeak_vm \
-plugins /usr/lib/scratch/Plugins \
-vm-sound-pulse \
/usr/lib/scratch/Scratch.image "${@}"
Changed from the default pulse plugin to OSS and the problem was solved.
Offline
gromko wrote:
The sound and midi problem in Scratch for Linux - next step:
1. Disable PulseAudio - not support on current version squeak-audio
2. Disable a sound server arTs (or use artsdsp in Scratch startup script)
3. Use startup script for the TiMidity ALSA sequencer interface (best variant -timidity automatically starting on boot system) or manual run timidity as midi-server (from root or sudo - very bad idea):
timidity -iADq -Os
Write this script and save as "midi_support". Set execute permission for this script.
#!/bin/sh
## MIDI support for Scratch
if egrep -q 'TiMidity' /proc/asound/seq/clients 2>/dev/null;
then
## loop, if squeak running
while ( ps -A | grep 'squeak' >/dev/null ); do
## if Squeak midi port exist?
if ( aconnect -i | egrep -q 'Squeak' >/dev/null);
then
if ! egrep -q 'Connecting To: 128:0' /proc/asound/seq/clients 2>/dev/null
then aconnect Squeak:0 TiMidity:0
fi
fi;
done
else echo "TiMidity server not run"
fi
4. Run Scratch startup script.
6. Run 'midi-support' script
7. Selecr language interface for Scratch (!!!) for creating MIDI-port (???)
8. Test: play sound, sound record and midi work fine.
My startup script for run Scratch:
/usr/bin/artsdsp /usr/share/Scratch/squeak/squeak -plugins /usr/share/Scratch/squeak /usr/share/Scratch/Scratch.image &
Scratch.image for Scratch1.4 Beta7 (works and in the previous versions).
Squeak - squeak-3.10-1.
My Linux: Mandriva 2009 (KDE 3.5)
Hi,
I have installed Scratch in Ubuntu 10.04 amd64 using the "--force-architecture" flag. It seems all OK, but the "play drum" and "play note" blocks are not working properly: they play always the same sound at different tone, regardless instrument or drum number. I have tried to follow your steps, but the "aconnect -i" command don't display any Scratch or Squeak midi port. Timidity is running correctly as daemon. Apparently, the strange seventh step is not working for me.
Any help, please?
Offline
rodoval wrote:
I have installed Scratch in Ubuntu 10.04 amd64 using the "--force-architecture" flag. It seems all OK, but the "play drum" and "play note" blocks are not working properly: they play always the same sound at different tone, regardless instrument or drum number. I have tried to follow your steps, but the "aconnect -i" command don't display any Scratch or Squeak midi port. Timidity is running correctly as daemon. Apparently, the strange seventh step is not working for me.
Any help, please?
Unfortunately, we were never able to get midi working properly with Scratch on Linux. Sorry about that!
Offline