0
votes
0answers
15 views

Python sys.path missing Scripts dir

I'm having trouble running installed packages such as cxfreeze,pycallgraph, using the "python cxfreeze -something" in cmd. i fount that my sys.path does not have "C:\Python27\Scripts" in it, should ...
0
votes
1answer
19 views

Module Import Error running py.test with modules on Path

I'm unable to import my module for testing in the way that I'd like. I'm running all of this in a virtualenv on 2.7.2 I have a directory structure like /api /api __init__.py ...
0
votes
0answers
28 views

“PYTHONPATH”, going through the list and check elements

i have to set my variable maya_env_variable = "PYTHONPATH" after i have to set a new path new_path_list ['User/Desktop'] i have to get the current value of my PYTHONPATH using ...
0
votes
2answers
35 views

Error to launch IPython shell after source install

I have an account in a CentOS server without sudo permission. As a result, I tried to install IPython from source code by python setup.py prefix=<my home directory>. However, I got the Error: ...
1
vote
1answer
97 views

Changing PYTHONPATH on mac

So I tried to change PYTHONPATH in mac terminal and this is how it went: >>> PYTHONPATH = "${PYTHONPATH}:~/Desktop/Python/Modules" >>> export PYTHONPATH File "<stdin>", line 1 ...
0
votes
0answers
18 views

Installing alglib for python in windows

I followed these instructions after placing the unzipped alglib python download in the C:\Python27\Lib\site-packages directory. Running setup.py does create an alglib.dll in the ...
0
votes
1answer
42 views

Using cython extension once compiled [under Windows], how to use .pyd's?

I am used with compiling self-made python extensions under Linux using Cython. On Linux, I use distutils to produce a "myext.so", that I can then simply add to my PYTHONPATH and get the import myext ...
1
vote
0answers
71 views

using pip to install packages locally in spite of satisfied global requirements

I am trying to use pip to install a package locally in ~/.local. The problem is that the package (in an older version) is already available globally on the system. Even though the global python ...
0
votes
1answer
148 views

adding directory to sys.path /PYTHONPATH

I am trying to import a module from a particular directory. The problem is that if I use sys.path.append(mod_directory) to append the path and then open the python interpreter, the directory ...
0
votes
1answer
17 views

How to use a package from another project in PyDev

I have read this, but it didn't work for me. These are the steps I used: Right-click project1 > Properties > Project References > select project2R Right-click project1 > Properties > PyDev - ...
0
votes
3answers
83 views

How to flexibly change PYTHONPATH

To specify the classpath in Java, I use the -cp or -classpath option to java. What is the equivalent option in Python? I know I can set the OS variable PYTHONPATH but there shouldn't be one ...
0
votes
2answers
73 views

PYTHONPATH: command line calls on Windows 7

There are python scripts with command line arguments that I'd like to call from any location on my PC. The idea is to share the corresponding package with others so they can open up a CMD window and ...
0
votes
1answer
207 views

How to pass a variable file path to Robot Framework located on PYTHONPATH?

Environment: Robot Framework 2.7.5 (Jython 2.5.2 on java1.6.0_21) Tomcat 7.0.32 Hi, I am using RF embedded on a Java web application and am I having issues passing the --variablefile argument into ...
1
vote
1answer
209 views

Gunicorn+Django+Heroku. Python Path Issue

I'm running a Django app that I used to deploy to Heroku with Gunicorn without a hitch. By that I mean that I could run foreman start on my localhost and be able to understand whether the ...
1
vote
1answer
186 views

Boost Python Hello World example not working in Python, AGAIN

I have the same problem than the guy here Boost Python Hello World example not working in Python who solved his problem, without indicating how. The posts there being quite old, after having posted ...
0
votes
2answers
139 views

Embedding python scripting installation ImportError: No module named site

Hi I have created an application that allows end user python scripting. The main portion of the application is written in python, this I have compiled away to an exe using pyinstaller this is fine ...
1
vote
2answers
46 views

Execute script ignoring user's PYTHONPATH

I have a set of scripts, that are executed using a specific python installation (set with a first line #!). There are a few different python installations on the network, and different groups have ...
0
votes
2answers
117 views

django-admin.py and proper way to alter PYTHONPATH on Dotcloud?

I don't have a manage.py and use different settings for DJANGO_SETTINGS_MODULE and django-admin.py to switch between development and production environments. This is suggested both by Django docs and ...
0
votes
1answer
282 views

Changing PYTHONPATH in shell [closed]

I'm a completely new user to Python and shell scripts, and have run into a dead end with this, even after Googling the issue and banging my head against the desk a lot. Any help is appreciated! I'm ...
2
votes
1answer
49 views

How do I systematically identify the dependencies Python has across its accessible package/module tree?

Question: How can I systematically probe into files that are involved at any time by the interpreter (like in debug mode). When everything fails I get error message. What I ask for is the opposite: ...
1
vote
3answers
121 views

Where does python look for files in a script? [duplicate]

So I've just coded this class for a title screen and it works well. However, one of the people I'm working with on the project mentioned that I shouldn't use: os.chdir(os.getcwd() + "/..") resource ...
0
votes
0answers
42 views

Why python appends script dir diffrently in windows and linux to pythonpath?

I've got this structure: test dir: . ├── __init__.py └── nested ├── __init__.py └── test.py Then i'm running script (python2.7) like this: ~/tmp/test$./nested/test.py test.py: import ...
3
votes
2answers
308 views

set pythonpath before import statements

My code is: import scriptlib.abc import scriptlib.xyz def foo(): ... some operations but the scriptlib is in some other directory, so I will have to include that directory in environment ...
0
votes
1answer
254 views

Python Pyglet - 'No module named window'

I'm now working on Ubuntu to try and solve this. I am trying to get Pyglet to work in a .py script. So, I am using the default install of Python on Ubuntu (2.7.3, Ubuntu v = 12.4). I used: sudo ...
0
votes
2answers
199 views

PYTHONPATH vs symbolic link

Yesterday, I edited the bin/activate script of my virtualenv so that it sets the PYTHONPATH environment variable to include a development version of some external package. I had to do this because the ...
1
vote
2answers
124 views

Is it possible to use multiple paths for PYTHONPATH on Windows?

I have a clean virtual machine with XP SP3 32-bit and ActivePython 2.7.2 32-bit community edition, current dir is "C:\test". I have placed sitecustomize.py with "print( 'dir1' )" code indie ...
0
votes
1answer
79 views

Python2.7 searches the unwanted directory when importing modules

I tried to use Python 2.7 to import numpy. Configuration that may cause the problem Two Python interpreter installed on my computer, Python 2.4 and 2.7 two copies of numpy installed, one in my home ...
0
votes
1answer
63 views

ImportError: no mudule named ini

I have a directory structure like akom DB DBinit.py __init__.py server.py Configuration(dir) urls.py settings.py manage.py ini.py __init__.py I have set ...
0
votes
1answer
123 views

Does uwsgi server read the paths in the environment variable PYTHONPATH?

Its weird because, when I run a normal python script on the server, it runs but when I run it via uWSGI, it cant import certain modules. there is a bash script that starts uwsgi, and passes a path ...
2
votes
1answer
305 views

Setting a proper version of Python and PYTHONPATH variable in emacs

I'm trying to learn Emacs developing for Python and I have discovered some of my projects don't work because of modules import problem, namely SciPy or NumPy are not imported. I've tried solutions ...
0
votes
1answer
142 views

Jython: Is there any difference between adding to sys.path vs passing -D?

I have a python application that is trying to load some Java libraries (specifically Axis2 web services). When I add the necessary jars in Eclipse via PyDev Project Source Folders, everything seems to ...
1
vote
4answers
164 views

Module name different than directory name?

Let's assume I have a python package called bestpackage. Convention dictates that bestpacakge would also be a directory on sys.path that contains an __init__.py to make the interpreter assume it can ...
5
votes
1answer
332 views

Python Module imports in Terminal but not through Unix Shell

I'm just getting started with Python and need a little guidance. I'm using a Mac, but I have a python.org build of python installed as well as the original Apple install. I'm trying to load up some ...
0
votes
1answer
204 views

Python script shows different pythonpath

Attempting to run runsnake gives ImportError: No module named wx Opening an ipython or python session seems to work fine: >>> import wx >>> import sys >>> print [p for ...
1
vote
1answer
699 views

WSGIPythonPath is not working

I am deploying my web.py application on Apache2 with mod_wsgi. Here is my virt_host file, WSGIPythonPath /home/ubuntu/plotwatt/libplotwatt:/home/ubuntu/plotwatt/pwstage/src <VirtualHost ...
2
votes
4answers
386 views

cannot run python script file using windows prompt

I am trying to run a python script from the windows command prompt, but I receive the following error message: "python: can't open file 'pacman.py': [Errno 2] No such file or directory" when I try ...
0
votes
2answers
153 views

Adding files to PYTHONPATH in OS X

Okay, I am tearing my hair out trying to do this. I've read through dozens of webpages and they've all given me contradictory information, and none of what they've told me to do has worked. I have a ...
0
votes
0answers
68 views

automatic set python module path like maven?

in maven, when I run tests, the sources in src/ are automatically sourced. now I organize my python code in a similar dir structure. but when I run unitttests, python -m unittests tests it says that ...
0
votes
1answer
171 views

Problems with PYTHONPATH

From the command line (Mac OS), when I execute 'echo $PYTHONPATH' I get: > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 If I then enter the Python interpreter and do ...
0
votes
2answers
567 views

How to find PYTHONPATH on Redhat?

On Redhat, python 2.4.3 is installed. On that machine, we have an application that uses python 2.6 (strange, at least for me). I understand it this way: I start a command line from RedHat desktop and ...
0
votes
1answer
185 views

Is there a better way to control the PYTHONPATH of a subprocess?

I have a set of scripts that has to modify os.sys.path on the fly. The scripts then kick off a subprocess. Ideally, the subprocess would have the same os.sys.path as the caller. I want to avoid ...
1
vote
0answers
585 views

Incorrect PythonPath after editting bash_profile for Mac trying to install OpenCV

Total noob here trying to get OpenCV working on Python through Homebrew. I searched everywhere extensively and couldn't find an answer intelligible to me. 99% of what I have done for this install is ...
-1
votes
3answers
382 views

How to permanently append a directory to PYTHONPATH?

I attempted the two commonly mentioned methods below, and they have not worked - hence this [seemingly redundant] question. import sys sys.path.append('foo/bar') AND export ...
4
votes
1answer
918 views

Upgrade version of scikit-learn included in Enthought distribution

I have EPD 7.3.1 installed, which comes with scikit-learn v 0.11. I am running Ubuntu 12.04. I need to install v 0.12 of scikit-learn. The scikits doc says clone the repository, add the scikit-learn ...
0
votes
1answer
618 views

Ipython has different sys.path than python and does not use PYTHONPATH?

It seems that IPython does not take into account my PYTHONPATH, while a normal python interpreter does it. I'm on windows 7. My PYTHONPATH: C:\workspace\python; ...
2
votes
4answers
543 views

Django errors on Python with Subterfuge

I just installed a new MiTM software called: Subterfuge on Arch Linux 32-bit but when I try to run it as sudo I get the following error: Traceback (most recent call last): File ...
3
votes
1answer
300 views

XCode not seeing python modules

Let me start by saying that I'm fairly new to Xcode, OS X, and installing python modules. When I attempt to build my project, XCode tells me that it cannot find a python module: File ...
1
vote
2answers
451 views

How to add something to PYTHONPATH?

I downloaded a package (called pysolr 2.0.15) to my computer to be used with Haystack. The instructions asks me to add pysolr to my PYTHONPATH. What exactly does that mean? After extracting the ...
2
votes
2answers
147 views

setting python search path in config file without environment variables (i.e. PYTHONPATH)

Is there some way to set python's search path in a config file without setting PYTHONPATH, i.e. some default configuration file that python reads when it starts?
3
votes
1answer
101 views

python import from sub-directory in a git safe way

Here is my current directory structure: proj/ proj/__init__.py proj/submodFolder/ proj/submodFolder/submod/ proj/submodFolder/submod/__init__.py I'm writing a project and I would like to have ...

1 2 3 4
15 30 50 per page