Using DC voltage instead of AC to supply SMPS What would happen if I created an account called 'root'? So, a chmod a+r should fix it (although you may want to go further and figure out why it wasn't readable in the first place). students who have girlfriends/are married/don't come in weekends...? Magento2 Applying Patches Create "gold" from lead (or other substances) When stating a theorem in textbook, use the word "For all" or "Let"? get redirected here
Hot Network Questions Should I serve jury duty when I have no respect for the judge? Worse, the .so itself may be fine, but it may have load-time dependencies on a different file that has any of the above problems. Did find: /usr/local/lib/python3.3/dist-packages/guppy/heapy/heapyc.so: Permission denied However, that's only possible because the importer was rewritten from scratch for 3.1, and there's no way such a radical change is ever going to be Was any city/town/place named "Washington" prior to 1790? https://github.com/scrapy/scrapy/issues/282
Also it's kinda strange that setup.py made all *.py readable to everyone but not *.so cdll.LoadLibrary('/usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.so') OSError: /usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.so: cannot open shared object file: Permission denied –Yey Sep 26 '13 at 0:05 Thanks! link –Yey Sep 26 '13 at 17:16 1 Done. Simulate keystrokes Stopping time, by speeding it up inside a bubble Is it permitted to not take Ph.D.
It turned out to be just wrong permission. Photoshop's color replacement tool changes to grey (instead of white) — how can I change a grey background to pure white? Can my boss open and use my computer when I'm not present? Guppy's Python source does this import so it should succeed. >>> import guppy.heapy >>> import guppy.heapy.heapyc # trying /usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.so # trying /usr/local/lib/python2.7/dist-packages/guppy/heapy/heapycmodule.so # trying /usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.py # trying /usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.pyc Traceback (most recent
[email protected]:/usr/local/lib/python2.7/dist-packages/guppy/heapy$ ls *.so *.py AbstractAlgebra.py ImpSet.py Path.py Remote.py Use.py Classifiers.py __init__.py pbhelp.py RM.py View.py Console.py Monitor.py Prof.py Spec.py Doc.py OutputHandling.py RefPat.py Target.py heapyc.so Part.py RemoteConstants.py UniSet.py But I still can't import Not the answer you're looking for? I found some posts about LD_LIBRARY_PATH. https://lists.galaxyproject.org/pipermail/galaxy-dev/2013-August/015980.html python python-2.7 import shared-libraries guppy share|improve this question asked Sep 25 '13 at 21:03 Yey 35818 1 Yes, it could be corrupted, or empty, or a perfectly valid ELF shared
asked 3 years ago viewed 649 times active 3 years ago Linked 72 Why can't Python find shared objects that are in directories in sys.path? Why did it fail? Related 10Undefined Symbol in C++ When Loading a Python Shared Library16How to import a module in Python with importlib.import_module4Python DNS module import error1Python ImportError: cannot import name datafunc [PyML]4Guppy/Heapy on Windows Or is it my ld.so.cache bad somehow?
Is it because the .so file corrupted? https://sourcecodebrowser.com/guppy/0.1.9/heapyc_8c_source.html Is the sum of two white noise processes also a white noise? By the way, you could file a bug on this, but it would be closed as "already fixed", because the new importer in 3.1 already gives you better error messages. (Well, Most platforms come with tools that let you test shared libraries, and this is really the best way to diagnose the problem.
I wish I can file a bug to Python on better error msg. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I wonder why it worked for me without setting that. Is python27 just smarter?Thanks!
Why are there so many different amounts received when receiving a payment? Why was Gilderoy Lockhart unable to be cured? Inserting a DBNull value in database What is the meaning and etymology of "cod-French" accent?
current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. How to automatically run a command after exiting ssh Unix command that immediately returns a particular return code? It's worth noting that in 3.1 or later, you would have gotten a much more useful error message, something like this: ImportError: dlopen(/usr/local/lib/python3.3/dist-packages/guppy/heapy/heapyc.so, 2): no suitable image found. But for a simple and platform-independent test, you can just use the ctypes library that comes with Python itself: >>> import ctypes >>> ctypes.CDLL('/usr/local/lib/python2.7/dist-packages/guppy/heapy/heapyc.so') You should get an error, like this:
Topology and the 2016 Nobel Prize in Physics Converting SCART to VGA/Jack Is it a fallacy, and if so which, to believe we are special because our existence on Earth seems Join them; it only takes a minute: Sign up Python 27 can't import shared object from guppy up vote 0 down vote favorite I installed guppy the memory profiler from its Browse other questions tagged python python-2.7 import shared-libraries guppy or ask your own question.