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
Cannot find/open tsne_multicore shared library #32
Comments
I just tried to replicate this and it works fine for me (python 3.6.2). |
3.6
… On Nov 12, 2017, at 4:46 PM, guenteru ***@***.***> wrote:
I just tried to replicate this and it works fine for me (python 3.6.2).
Which python version are you running?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#32 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AVzyadLeNCHVr7fo5wI7GobHEjFZbsoKks5s1xLxgaJpZM4QWGoT>.
|
which command did you use to install? |
|
try without |
I did, then it fails
… On Nov 14, 2017, at 11:25 AM, guenteru ***@***.***> wrote:
try without --no-cache-dir
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#32 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AVzyafNq2YCIuROE7WXfAjAT_Yi2YJZZks5s2WqDgaJpZM4QWGoT>.
|
I am having the same problem on 3.6.2. |
same problem |
any updates regarding this? i have the same issue. |
Please try to install with |
I solved the problem by compiling the shared .so file manually using g++ |
I got the same problem with python 3.4 when running the example inside the installation directory "Multicore-TSNE" Worked if I run python outside the installation directory. |
Python 2.7 |
I had the same problem. This is how I fixed it:
|
Tried both |
I was experiencing this on one of my machines and so I just updated numpy in my Anaconda distribution. That seemed to fix it. |
The problem I am having is that the file tsne_multicore.dll has been compiled with i386 architecture (32-bit) so it will not work on 64-bit systems, thus the "error 0xc1". I am not sure if this is the correct answer for everyone, but I was able to add:
to the setup.py file to get it to compile with MinGW for WIndows which works and produces the right files for the architecture. |
I have same problem on Win 10, tried to install using all methods mentioned. |
@jroakes THX! That worked perfectly! |
@DmitryUlyanov could you kindly take a look, there is still a problem on Windows... |
Hi, I also have the same problem on Win 10, and also tried with all the methods mentioned and couldn't make it to work. |
I also have the same issue on Win 10. |
Same issue on Win 10. Tried everything above. |
Did anyone find any solution? I am getting the same error |
If you are on Windows,
|
I spent an hour trying different installs with cmd, mingw, pip, setup.py. I'm using python 2.7.10 on windows7. Nothing worked. I then tried on python3.6, worked immediately. |
I built the lib using MSVS 2017 and it worked. I can share the file. But there is an easier way: use pypi wheel package (pip regular installation process)! It simply works! |
I added '-DCMAKE_GENERATOR_PLATFORM=x64' flag to the setup.py and the problem solved in Win64 (Win10) and Python 3.5.4. if 0 != execute(['cmake', |
thx, solved my problem. win 10 |
Hi, I used pip install MulticoreTSNE and got the same error while running my code. Anyone got the solution to fix it? thanks! |
where I can find the setup.py file, please? |
hi |
I alrdy forgot what i did to solve the problem. But i think the steps are:
|
Also having this issue on OSX, @akupemula, can you expand on how to compile the .so with g++ manually? Thanks! |
i've done everything mentioned here #32 (comment) but still getting |
I used to have a working multicoreTSNE on python3.6 in windows7 but
uninstalled then tried re-installing, same problem "RuntimeError: Cannot
find/open tsne_multicore shared library".
tried both pip and clone installs.
…On Wed, Mar 27, 2019 at 3:38 AM P.S. ***@***.***> wrote:
i've done everything mentioned here #32 (comment)
<#32 (comment)>
compiled withcmake x64 and mingw-w64\x86_64-8.1.0-posix-sjlj-rt_v6-rev0
but still getting
"RuntimeError: Cannot find/open tsne_multicore shared library"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ApcfAVaaYWKDCLpxmg45CVbaj2CnaclFks5vax_5gaJpZM4QWGoT>
.
|
this helped me on win 10 x64 python 3.6.8 |
Thank you very much, this solved my problem,this helped me on windows 10 x64 python 3.6.5 |
Thanx this solved my problem on win10 & python 3.5.4 |
This works for me as well. If you had already installed the package, just type pip uninstall MulticoreTSNE and then reinstall it.. |
The above solution works for me. Let me summarize the solution:
Find these piece of code and add one line
|
Does anyone know hot to fix it on Mac OS? |
Problem:demo: from sklearn.datasets import load_digits
from MulticoreTSNE import MulticoreTSNE as TSNE
from matplotlib import pyplot as plt
digits = load_digits()
embeddings = TSNE(n_jobs=4).fit_transform(digits.data)
vis_x = embeddings[:, 0]
vis_y = embeddings[:, 1]
plt.scatter(vis_x, vis_y, c=digits.target, cmap=plt.cm.get_cmap("jet", 10), marker='.')
plt.colorbar(ticks=range(10))
plt.clim(-0.5, 9.5)
plt.show() If you run this demo, the error may occurr: Traceback (most recent call last):
File "/xxxx/miniconda3/xxx/test_MultiCore_TSNE.py", line 10, in <module>
embeddings = TSNE(n_jobs=4).fit_transform(digits.data)
File "/xxxx/miniconda3/xxx/site-packages/MulticoreTSNE/__init__.py", line 103, in __init__
raise RuntimeError('Cannot find/open tsne_multicore shared library')
RuntimeError: Cannot find/open tsne_multicore shared library Explore:Open path = os.path.dirname(os.path.realpath(__file__))
try:
sofile = (glob(os.path.join(path, "libtsne*.so")) + glob(os.path.join(path, "*tsne*.dll")))[0]
self.C = self.ffi.dlopen(os.path.join(path, sofile))
except (IndexError, OSError):
raise RuntimeError('Cannot find/open tsne_multicore shared library') To get more concrete information about this error, we can modified this source code as follow: path = os.path.dirname(os.path.realpath(__file__))
try:
sofile = (glob(os.path.join(path, "libtsne*.so")) + glob(os.path.join(path, "*tsne*.dll")))[0]
self.C = self.ffi.dlopen(os.path.join(path, sofile))
# except (IndexError, OSError):
# raise RuntimeError('Cannot find/open tsne_multicore shared library')
except IndexError as e:
print(e)
exit(-1)
except OSError as e1:
print(e1)
exit(-1) Then run the demo again, errors may occurr as follow: cannot load library '/xxxx/miniconda3/xxx/site-packages/MulticoreTSNE/libtsne_multicore.so':
/xxxx/miniconda3/xxx/site-packages/scipy/_lib/_uarray/../../../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found
(required by /xxxx/miniconda3/xxx/site-packages/MulticoreTSNE/libtsne_multicore.so) From this information, we can see that there's no $ real path /xxxxx/miniconda3/xxx/scipy/_lib/_uarray/../../../../../libstdc++.so.6
$ /xxxx/miniconda3/xxx/lib/libstdc++.so.6.0.26
$ strings /xxxx/miniconda3/xxx/lib/libstdc++.so.6.0.26 | grep GLIBCXX_3.4.29
$ # return nothing SolutionReference:https://blog.csdn.net/qq_39295044/article/details/86685729 We can find $ strings /usr/lib/libstdc++.so.6 | grep GLIBCXX_3.4.29
GLIBCXX_3.4.29
GLIBCXX_3.4.29 This lib file satisfies the requirement, so we can replace $ mv /xxxx/miniconda3/xxx/lib/libstdc++.so.6.0.26 /xxxx/miniconda3/xxx/lib/libstdc++.so.6.0.26_bak
$ ln -s /usr/lib/libstdc++.so.6.0.29 /xxxx/miniconda3/xxx/lib/libstdc++.so.6.0.26 Run the demo again, good lucky! |
I also encountered a similar issue, but I managed to resolve it by following these steps:
By following these steps and utilizing the Mingw64 compiler, I was able to overcome the problem. |
I installed this.
It works inside the directory.
When I move it too dist-packages, it breaks.
It is on sys.path
The text was updated successfully, but these errors were encountered: