Giter Site home page Giter Site logo

Comments (3)

avivt avatar avivt commented on August 22, 2024

from vin.

VeritasYin avatar VeritasYin commented on August 22, 2024

Hi, Aviv!

It still doesn't work on Matlab R2016b.

I followed the instruction of Matlab documents, added the path into python.

P = py.sys.path;
P

P =

Python list with no properties.

['/Users/veritas/Desktop/vin', '/anaconda/lib/python2.7/site-packages/theano', '', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-darwin', '/usr/lib/python2.7/plat-mac', '/usr/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/Library/Python/2.7/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC']

I can import my own python file like mymod.py and module like numpy with no problems,

py.importlib.import_module('mymod')

ans =

Python module with properties:

theend: [1×1 py.function]
search: [1×1 py.function]

<module 'mymod' from 'mymod.pyc'>

py.importlib.import_module('numpy')

ans =

Python module with properties:

                 loadtxt: [1×1 py.function]
              reciprocal: [1×1 py.numpy.ufunc]

......

But if I want to import theano or vin.py, it reported errors:

py.importlib.import_module('theano')
Error using init>import_module (line 37)
Python Error: ImportError: No module named theano

py.importlib.import_module('vin')
Error using theano_utils> (line 3)
Python Error: ImportError: No module named theano

Error in vin> (line 3)
from theano_utils import *

Error in init>import_module (line 37)
import(name)

And also, the path for theano is a dictionary, maybe this method only works for a file (Matlab tries to find a file named theano.py?) rather a dictionary. But still, numpy is also a dic, so I am confused.

Many thanks,
veritas

from vin.

xiong-j avatar xiong-j commented on August 22, 2024

I am having a similar problem. is your problem solved?

from vin.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.