How to solve import CNTK library? - python

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).

Related

d3py installation error - no module named pandas_figure

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?

Installing GIS for gis with Python is easy ...? not for me

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?

pydbg can't import pydasm - Python 2.7

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/

ImportError: No module named cv

I get this error on running SimpleCV:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/SimpleCV/__init__.py", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/SimpleCV/base.py", line 22, in <module>
ImportError: No module named cv
What could be going wrong? Please suggest..
Just an FYI SimpleCV has a help forum at help.simplecv.org. It looks like python doesn't know where the opencv packages got installed. Doing a sudo easy_install probably won't work. What you need to do is figure out where the cv libraries live on your system, and where python is looking for them and then symbolically linking the two.
Recently, I just set up the environment to study SimpleCV and write the blog to record the steps as SimpleCV environment setup on Mac. Maybe it could help you :)

No module named _core when using mailer.py on Windows/Python 2.7

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.

Categories