python multiprocessing, manager initiates process spawn loop

I have a simple python multiprocessing script that sets up a pool of workers that attempt to append work-output to a Manager list. The script has 3 call stacks: - main calls f1 that spawns several...

Running VisIt from IPython

I'm trying to learn how to run VisIt from the command line, and I've been able to make plots using visit -cli and giving Python commands, i.e. OpenDatabase("somefile.vtk"), etc. Is there anyway to...

pyopencl.RuntimeError: clBuildProgram failed: invalid build options

I am new to OpenCL and have some problems with setting up a OpenCL program. To illustrate my problem please look at the code (taken from https://github.com/benshope/PyOpenCL-Tutorial): # Use...

Change the priority of python sys.path

How can I change the priority of the path in sys.path in python 2.7? I know that I can use PYTHONPATH environment variable, but it is what I will get: $ PYTHONPATH=/tmp python Python 2.7.6...

python+ pycuda (linux) error

I've installed python+pycuda (and other libraries) through this link: http://wiki.tiker.net/PyCuda/Installation/Linux But when I run test program, it says: Traceback (most recent call last): File...

How do I call pdb's Jump() command in PyCharm

I can't find a way to change the next command at runtime when debugging in PyCharm (see: http://pymotw.com/2/pdb/#jump-back), This has been around in VS/PyTools for ages ("Set next statement")....

Why does argparse fail to recognise an argument when a Python script is called directly?

I have a simple script like this (based on the docs for argparse): def Main(): parser = argparse.ArgumentParser() parser.add_argument("issuenumber", help="Create a local branch based on...

Can't create / add a new branch to a git repo with gitpython

I've been working on some Python scripts which make use of the gitpython library to automate the creation of local branches based on issues in our redmine instance. To get started I'm trying to...

How should I document Python method parameters so they appear in intellisense and DOxygen?

I've been using PyTools for Visual Studio 2013 and am wondering if it's possible to document paramaters in such a way that both intellisense and DOxygen understand them. For example I've been...

Python interpteter can't find module in virtualenv, but pip sees it and won't install

I'm trying to use the pytools module within the virtualenv created by Nervana for their Neon deep learning package, but can't seem to either find pytools or pip it. When I enter my virtualenv, I...

Using Pycuda with PySpark - nvcc not found

My environment: I'm using Hortonworks HDP 2.4 with Spark 1.6.1 on a small AWS EC2 cluster of 4 g2.2xlarge instances with Ubuntu 14.04. Each instance has CUDA 7.5, Anaconda Python 3.5, and Pycuda...

pyopencl import error cffi.so undefined symbol

I successfully installed the pyopencl but I am getting an import error. I am stuck here and unable to progress further. Any help would be much appreciated ImportError ...

Visual Studio PyTools Create Django project from existing code

I'm working on some django project. Previously i've been using Visual Studio Code, but now I would like to switch to Visual Studio 2015 with pytools. What I've done so far Clone my git...

Python pyopencl Import Error

I am using Windows 10 and getting the same error. I have AMD Radeon HD 5000 series GPU. I installed OpenCL 2.0.4.0 When I run: import pyopencl I am getting this error: ImportError ...

AttributeError: 'module' object has no attribute for a python method

I have recently installed QuantLib-Python on Ubuntu 16.04 via apt: sudo apt-get install -y libquantlib0-dev libquantlib0v5 quantlib-python It seems thats when I call QuantLib via a unittest on...

Python PyOpenCL does not work

Does anybody has a clue, why this command leads to this error? I am trying to install that on a Windows10 machine with a NVIDIA GPU and CUDA and Python 2.7.14 installed. The DOS command: python...

python setuptools: how can I install package with cython submodules?

I have a python package named pytools. It contains a cython-based submodule nms. When I install the root package pytools with sudo python -H setup.py, the root package seems to be installed...

using argparse in a python script

I have some input file in a directory and want to make a python script with 2 functions and run the script for all of the input files in the same directory. the script that I made still does not...

Web Platform Installer: Python Installer - Downloaded file failed signature verification and may have been tampered with

I'm trying to install WFastCGI 2.1 Gateway for IIS and Python 3.4 via the Web Platform Installer in Microsoft Server Manager's IIS Manager. Python Installer fails with the error: "This product did...

Reloading local module isn't working

Firstly, I know this has been posted on before, but either A) the recommendations don't work or B) the recommendation is to manually delete the module from the namespace and re-import it like...

Simple plot from python console

Using anaconda 3.6 under Windows, this program when executed from an anaconda console python simple_plot.py runs, but nothing displays: #file simple_plot.py import matplotlib.pyplot as...

PyOpenCL fails to build program on MacOS Mojave

So I'm trying to run a program using silx.image.sift, which uses pyopencl. While running the software, I ran into a problem building the openCL program and I've isolated the program to the...

pycuda.driver module not found

I have installed python 3.7.2 along with the following libraries: jupyter, pandas, numpy, pytools and pycuda. I'm working with Visual Studio Code. I'm trying to run the standard pyCuda example: #...

Installing MeshPy in Colab

I have tried to install MeshPy in Colab using !pip install MeshPy but I got the following output and the package has not been installed. I would appreciate any suggestion. Here is the complete...

How to set the environment when using `conda build`?

Trying to take advantage of Conda's build function to install a package not in conda repositories. I've downloaded the source files for the package I want. At the same level I created a folder for...

Missing tkinter package on ubuntu 18.04

This python script has a problem with tkinter but I don't know how to fix it as tkinter is installed, searched on the web but didn't find anything useful [email protected]:~$ python3 predict.py...

Forecasting using Python(Pytools) in QlikSense Desktop

I am using QlikSense Desktop latest version and trying to run forecasting using Pytools.Prophet. But it's not showing me the output. Here is the data and function I have...

Permanent Library Colab - Dependencies

I am trying to install a permanent library in Google Colaboratory. I am following the instructions listed at...

(Windows 10) Miniconda Pyopencl - ImportError: DLL load failed while importing _cl: The specified procedure could not be found

I've been working with pyopencl on my Macbook. I installed miniconda and installed pyopencl from there by using these instructions. On my Mac everything works fine, I can run a small example...

I constantly get ResolvePackageNotFound

When I type conda env create -f environment.yml I constantly get Collecting package metadata (repodata.json): done Solving environment: failed ResolvePackageNotFound: - tk==8.6.8=hbc83047_0 -...