Here is a snippets from my python shell, i can't understand what is wrong there, if somebody has any suggestion i would be glad to hear.
>>> import pydbg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\pydbg\__init__.py", line 47, in <module>
from pydbg import *
File "C:\Python27\lib\pydbg\pydbg.py", line 32, in <module>
import pydasm
ImportError: DLL load failed: The specified module could not be found.
>>> import pydasm
>>>
how come that i can't import pydbg since there it can't import pydasm, and i can import pydasm directly ?
I was able to fix this by deleting pydasm.pyd in the site-packages directory for pydbg.
Move your pydbg directory from C:\Python27\lib\ to C:\Python27\lib\site-packages\, the standard installation location for 3rd party packages. Alternatively, try the unofficial pydbg binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pydbg.
Find pydasm for the python version you are running. I think that pydbg comes with pydasm for python2.6. I don't know why.
I found pydasm for python 2.7 on the Internet. You can also find information about how to convert it yourself. I am not getting any errors but I still struggle with pydbg so I am not sure if this is the solution.
If you are running python2.7 try this: http://blog.csdn.net/qq_lhz/article/details/6922130
Maybe you can try my precompiled binaries of PyDasm for Python 2.7:
https://breakingcode.wordpress.com/2012/04/08/quickpost-installer-for-beaenginepython/
Related
I have problem with linking CNTK library with Anaconda.
My PYTHONPATH: c:\repos\cntk\bindings\python;%PYTHONPATH%
My CNTK_PY_35: C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35
And I have error:
Traceback (most recent call last):
File "C:/Users/szymo/PycharmProjects/ImageClassification/Main.py", line 1, in <module>
import cntk
File "c:\repos\cntk\bindings\python\cntk\__init__.py", line 11, in <module>
from .core import *
File "c:\repos\cntk\bindings\python\cntk\core.py", line 10, in <module>
from . import cntk_py
ImportError: cannot import name 'cntk_py'
Anyone knows how to solve this problem?
Best
As Nikos points, this is very likely due to mixing up of binary installation with the toolkit being built from the sources.
Please try to add something like --with-py36-path=/opt/anaconda/envs/cntk-py36 to your ./configure command options before building CNTK. Please note that you may need to modify the path and Python version according to your setting. The above option is for Arch Linux with Python 3.6 (Anaconda).
I have problems installing d3py.
easy_install from https://github.com/mikedewar/d3py/tarball/master says it's all ok, cloning the repo and setup.py'ing say it's all ok as well, Pandas an Numpy works great (I also use Networkxs working good as well), bu when I try to import d3py come this Error:
Traceback (most recent call last):
File "C:\Documents and Settings\whoauser\Desktop\python\sofia\sofia.py", line 2, in <module>
import d3py
File "C:\Python34\lib\site-packages\d3py-0.2.3-py3.4.egg\d3py\__init__.py", line 1, in <module>
ImportError: No module named 'pandas_figure'
Is this a bug in the installation script? Where I can find a working egg?
Do anyone had the same problem?
Thanks
I think you need to install the pandas module for python. Have you done that?
I really really need your help please. The fact is my problem should seem pretty simple to you.
So I have a macbook with Lion, I use python 3.3. In order to use GDAL for GIS? I downloaded the package on this website, which is recommended everywhere:
http://www.kyngchaos.com/software/frameworks
Then I install it. It is ok, but I cannot import it in my project, here is my error.
When I type import osgeo, I have the following :
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
import osgeo
ImportError: No module named 'osgeo'
I know my path is not good, wherecan I change it ?
Any ideas?
I'm trying to configure and run SVN post-commit hook sending mails. I've downloaded class mailer.py, installed Python 2.7 and svn-win32 bindings for svn. The machine is Windows-7 64 bit, the Python is 32 bit. Now the mailer.py ends with error, which is caused by import problem.
When I in python console type "import svn.core" I have following error:
>>> import svn.core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\tools\Python27\lib\site-packages\svn\core.py", line 19, in <module>
from libsvn.core import *
File "c:\tools\Python27\lib\site-packages\libsvn\core.py", line 5, in <module>
import _core
ImportError: No module named _core
while in directory site-packages/libsvn are files such as: _core.dll
I've installed other bindings, pysvn, that was installed correctly, but as far as I've noticed, it's the totally other API so I can't use that for python.py
Does someone had similar problem and knows how to deal with it?
The Python bindings need to load the native Subversion libraries (DLL's). If your Python is 32-bit then you would need 32-bit versions of the native Subversion libraries on PATH.
I have problem like this. Trouble was that python just can not import this library (svn.core and other).
I just make:
import sys
sys.path.append("C:\csvn\lib\svn-python").
My file core.pyc was in C:\csvn\lib\svn-python\svn. Hope it helps somebody. Such behacior for me is strange because there is no "init.py" or "init.pyc" file in svn-python directory. But it works.
I'm trying to install Plone 3.3rc4 with plone.app.blob and repoze but nothing I've tried has worked so far. For one attempt I've pip-installed repoze.zope2, Plone, and plone.app.blob into a virtualenv. I have this version of DocumentTemplate in the virtualenv's site-packages directory and I'm trying to get it running in RHEL5.
For some reason when I try to run paster serve etc/zope2.ini in this environment way Python gives the message ImportError: No module named DT_Util? DT_Util.py exists in the directory, __init__.py is there too, and the C module it depends on is there. I suspect there's some circular dependency or failure when importing the C extension. Of course this module would work in a normal Zope install...
>>> import DocumentTemplate
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "DocumentTemplate/__init__.py", line 21, in ?
File ".../lib/python2.4/site-packages/DocumentTemplate/DocumentTemplate.py", line 112, in ?
from DT_String import String, File
File ".../lib/python2.4/site-packages/DocumentTemplate/DT_String.py", line 19, in ?
from DocumentTemplate.DT_Util import ParseError, InstanceDict
ImportError: No module named DT_Util
I must say I doubt DocumentTemplate from Zope will work standalone. You are welcome to try though. :-)
Note that DT_Util imports C extensions:
from DocumentTemplate.cDocumentTemplate import InstanceDict, TemplateDict
from DocumentTemplate.cDocumentTemplate import render_blocks, safe_callable
from DocumentTemplate.cDocumentTemplate import join_unicode
You'll need to make sure those are compiled. My guess is that importing the cDocumentTemplate module fails and thus the import of DT_Util fails.