Git Product home page Git Product logo

Comments (7)

mesnilgr avatar mesnilgr commented on July 23, 2024

from the README:
In order to reproduce the results, make sure Theano is installed and the repository is in your PYTHONPATH, e.g run the command export PYTHONPATH=/path/where/is13/is:$PYTHONPATH

in your case:
export PYTHONPATH=~/github:$PYTHONPATH

from is13.

andyyuan78 avatar andyyuan78 commented on July 23, 2024

ubgpu@ubgpu:/github/is13$ sudo python examples/elman-forward.py
[sudo] password for ubgpu:
Traceback (most recent call last):
File "examples/elman-forward.py", line 8, in
from is13.data import load
ImportError: No module named is13.data
ubgpu@ubgpu:
/github/is13$ export PYTHONPATH=/github/is13:$PYTHONPATH
ubgpu@ubgpu:
/github/is13$ sudo python examples/elman-forward.py
Traceback (most recent call last):
File "examples/elman-forward.py", line 8, in
from is13.data import load
ImportError: No module named is13.data
ubgpu@ubgpu:/github/is13$ echo $PYTHONPATH
/home/ubgpu/github/is13:/home/ubgpu/github:/usr/local/lib/python2.7/dist-packages
ubgpu@ubgpu:
/github/is13$

from is13.

mesnilgr avatar mesnilgr commented on July 23, 2024

I wrote
export PYTHONPATH=~/github:$PYTHONPATH

not what you typed:
export PYTHONPATH=~/github/is13:$PYTHONPATH

from is13.

andyyuan78 avatar andyyuan78 commented on July 23, 2024

sure, i try this first, it doesn't work; then add the path with is13/

ubgpu@ubgpu:/github/is13$ export PYTHONPATH=/github:$PYTHONPATH

ubgpu@ubgpu:/github/is13$ sudo python examples/elman-forward.py
[sudo] password for ubgpu:
Traceback (most recent call last):
File "examples/elman-forward.py", line 8, in
from is13.data import load
ImportError: No module named is13.data
ubgpu@ubgpu:
/github/is13$

from is13.

andyyuan78 avatar andyyuan78 commented on July 23, 2024

I figure it out!

since I must use the sudo to run theano, but the $PYTHONPYTHON is not set with root

root@ubgpu:/home/ubgpu/github/is13# export PYTHONPATH=/home/ubgpu/github:/usr/local/lib/python2.7/dist-package

root@ubgpu:/home/ubgpu/github/is13# python examples/elman-forward.py
Downloading data from http://www-etud.iro.umontreal.ca/~mesnilgr/atis/atis.fold3.pkl.gz
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility
rval = import(module_name, {}, {}, [module_name])

from is13.

lucas0 avatar lucas0 commented on July 23, 2024

Can you please explain what have you done to fix this? Im in windows and having the same problem "No module named is13.data"

from is13.

andyyuan78 avatar andyyuan78 commented on July 23, 2024

to lucas0
the issue i got is under Ubuntu, as the 'root' have a differen ENVIRONMENT VARIABLE with normal user.

from is13.

Related Issues (20)

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.