Most voted "module" questions
43 questions
Sort by count of
-
8
votes2
answers2530
viewsIs a module the same as a Python class?
A module is the same thing as a class? If not what are the differences? I ask this because according to the The Zen of Python, modules should be used instead of ifs. The problem is that after…
-
6
votes1
answer94
viewsWhat is the purpose of the module in Elixir?
I’m studying Elixir and I came across the keyword defmodulo, I used to define a basic module that displays a message: defmodule Mensagem do def escreve(msg) do IO.puts msg end end Calling in the…
-
5
votes2
answers23393
viewsHow to install numpy and other modules?
I need help installing numpy. I tried to install pygame using Pip but it didn’t work and I was confused on how to install modules or Packages. Use python 3.5.0 in Windows 10 pro
-
5
votes2
answers220
viewsHow does Nodejs manage package.json in sub-folders?
How Nodejs manages Packages.json in sub-folders? You have your normal application but you have sub-modules that you want to have your own dependencies, how does Node manage it? It creates another…
-
4
votes0
answers196
viewsHow to modularize an app made in Sammy.js with Require.js or "module Pattern"?
I have an app (mobile app) written in Sammy.js with 4 routes. Each route has 40 to 70 lines of code and one evento bindado. Write everything down in one callback from app is turning into a beautiful…
-
4
votes1
answer799
viewsHow to export classes, methods or constants in a Python module
Hello, I’m starting to work with Python and have a good experience with Typescript. In Typescript, I have a habit of creating modules when I need to organize my code, so: <rootDir> domain…
-
3
votes1
answer125
views"require" in higher directories
I have a program in Lua. This is the file structure: |Programa |-Main.lua |-config.lua |--------functions |-functions.lua Through the functions.lua, I want to give a require in the config.lua. Is…
-
2
votes3
answers212
viewsGet source file from a Python module
How can I assign a method to a module in Python or even access its source file? I tried using the attribute __file__, as shown below, but returned me the error saying that the module does not have…
-
2
votes1
answer45
viewsCompile linux kernel module
Hello I’m studying about operating systems, through the book: fundamentals of operating systems. La in cap. 2 talks about kernel modules and shows an example: simple. c #include <linux/init.h>…
-
1
votes0
answers22
viewsWhen selecting price option goes to "0"
I’m using version 1.8.1.0 of personnel to develop a cosmetics store, and I’m facing problems with price configurable products. I’m using the SCP. The product comes with the standard price, and when…
-
1
votes1
answer75
viewsHow to migrate my website to Requirejs?
Currently I concateno all my Avascripts with Grunt sending the minified file to the page, but I know that a best practice is to use Requirejs to mudularizar everything, but I do not know how to…
-
1
votes0
answers37
viewsUPDATE NO DOCTRINE-MODULE
To generate the database map I use this code: doctrine-module orm:convert:mapping --force --from-database --namespace="Application\Entity\\" annotation C:\www\projetoBd\module\Application\src To…
-
1
votes1
answer276
viewsError webpack with bootstrap-Loader
I’m having trouble implementing the bootstrap-Loader in the webpack. I get this error output on the console: ERROR in . /~/css-Loader!. /~/resolve-url-Loader!. /~/Sass-Loader? sourceMap!.…
-
1
votes1
answer51
viewsIs there any way to modify what the module will return in Lua?
I want to know if it exists since I have a data storage system, in which the data stays in a table and when the player enters,this data is stored in a module script (The only one that returns…
-
1
votes2
answers1709
viewsModulenotfounderror: No module named 'wordcloud'
I’m using the Microsoft Azure with Jupyter notebook and I need to use the word cloud. However when executing the code: from wordcloud import WordCloud it presents the error No module named…
-
1
votes0
answers16
viewsJoomla forms with submission limit
Good morning, I would like to create a form in Joomla and I would like to know if there is any form module (chronoforms, form maker, etc...) that would allow me to limit the number of registrations?…
-
1
votes1
answer201
viewsDelphi module for Apache 32 bit error
I’m using Apache to upload a Rest server made in Delphi, when I use the module in Delphi in the 32-bit version, I put it in the modules folder of Apache and the run simply gives error and does not…
-
1
votes0
answers1993
viewsError: Cannot find module dotenv
I did the installation of modele as Dev: C:\Users\mrgen\OneDrive> npm i dotenv --save-dev npm WARN [email protected] No description npm WARN [email protected] No repository field. audited 299 packages…
-
1
votes2
answers1111
viewsImport Pysimplegui in Visual Code
I have a mistake when I use Pysimplegui import PySimpleGUI as sg ModuleNotFoundError: No module named 'PySimpleGUI Pysimplegui is installed correctly on the computer so much that I use it on Spyder.…
-
1
votes1
answer190
viewsAttributeerror: module 'plotly.validators.layout.template.data' has no attribute 'Isosurfacesvalidator'
I have an interactive graph in python. The code below works in Azure Notebook, but I had to migrate my code to Jupyterlab and it shows the following error: Attributeerror: module…
-
1
votes0
answers17
views". js" extension loses relative path in Requirejs modules
I’m using Bable or Typescript to transpose my ES6 modules to AMD. The problem is that if the file has extension Requirejs cannot locate the files, it looks at the root of the project instead of…
-
1
votes1
answer572
viewsWhat’s the difference between "include" and "extend" in Ruby?
I’m studying Ruby, and I’ve come to realize that there are two ways (maybe there are more) of injecting methods into a class. At first I thought they might be the same things, since Ruby is a…
-
1
votes0
answers60
viewsModule not located - "module xxx not found" - Lua lang
Archive: Player.lua, my module local Player = {} local function funcPlayer() local player = {} local self = {name="", points = 0} local setPoints = function(newPoints) self.points = newPoints end…
-
1
votes0
answers24
viewsPython - module 'Cdt' has no attribute 'CDT'
Hello, I am working with a code that uses two classes in two files: Radoncdt and CDT. The first one needs the second one. However, when trying to use one of the functions of the CDT class, I get the…
-
0
votes1
answer290
viewsIs it possible to add non-native libraries to python?
I’m wondering if there is a possibility to add a non-native library from python. Example, I’m using the NetworkX to create graph, I need to install the library and everything else. I am wanting to…
-
0
votes1
answer173
viewsZF2 - Runtimeexception: Module (Zfcuserdoctrineorm) could not be initialized
I just downloaded the Composer installer. This is what I have in my Composer.json: "require": { "php": ">=5.3.3", "zf-commons/zfc-user": "dev-master", "zendframework/zendframework": "2.3.*",…
-
0
votes1
answer260
viewsCapture the entered value in the input to submit using jQuery
I need to lock the shopping cart of a shop made in Prestashop, until the person type the email, or log in, after he insert a merchandise in the cart. Then I made the following implementation in…
-
0
votes1
answer586
viewsHow to install a Python module
Hello, I have a script here in python that needs a lib: pypxlib But I don’t know how to install this blessed because I’ve never worked with python. I’m using python 3.5 on Sabayon Linux. someone has…
-
0
votes4
answers7060
viewsI cannot import any Python module
I want to import the module requests from Python to a program I’m doing, but it doesn’t stop giving the following error, so I run the program: ModuleNotFoundError: No module named 'requests' I have…
-
0
votes1
answer341
viewsError creating zend framework module
I created a new module in zend, but it gives error 404. modules.config.php return [ 'Zend\Router', 'Zend\Validator', 'Application', 'Album' <-- módulo que foi criado. ]; module.config.php…
-
0
votes1
answer528
viewsCalling a Python function that is already running
I have the following scenario. I have a function that consumes a lot of RAM and I would like to let it run in the background for every time I call her not to have to reload all the data in memory,…
-
0
votes0
answers78
viewsNode js error importing module
Good afternoon to everyone, I am trying to organize my project, I prescribe to work with Ode, I have a function that creates a chart, I separated it into a separate file and exported this function…
-
0
votes1
answer107
viewsImport user-created modules in javascript
I read in that reply here on the site I can import modules in javascript similar to what is done in python. However, I am not able to apply this in JS. Follow an example. In python varies: #arquivo…
-
0
votes1
answer112
viewsPyhton "No module named" error with local imports
I created a simple App using Flask, but I have a problem when importing the "Resources" that I created into another file. This is the main file: from flask_restful import Api from flask import Flask…
-
0
votes1
answer236
viewspython3 No Module Named pyaudio
I’m a beginner in python programming, so I’m getting the error/warning from my cmd Traceback (most recent call last): File…
-
0
votes1
answer82
viewsNEXT.JS - Server Error: Must use import to load ES Module: C: Users ... nextjs-blog node_modules Remark index.js
Guys, I followed the tutorial of the official website of Next.js in this link ( https://nextjs.org/learn/basics/dynamic-routes/render-markdown ) and I got the following error: "Server Error Error:…
-
-1
votes1
answer218
viewsCan’t find the module
That mistake you’re making, I’m following a course and the teacher’s wheel, mine gives that mistake! C:\Program Files\nodejs\node.exe --inspect-brk=34110 build\server.js Debugger listening on…
-
-2
votes2
answers3533
viewsError installing Pyaudio
I installed Pocketsphinx all right, along with Visual C++ Tools, but when installing Pyaudio, it presents the following error: Failed to build pyaudio Installing collected packages: pyaudio Running…
-
-2
votes1
answer463
viewsTypescript error: Cannot find module 'os'. how to resolve?
app.component.ts import { Component, ViewChild } from '@angular/core'; import { Platform, NavController } from 'ionic-angular'; import { StatusBar } from '@ionic-native/status-bar'; import {…
-
-2
votes1
answer181
viewsLoad a variable from a file with module. Django/Python
Hello, my name is Marvin, I’m a beginner in the area and I have a problem giving a 'POST' a 'file.py' variable to my local server Django. I use a module called 'openpyxl' that serves to load a table…
-
-2
votes1
answer54
viewsImport and Export does not even work with type="module"
I have a Javascript file called "redirect.js", in which it has only two similar functions, which serve only to redirect to a specific page, "redirect.js", containing the following code: export…
-
-2
votes1
answer32
viewsWhere should the program modules be located?
I developed a personal agenda on Python using the Sqlalchemy and the Pyqt5. I realized that, for example: I have the main.py aquivo app = QtWidgets.QApplication([]) login = TelaLogin() if…
-
-4
votes1
answer86
views