0
votes
0answers
2 views

Remove module install queue from OpenErp

I was installing a custom module that requires the decimal_precision module, however, this module has been updated, so i downloaded and installed the brand new from apps.openerp.com Now is giving me ...
0
votes
2answers
16 views

Using glob to locate modules and then importing module dynamically

I have several modules I want to import dynamically. The modules are named prefix_? where ? = [0,1,2,3]. I use glob to get a list of the files/modules. module = glob.glob(prefix_?.py) module.sort() ...
0
votes
0answers
11 views

django-stdimage dynamic file structure

I am using django-stdimage in a django web app. I want to upload images using in a dynamic file structure according to when the image was uploaded. For instance: ...
0
votes
0answers
16 views

Mouse control with python

I'm running Ubuntu 12.04 and working with python 2. I would like to be able to control my mouse, and I have found several different python modules intended to do this, but cannot get them to work. ...
0
votes
1answer
25 views

Failed to load application: No module named

I'm having difficulty launching a twisted python script outside its working directory. When I try, I receive the following error: exceptions.ImportError: No module named mining My understanding is ...
1
vote
1answer
58 views

What is the most pythonic way to structure a multi-module python program?

I've built a fairly sizeable program in a single file. The size of the file was making it unworkable, so I decided to split into multiple modules, but have since had a major headache of variable ...
-1
votes
2answers
31 views

Copy function in python

What is difference between copy.copy and copy.deepcopy functions in python ? >>> copy.deepcopy(li) [1, 2, 3, 4] >>> copy.copy(li) [1, 2, 3, 4] both does the same thing , can ...
2
votes
0answers
69 views
+50

Relating Custom module field - Products - OpenErp

I need to relate a field from a custom module to a button to be placed in the Purchase Order form of OpenErp. When a product picking is confirmed this button will "discharge" the quantity of this ...
2
votes
1answer
45 views

Python: how to import from all modules in dir?

Dir structure: main.py my_modules/ module1.py module2.py module1.py: class fooBar(): .... class pew_pew_FooBarr() .... ... How can I add all classes from module* to main without ...
-2
votes
1answer
58 views

How to import itertools in Python 3.3.2

I'm running python (through IDLE, though I'm not sure what that is) on a Mac, version 3.3.2, and for some reason when I type from itertools import * it doesn't allow me to then use commands like chain ...
0
votes
2answers
23 views

Nester.py: AttributeError: 'str' object has no value 'write'

Following the book, chapter four on persistence in Python, they ask us to amend the function of a module called "print_lol" inside of "nester". Here's my code. import sys def print_lol(the_list, ...
0
votes
1answer
24 views

Installing Python Module to non-root directory

First time posting on this site. I'm trying to install a python module named Pygments into my local directory at work (non-root). I am using C Shell, so i changed default path using setenv ...
1
vote
0answers
39 views

Import module from memory [duplicate]

Is there any way to import a module from memory, for example, if I were to store a python module in a database, then query it, is there any way to import that string into the current local scope ...
0
votes
0answers
51 views

Getting Error can't find '__main__' module in 'X'

I made a simple hello program using Sublime Text.Run it using windows powershell but everytime I am getting error like : C:\Python27\python.exe: can't find '_main_' module in 'X' X is the name of ...
0
votes
2answers
37 views

Sequence number in field - OpenErp

I need to load a sequence number in a specific field. For this i'm using the ir.sequence model, as i have seen in other modules. Problem is , it is not working yet, i don't know what i'm doing wrong ...

1 2 3 4 5 77
15 30 50 per page