Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to install #23

Closed
ghost opened this issue May 14, 2018 · 8 comments
Closed

fail to install #23

ghost opened this issue May 14, 2018 · 8 comments

Comments

@ghost
Copy link

ghost commented May 14, 2018

Have installed Kivy, and now trying to install Audiostream, but get an error:

>pip3 install git+https://github.com/kivy/audiostream.git
Collecting git+https://github.com/kivy/audiostream.git
  Cloning https://github.com/kivy/audiostream.git to /tmp/pip-uhs2_2ti-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-uhs2_2ti-build/setup.py", line 22
        print 'Cython import ignored'
                                    ^
    SyntaxError: Missing parentheses in call to 'print'

Why this could happened?
I have Cython v0.26

>pip3 list | grep Cython
Cython (0.26)
@dolang
Copy link

dolang commented May 14, 2018

Hmm, looks like this project's setup.py was written for Python 2 only. See line 22 In Python 3 print needs parentheses. You should probably try again with Python 2 (or fix it manually, but no guarantees, there are probably other incompatibilities).

  File "/tmp/pip-uhs2_2ti-build/setup.py", line 22
    print 'Cython import ignored'
                                ^
SyntaxError: Missing parentheses in call to 'print'

@ghost
Copy link
Author

ghost commented May 14, 2018

yep it worked. reinstall kivy and audiostream with python 2. that error gone but now I have another one:

>pip install git+https://github.com/kivy/audiostream.git
...
urity build/temp.linux-x86_64-2.7/audiostream/sources/thread.o -lSDL -lSDL_mixer 
-o build/lib.linux-x86_64-2.7/audiostream/sources/thread.so
  /usr/bin/ld: cannot find -lSDL
  /usr/bin/ld: cannot find -lSDL_mixer
  collect2: error: ld returned 1 exit status
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  Failed building wheel for audiostream

and if i do "pip install sdl" or "pip install lSDL", it gives me:

Could not find a version that satisfies the requirement sdl (from versions: )
No matching distribution found for sdl

@ghost
Copy link
Author

ghost commented May 14, 2018

Finally found the solution..

>sudo apt-get install libsdl1.2-dev
>sudo apt-get install libsdl-mixer1.2-dev

and then:

>pip install git+https://github.com/kivy/audiostream.git
...
Successfully installed audiostream-0.2

And now I'm thinking how to combine python3 kivy project with audiostream.. Does there any possible solution of SDL2 and Python3 support in Audiostream?

@dolang
Copy link

dolang commented May 14, 2018

Someone would need to take the time and port it. Myself, I haven't used this yet, so I can't really say, but it doesn't look like a big project. SDL2 should already be supported, see #19.

Maybe you want to try that yourself and create a pull request?

@willandru
Copy link

I had to do this in LINUX Debian-like

pip install wheel

THEN :

pip install git+https://github.com/kivy/audiostream.git
or
pip install git+https://github.com/kivy/audiostream.git --no-cache-dir --no-build-isolation

@Voloveee
Copy link

Voloveee commented Nov 30, 2023

Hello,

I have enermous problem with audtiostream installation. I've tried literally everything, without success.
I want to install it on Windows, Python 3.7.
I tried with:
C:\Temp\Kamil\audiostream-master>python setup.py install
and I got:
running install running build running build_py running build_ext building 'audiostream.sources.thread' extension C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/SDL -I. -I/usr/include/SDL -IC:\Users\username\AppData\Local\Programs\Python\Python37\include -IC:\Users\username\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcaudiostream\sources\thread.c /Fobuild\temp.win-amd64-3.7\Release\audiostream\sources\thread.obj -ggdb -O2 cl : Wiersz polecenia warning D9002 : ignorowanie nieznanej opcji „-ggdb” thread.c C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\username\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\username\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL.lib SDL_mixer.lib /EXPORT:PyInit_thread build\temp.win-amd64-3.7\Release\audiostream\sources\thread.obj /OUT:build\lib.win-amd64-3.7\audiostream\sources\thread.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\audiostream\sources\thread.cp37-win_amd64.lib LINK : fatal error LNK1181: nie można otworzyć pliku wejściowego „SDL.lib” error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

What can be the problem here? I reinstalled Python few times - tried with different versions. It didn't help, though..
I would appreciate any suggestion, hint, idea.

@Julian-O
Copy link

Julian-O commented Dec 1, 2023

@Voloveee: Please take it to our [support channels(https://github.com/kivy/kivy/blob/master/CONTACT.md)

@Julian-O
Copy link

Julian-O commented Dec 3, 2023

Closing main question as fixed/support.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants