Comments (31)
Walkaround i was doing last night after short research in Xubuntu:
cd /usr/lib/python3/dist-packages/toxygen/
sudo mkdir libs
cd
sudo ln -s /usr/lib/x86_64-linux-gnu/libtoxcore.so.0.0.0 /usr/lib/python3.5/dist-packages/toxygen/libs/libtoxcore.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libtoxencryptsave.so.0.0.0 /usr/lib/python3.5/dist-packages/toxygen/libs/libtoxencryptsave.so
Seems working.
from toxygen.
For manual/pip installation it's ok because toxygen can't locate toxcore that isn't in path.
How this is ok? Other packages installed with pip can perfectly find libs in standard library paths which includes /usr/lib64/
from toxygen.
@Encrypt what is wrong with packages, on some systems toxygen can't find toxcore.
from toxygen.
Strange.
I also installed libtoxcore-dev (libtoxcore alone is not available) right now, but the same error is displayed.
$ apt-cache show libtoxcore-dev
Package: libtoxcore-dev
Source: libtoxcore
Version: 0.1.3769.dcf2aaa-1
Architecture: amd64
Maintainer: tux3 <[email protected]>
Installed-Size: 457
Depends: libtoxcore0 (= 0.1.3769.dcf2aaa-1), libsodium-dev
Homepage: https://tox.chat
Priority: extra
Section: libdevel
Filename: pool/jessie/libt/libtoxcore/libtoxcore-dev_0.1.3769.dcf2aaa-1_amd64.deb
Size: 116496
SHA256: c7ad43a2c92a72c4bae956a6caca9bece008e77297a0453b97513469d6a8ec88
SHA1: b7ffd247c9e02e690378977e0b0279739c894ac7
MD5sum: 770a961f32ee5f0677ef80acd43f841a
Description: distributed, secure messenger w/ a/v support - core development headers
Tox provides an encrypted, distributed, and extensible peer-to-peer platform
that can be used for various forms of communication. Tox is intended to be used
as a multimedia messenger, but many people have shown us that Tox can be used
for a lot more than just instant messaging.
.
This package contains the core development headers.
Description-md5: 875d25d207da308dcff16a2a768e2fe0
from toxygen.
Probably it was installed in wrong directory. Toxygen reqiures libtoxcore.so in /usr/lib/. Check if libtoxcore.so is here. If it is in /usr/local/lib/ try sudo ldconfig
from toxygen.
Here is the output from the libtoxcore package file list:
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libtoxcore.so.0
/usr/lib/x86_64-linux-gnu/libtoxcore.so.0.0.0
/usr/share
/usr/share/doc
/usr/share/doc/libtoxcore0
/usr/share/doc/libtoxcore0/changelog.Debian.gz
/usr/share/doc/libtoxcore0/copyright
So the file actually is in /usr/lib/x86_64-linux-gnu
. After running sudo ldconfig
the file is not symblinked to /usr/lib
.
In any case toxygen should know were that file is saved as the packes are the official tox.chat ones, so they know the paths and can even change them if necessary.
x64 here BTW.
from toxygen.
Toxygen tries to find libtoxcore.so in libs default directory (/usr/libs/ on most systems). In you case libtoxcore not in path (why?) so toxygen cannot find it. Have you tried to export path to libtoxcore before running toxygen?
from toxygen.
In you case libtoxcore not in path (why?)
Maybe because of the x64 version is installed?
It is maybe just the wrong architecture: https://askubuntu.com/questions/52617/what-is-usr-lib-i386-linux-gnu-for
https://askubuntu.com/questions/449348/why-are-boost-package-libs-installed-to-usr-lib-x86-64-linux-gnu
After reinstalling it via purge & apt-get install libtoxcore0
now, it is still there:
$ l *tox*
lrwxrwxrwx 1 root 19 Okt 31 01:51 libtoxcore.so.0 -> libtoxcore.so.0.0.0
-rw-r--r-- 1 root 233K Okt 31 01:51 libtoxcore.so.0.0.0
from toxygen.
wrong architecture:
Probably.
What about export LD_LIBRARY_PATH="/path/to/libtoxcore/"
before running toxygen?
from toxygen.
What about export LD_LIBRARY_PATH="/path/to/libtoxcore/" before running toxygen?
That's a workaround. This does not fix the underlying problem.
from toxygen.
But it helps? If smth is wrong with package arch I'm not sure that it will help...
from toxygen.
It should not be wrong. Either the package must be corrected or toxygen should search in the correct path.
In case you are tghe developer (you're only listed as a contributor on GitHub, maybe make yourself public in the toxygenm-prject organisation) you should ask the tox.chat guys why the lib is saved where it is/why this is the library.
from toxygen.
Toxygen should search in the correct path.
Unfortunately, it cannot be done (python doesn't support this). Also there is a problem in using 32-bit toxcore and 64-bit python or 64-bit toxcore and 32-bit python. Does any of available packages works on your machine? Probably once I will use OBS for packages but I'm the only one contributor now and I'm too busy to do it in close future.
from toxygen.
Please don't use OBS, tox.chat is really fine, but that packages (of tox core) would you recommend to install?
from toxygen.
I can recommend to install toxcore manually or use precompiled binary. Cannot recommend packages because I didn't test them all.
from toxygen.
Hello! Sorry for the delay, I've been very busy recently.
So, I've read this thread and I don't really know what can be done here.
First, regarding your command @rugk ($ sudo apt-get install -t jessie-backports toxygen
), note that we do not use the backports repository. So, one of the problems could be that you have packages which are "too new", breaking the way toxygen works.
Now, having a look at the Traceback, I can see that Toxygen tries to find toxcore at: /usr/lib/python3/dist-packages/toxygen/libs/libtoxcore.so
.
This is definitely wrong, since toxcore is available at: /usr/lib/x86_64-linux-gnu/libtoxcore.so.0
So, there is probably something wrong in the code, I can see in the Traceback: self._libtoxcore
= CDLL(util.curr_directory() + '/libs/libtoxcore.so')`.
I guess this line has to be reviewed.
Finally, note @ingvar1995 that clients are switching to Toktok/c-toxcore.
So, when you have time, don't hesitate to switch to that version of toxcore.
from toxygen.
I can see in the Traceback: self._libtoxcore = CDLL(util.curr_directory() + '/libs/libtoxcore.so')`.
At first Toxygen tries to find toxcore in default lib folder (/usr/lib) but toxcore is installed in different directory. Anyway import via path doesn't work on Linux at all
from toxygen.
@Encrypt any updates on this?
from toxygen.
Nope, I'm afraid I can't do much here...
I guess you should implement different approaches to load toxcore, depending on the OS.
from toxygen.
Unfortunately I'm limited by Python. Not sure that smth can be done here. On shindows Python can load toxcore by path but on Linux it doesn't work. I will try to find a hack to avoid this problem.
from toxygen.
What about libtoxav?
from toxygen.
Toxygen was not calling me for libautoxav absence.
sudo ln -s /usr/lib/x86_64-linux-gnu/libtoxav.so.0.0.0 /usr/lib/python3.5/dist-packages/toxygen/libs/libtoxav.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libtodns.so.0.0.0 /usr/lib/python3.5/dist-packages/toxygen/libs/libtodns.so
I presume.
from toxygen.
@Encrypt are packages for toxygen still supported?
from toxygen.
Hello!
Yes, toxygen packages are still supported.
However, most clients have switched to libtoxcore-toktok
I have recently been looking for you on IRC to ask you whether I should switch toxygen to that new toxcore too?
I'll do it during the week-end if you wish so! 😃
from toxygen.
Toxygen uses old toxcore api. Once I will have time I will implement toktok support too (in fact I will back to NGC development in this case 😆 ). Btw develop branch now requires opencv installed - do you have any ideas how to add this dep to packages?
from toxygen.
It should be as simple as adding this dependency in the "toxygen" config file of ToxDeb!
I'll have a look this week-end!
from toxygen.
Not sure that OpenCV can be installed in so simple way. Also there are a lot of updates: I migrated from PySide to PyQt5 (package python3-pyqt5) and also need python numpy module (package python3-numpy IIRC). Video calls require a lot of deps 😢
BTW: is this issue resolved?
from toxygen.
I just installed toxygen with sudo pip3 install toxygen
on openSUSE and got exactly the same error. toxygen version installed is 0.2.7.0
libtoxcore is installed in /usr/lib64
:
u1@pc1:~> rpm -ql libtoxcore1
/usr/lib64/libtoxcore.so.1
/usr/lib64/libtoxcore.so.1.9.0
from toxygen.
For manual/pip installation it's ok because toxygen can't locate toxcore that isn't in path. That's why I recommended to install toxcore into /usr/lib in installation instructions. But for packages this behavior is not accesible because users expect everything working perfectly after package installation.
from toxygen.
Strange, can't reproduce. Probably my openSUSE is too outdated. What version are you using and how did you install toxcore?
from toxygen.
openSUSE 42.2
add repo:
zypper ar -f http://download.opensuse.org/repositories/home:/ecsos:/tox/openSUSE_Leap_42.2/ ecsos-tox
install libs:
zypper in libtoxencryptsave1 libtoxcore1 libtoxdns1
install toxygen:
pip3 install toxygen
from toxygen.
Related Issues (20)
- Contact list is unscrollable by mouse wheel
- How do you import or use an existing Tox profile? HOT 1
- FileNotFound error when drag-and-drop file on Linux Mint Mate HOT 1
- Crash during videocall HOT 3
- Show QRCode with ToxID in profile HOT 1
- Desktop sharing button
- Better ringtone and custom ringtones
- Crash on start HOT 3
- Please don't leave.... HOT 12
- toxygen deletes me profile and keys completely HOT 2
- Does any version work on Windows 32 bit? HOT 2
- OSError: exception: access violation reading 0x000000007998B3C0 in win10 64bit HOT 4
- How to compile win32 exe? HOT 6
- Installation on eoan aborts complaining about qt.conf HOT 1
- Toxygen 0.4.3 - Windows HOT 3
- Does Toxygen work with c-toxcore? HOT 1
- OSError: libtoxav.so: cannot open shared object file: No such file or directory HOT 9
- broken updater
- Updated version of the libtoxcore Python wrapping of toxygen
- OSError: exception: access violation reading 0xFFFFFFFF9419E570 in windows 10 64bite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toxygen.