Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Renato Vernucio
Hi Fabio, I wish I could use the latest PyDev, unfortunately I need Aptana studio. It's a pity they won't let us install individual packages from their bundle. If they did, I could install only the other packages and install PyDev separately. Thanks for your help once again. Yours, Renato 2014

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Fabio Zadrozny
On Sun, Feb 16, 2014 at 11:52 AM, Renato wrote: > It's solved now, oh my god I was so stupid! I created a package named > "pybrain" for testing PyBrain module, so obviously when I tryed to import > something from PyBrain library, Python would import all modules from this > personal package I crea

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-16 Thread Renato
It's solved now, oh my god I was so stupid! I created a package named "pybrain" for testing PyBrain module, so obviously when I tryed to import something from PyBrain library, Python would import all modules from this personal package I created. The problem was not being reproduced outside Eclip

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-16 Thread Renato
Em sexta-feira, 14 de fevereiro de 2014 01h30min05s UTC-2, Renato escreveu: > Hi guys, I'm using Python 2.7.5 64 bits and I have a problem when importing > libraries that were installed via PIP when importing them inside Eclipse > (version 4.3.1). Outside Eclipse (directly in Python's shell) eve

Re: Problem importing libraries installed with PIP in Eclipse

2014-02-15 Thread Fabio Zadrozny
On Fri, Feb 14, 2014 at 1:30 AM, Renato wrote: > Hi guys, I'm using Python 2.7.5 64 bits and I have a problem when > importing libraries that were installed via PIP when importing them inside > Eclipse (version 4.3.1). Outside Eclipse (directly in Python's shell) > everything works fine, here is

Problem importing libraries installed with PIP in Eclipse

2014-02-13 Thread Renato
Hi guys, I'm using Python 2.7.5 64 bits and I have a problem when importing libraries that were installed via PIP when importing them inside Eclipse (version 4.3.1). Outside Eclipse (directly in Python's shell) everything works fine, here is an example: >>> import numpy

Re: problem importing

2013-10-29 Thread C. Ng
On Tuesday, October 29, 2013 6:40:37 PM UTC+8, Peter Otten wrote: > C. Ng wrote: > Hi all, > So I cloned a package xyz from github. OS is ubuntu > 12.04. > Then install successfully using "sudo python setup.py install" > Now > when I try to import xyz, I get "ImportError: No module named xyz" > u

Re: problem importing

2013-10-29 Thread Peter Otten
C. Ng wrote: > Hi all, > So I cloned a package xyz from github. OS is ubuntu 12.04. > Then install successfully using "sudo python setup.py install" > Now when I try to import xyz, I get "ImportError: No module named xyz" > unless my current working directory is in xyz. Appreciate your help. > Tha

problem importing

2013-10-29 Thread C. Ng
Hi all, So I cloned a package xyz from github. OS is ubuntu 12.04. Then install successfully using "sudo python setup.py install" Now when I try to import xyz, I get "ImportError: No module named xyz" unless my current working directory is in xyz. Appreciate your help. Thanks. -- https://mail.p

Re: Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
cont... Take in consideration /** Hashtable of URLClassLoaders for each of the jars loaded */ private Hashtable classLoaders; Here's an example: org.python.core.PySystemState pySys = new org.python.core.PySystemState(); //classLoad

Re: Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
I've managed to solve this problem. I can now run a python script that lives inside a Jar. The python script is now able to import other scripts within the same jar, and it's also able to import java classes that live within the jar. The problem was solved by giving the Jython Interpreter the pro

Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
Hello all, I've a problem with Jython and importing .py inside a jar. I'm putting .class and .py files inside .jar files. myjar.jar MyJar\SomeClass.class MyJar\main.py MyJar\otherModule.py So I add the myjar.jar to Jython's sys.path org.python.core.PySystemState p

Re: jython problem importing a py file

2006-02-07 Thread didier . prophete
kz, you are my new hero :-) thanks a bunch. -Didier -- http://mail.python.org/mailman/listinfo/python-list

Re: jython problem importing a py file

2006-02-07 Thread Khalid Zuberi
writes: > > I tried everything I could think of (playing with the __init__.py, the > PYTHONCLASS, the CLASSPATH), but nothing seems to work... > > I am doing something wrong here ? > > -Didier > Take a look at the jython registry setting python.path: http://www.jython.org/docs/registry.

jython problem importing a py file

2006-02-06 Thread didier . prophete
Ok, so I know this is probably a common jython error, but somehow I can't seem to find an answer to this trivial problem. Ok, I have the following (simple) directory structure: $TOP/ __init__.py py_dir/ __init__.py util.py I have: PYTHONPATH=$TOP CLASSPATH=$TOP I am n

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-08 Thread stefan
thanks a lot for the quick answer. I had to provide the debug-versions, since I was in debug mode, like you already expected! thanks a lot again! -stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this: char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path ); PyRun_SimpleString("import sys");

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this:    char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path );    PyRun_SimpleStri

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread vincent wehren
stefan wrote: Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and use as well these extended functions). While this works fine with the core python functionality, as soon as I run a script (on the embedded s

after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread stefan
Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and use as well these extended functions). While this works fine with the core python functionality, as soon as I run a script (on the embedded system) which