module Questions
3
Solved
We have designed an ansible playbook for nodes on which Ubuntu is installed.
Now we have to play the same Playbook on new machines (node) for a different customer who uses Centos.
The problem is th...
4
is there a way to set a output-directory for making kernel-modules inside my makefile?
I want to keep my source-direcory clean from the build-files.
1
I have a function in a PowerShell module which creates a log file and starts a transcript using that file (see below). When running a PowerShell script, this works great and captures all output.
W...
Seminar asked 4/4, 2017 at 9:36
6
I am trying to run this:
from blessings import Terminal
t = Terminal()
print (t.bold('Hi there!'))
print (t.bold_red_on_bright_green('It hurts my eyes!'))
with t.location(0, t.height - 1):
pri...
Peggypegma asked 7/3, 2016 at 17:42
4
I need to have some strongly-typed global variables.
As mentioned here: Extending TypeScript Global object in node.js, in order to add fields to the global variable I need to add a .d.ts file that...
Mooch asked 18/1, 2017 at 10:32
5
Solved
I'm trying to use ES6 modules in Chrome. From all the examples I've looked at the following seems to be the right way to do it, but when I run it in Chrome's developer tools I get this error messag...
Rochelle asked 25/10, 2018 at 16:16
6
Solved
I want to import subfolders as modules. Therefore every subfolder contains a __init__.py. My folder structure is like this:
src\
main.py
dirFoo\
__init__.py
foofactory.py
dirFoo1\
__init__.p...
Magnificence asked 21/1, 2012 at 14:44
27
Solved
I am getting a 'Module not specified' error in my run config. I have no module showing in the drop down yet I can see my module no probs. The issue came about when I refactored my module name, chan...
Mistiemistime asked 16/3, 2015 at 22:11
21
Solved
I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it.
I want to call the help function on each one. In Ruby I can do somet...
Stalk asked 26/9, 2008 at 12:38
5
Solved
I found a solution here: Webpack & Typescript image import
But I am getting error for this:
[ts]
Types of property 'src' are incompatible.
Type 'typeof import("*.png")' is not assign...
Klan asked 29/6, 2018 at 11:9
11
I was looking for a tutorial on how to install Python libraries in the wheel format.
It does not seem straightforward so I'd appreciate a simple step by step tutorial how to install the module na...
Vmail asked 19/1, 2014 at 20:18
2
Say we have a folder in which we have a lot of files that each export something:
facade/A.tsx
export const _A = () => {...}; // this export should NOT be visible for files outside `facade/`
fa...
Girovard asked 14/4, 2022 at 0:13
2
Error
I use yarn create vite command to create a react-ts app and vite as the building tool. After yarn add install the packages, in vite.config.ts file:
import { defineConfig } from 'vite'
import ...
Spikelet asked 14/2, 2022 at 8:11
7
Solved
I have a Vue 2 project, and I've written a simple function for translating months in dates, which I would like to import in one of my components, but I'm getting an error:
export 'default' (impo...
Mishear asked 1/9, 2017 at 7:19
5
Solved
Using this module as an example (using a specific commit so others will see
what I see):
git clone git://github.com/walles/moar
Set-Location moar
git checkout d24acdbf
I would like a way to tell G...
Romeu asked 21/4, 2021 at 18:39
17
Solved
I'm trying to build OpenERP project, done with dependencies. It's giving this error now
Traceback (most recent call last):
File "openerp-client.py", line 105, in <module>
File "modules\__i...
Bandeen asked 20/12, 2012 at 7:45
18
Solved
EDIT: Solved, if anyone comes across this python3.8 -m pip install python-dotenv worked for me.
I've tried reinstalling both dotenv and python-dotenv but I'm still getting the same error. I do ha...
2
Solved
Private inner module returning private item gives "private type in public interface" error
In the below example, the module outer has a private type Private and a private inner module inner. inner is able to access Private (because child modules can access their parent's private items, e...
3
Solved
__getattr__ and __setattr__ works well when i get or set an object's attributes using dot notation.
How do i intercept getting and setting module global variables from inside the module?
I subclas...
7
Solved
Is there a straightforward way to find all the modules that are part of a python package? I've found this old discussion, which is not really conclusive, but I'd love to have a definite answer befo...
Valued asked 10/11, 2009 at 12:47
5
Solved
Suppose I have a package named bar, and it contains bar.py:
a = None
def foobar():
print a
and __init__.py:
from bar import a, foobar
Then I execute this script:
import bar
print bar.a
ba...
5
Solved
I want to have all modules imported from node_modules as external.
What is the configuration for this?
I tried without success :
import path from "path";
import glob from "glob";
import multiEntr...
7
I am working in NodeJS. I have a great deal of legacy code including several packages that are used in many places. This code is all CommonJS, Node require() module structures.
Node now supports ES...
Dracaena asked 24/4, 2021 at 18:38
15
Solved
I have managed to get spyder installed and functioning on my mac but I want to add in a few modules that it doesn't include by default (mahotas and pymorph).
I installed both via easy_install in ...
Wine asked 23/5, 2012 at 23:8
6
Solved
I'm trying to follow through on a url that redirects me to another page using the nodejs request module.
Combing through the docs I could not find anything that allows me to retrieve the url after...
© 2022 - 2025 — McMap. All rights reserved.