robert904 / pymumble Goto Github PK
View Code? Open in Web Editor NEWMumble client implementation in Python (and a bit of cython)
License: GNU General Public License v3.0
Mumble client implementation in Python (and a bit of cython)
License: GNU General Public License v3.0
Hello i try to compile under w7 32, i had some trouble but continue until i reach this code, i well extracted the opus content so compiler found file missing but always get block with this piece of code, i can't figure out where is the file missing, i tried too the 1.1 from original author website without success.(explanations in the end)
C:\Users\user\Desktop\pymumble\pyopus\copus>python setup.py install
running install
running build
running build_ext
skipping 'copus.c' Cython extension (up-to-date)
building 'copus' extension
C:\Program Files\Microsoft Visual Studio 13.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -Ic:\python27\include -Ic:\python27\PC /Tccopus.c /Fobuild\temp
.win32-2.7\Release\copus.obj
copus.c
c:\python27\include\pymath.h(22) : warning C4273: 'round' : liaison DLL incohére
nte
C:\Program Files\Microsoft Visual Studio 13.0\VC\INCLUDE\math.h(516) : v
oir la définition précédente de 'round'
creating build\lib.win32-2.7
C:\Program Files\Microsoft Visual Studio 13.0\VC\BIN\link.exe /DLL /nologo /INCR
EMENTAL:NO /LIBPATH:c:\python27\libs /LIBPATH:c:\python27\PCbuild /EXPORT:initco
pus build\temp.win32-2.7\Release\copus.obj opus-1.1/.libs/libopus.a /OUT:build\l
ib.win32-2.7\copus.pyd /IMPLIB:build\temp.win32-2.7\Release\copus.lib /MANIFESTF
ILE:build\temp.win32-2.7\Release\copus.pyd.manifest
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'opus-1.1/.
libs/libopus.a'
error: command '"C:\Program Files\Microsoft Visual Studio 13.0\VC\BIN\link.exe"'
failed with exit status 1181
u can read at the end: impossible to open the file opus-1.1/.libs/libopus.a
i don't have the folder named .libs
i dont find where are created libopus.a or .libs
thanx in advance
Is this a know bug?
make[1]: Leaving directory '/home/william/pymumble-master/pyopus/copus'
cp copus/copus.so ./
cp: cannot stat ‘copus/copus.so’: No such file or directory
Makefile:19: recipe for target 'opus_mod' failed
make: *** [opus_mod] Error 1
On Arch x86_64 multilib with python 2.7 and cython2 0.22-1 :
...
File "/home/conky/runtime/pymumble/pyopus/opus.py", line 4, in
import copus
ImportError: dynamic module does not define init function (initcopus)
(note: when attempting to run mumblerecbot).
Changed pycelt makefile to export PLATFORM = UNIX
Upon running make on pycelt:
make -C celt_0_7
make[1]: Entering directory `/home/david/git/pymumble/pycelt/celt_0_7'
python setup.py build_ext --inplace
running build_ext
skipping 'celt_0_7.c' Cython extension (up-to-date)
building 'celt_0_7' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c celt_0_7.c -o build/temp.linux-x86_64-2.7/celt_0_7.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/celt_0_7.o celt-0.7.1/libcelt/.libs/libcelt0.a -o /home/david/git/pymumble/pycelt/celt_0_7/celt_0_7.so
/usr/bin/ld.bfd.real: celt-0.7.1/libcelt/.libs/libcelt0.a(celt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
celt-0.7.1/libcelt/.libs/libcelt0.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make[1]: *** [celt_0_7.so] Error 1
make[1]: Leaving directory `/home/david/git/pymumble/pycelt/celt_0_7'
make: *** [0_7] Error 2
Upon running make on pyopus:
make -C copus
make[1]: Entering directory `/home/david/git/pymumble/pyopus/copus'
python setup.py build_ext --inplace
running build_ext
skipping 'copus.c' Cython extension (up-to-date)
building 'copus' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c copus.c -o build/temp.linux-x86_64-2.7/copus.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/copus.o opus-1.1/.libs/libopus.a -o /home/david/git/pymumble/pyopus/copus/copus.so
/usr/bin/ld.bfd.real: opus-1.1/.libs/libopus.a(opus_decoder.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
opus-1.1/.libs/libopus.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make[1]: *** [copus.so] Error 1
make[1]: Leaving directory `/home/david/git/pymumble/pyopus/copus'
make: *** [opus] Error 2
In particular:
/usr/bin/ld.bfd.real: opus-1.1/.libs/libopus.a(opus_decoder.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
opus-1.1/.libs/libopus.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Hi. I want to stream this output to an rtmp server; for now at least I'd like to save it as an mp3
ENCODER ="ffmpeg -i - -c:a libmp3lame -ab 96k -ac 1 -ar 22050 -loglevel quiet -f mp3 out3.mp3"
doesn't do anything (the wav files are generated, but the mp3 is not)
ENCODER ="ffmpeg -i - -c:a libmp3lame -ab 96k -ac 1 -ar 22050 -loglevel quiet -f mp3 %s.mp3"
Traceback (most recent call last):
File "mumblerecbot.py", line 340, in <module>
recbot = MumbleRecBot()
File "mumblerecbot.py", line 54, in __init__
self.loop()
File "mumblerecbot.py", line 243, in loop
self.audio_file.write(base_sound)
File "mumblerecbot.py", line 324, in write
self.file_obj.write(data)
IOError: [Errno 32] Broken pipe
running
cat somefile.wav | ffmpeg -i - -c:a libmp3lame -ab 96k -ac 1 -ar 22050 -loglevel quiet -f mp3 out3.mp3
works as intended
Hi,
I am glad to have found this because I have been looking for a very minimalist receive only mumble client without a UI to run on a RaspberryPi in association with umurmur.
I have been trying to compile by running make in the pypus folder. Using Ubuntu 14.04 with python 2.7.6 and cython 0.20.1. I have amended the Makefile to Unix but am getting error messages such as the one you quote referring to " .rodata".
I am not sure i properly understand the advice in the Readme but have tried the following permutations of the Makefile with no success so far:
"CONFIGURE_OPTS = "--with-pic"
and
"CONFIGURE_OPTS = "-fPIC" (have I interpreted your advice about -fPIC correctly here?)
This last permutation returns:
make -C copus
make[1]: Entering directory /home/user/mumble/pymumble/pyopus/copus' python setup.py build_ext --inplace running build_ext skipping 'copus.c' Cython extension (up-to-date) building 'copus' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c copus.c -o build/temp.linux-x86_64-2.7/copus.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/copus.o opus-1.1/.libs/libopus.a -o /home/user/mumble/pymumble/pyopus/copus/copus.so /usr/bin/ld: opus-1.1/.libs/libopus.a(opus_decoder.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
opus-1.1/.libs/libopus.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make[1]: *** [copus.so] Error 1
make[1]: Leaving directory `/home/user/mumble/pymumble/pyopus/copus'
Is there anything else you can suggest that I try?
Hi,
Since one year, I maintain the pymumble version.
https://github.com/azlux/pymumble
If you want to, maybe we can make the main repo, up-to-date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.