Questions tagged [module]

10868 questions
0

votes
0

answer
16

Views

Creating a Python module with its dependencies self contained

When creating a Python module, you can specify dependencies of your module by using the install_requires List. Lets look at this basic example. setup(name='some_module', version='0.0.1', packages=find_packages(), install_requires=[ 'requests==2.21.0' ]) I package my module python3 setup.py sdist and...
chasez0r
1

votes
1

answer
44

Views

Unable to find modules when routing Dart Angular Tour of Heroes

I have been following the Dart Angular Tour of Heroes tutorial. I made it to part 5, where routing is taught. But I got stuck at the section where the router is made available. I typed out the code, but it does not build. I get the following error: [SEVERE] build_web_compilers|entrypoint on web/main...
Comrade SparklePony
1

votes
2

answer
122

Views

Shiny Modules: Accessing and changing reactiveValues situated inside module`s server function from the outside?

I have a shiny-module which uses reactive Values to store its internal state. In the example below this is only used to output the number the input changed, but my real use-cases are more complicated. I now want to create a function which can be used to set one of these modules to the state of the...
Julian
1

votes
1

answer
954

Views

Python 'No module named' error; 'package' is not a package

I'm trying to make a simple import and use the emailage third party library. As per their documentation, the way to use their library is as follows: pip install emailage-official Then, simply import with: from emailage.client import EmailageClient The install works fine with pip - no errors. I dou...
Aaron Taveras
1

votes
1

answer
30

Views

error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]

I am trying to adjust an old kernel module (written for 2.6.x kernel) for kernel 4.6.x. The code has a struct declaration as seen below: struct tcpsp_sysctl_table { struct ctl_table_header *sysctl_header; struct ctl_table tcpsp_vars[NET_TCPSP_LAST]; struct ctl_table tcpsp_dir[2]; struct ctl_table ro...
kr1stj0n
1

votes
1

answer
44

Views

Ejabberd - ejabberd_auth_external:failure:103 External authentication program failed when calling 'check_password'

I already have a schema of users with authentication-key and wanted to do authentication via that. I tried implementing authentication via sql but due to different structure of my schema I was getting error and so I implemented external-authentication method. The technologies and OS used in my appli...
gujjubola
1

votes
2

answer
42

Views

How can I force eJabberd to store encrypted messages to the database (mod_mam) instead of storing messages as plain text?

Im building a secure messaging system based on ejabberd server. But I have realized ejabberd (mod_mam module) stores message archive at barely plain text. If database will be stolen (some kind) chats of all my users will be compromised. How can I enable stored messages encryption?
lovesuper
0

votes
0

answer
6

Views

Dagger Injection obtain Dagger/MissingBinding error

When I try to compile the app throw error. [Dagger/MissingBinding] [dagger.android.AndroidInjector.inject(T)] java.util.Map,javax.inject.Provider> cannot be provided without an @Provides-annotated method. public abstract interface AppApplicationComponent extends dagger.android.AndroidInjector { AppA...
jordiz
0

votes
1

answer
14

Views

python ModuleNotFoundError: No module named 'gplearn'

I created a project in Pycharm including a gp.py, copied the project folder to another machine and tried to run the gp.py script from command line using python gp.py. However I got a error Traceback (most recent call last): File 'gp.py', line 2, in from gplearn.genetic import SymbolicRegressor Mod...
user3474606
2

votes
0

answer
20

Views

Problem with same bean name in sprint boot multi module project

I am using Spring boot Multi-Module for my project. Problem here is that, I have 2 modules - Module A and Module B Module A contains bean- moduleService.java Module B contains bean- moduleService.java Now while compiling I am getting error that Bean with the same name already exists. When I am worki...
Akash Kumar
1

votes
1

answer
21.1k

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 and combinations. Additionally I can't seem to import numpy so I think I might have messed up the i...
Moderat
1

votes
3

answer
1.4k

Views

Installing Perl module in Unix

This is my first time installing a Perl module and I'm having some trouble. I'm trying to install manually In UNIX. These are the steps I am following (Installing DBI module in this case) Download DBI-1.628.tar.gz tar file, Uncompress file with $ tar -zxvf DBI-1.628.tar.gz So far no problems, Its t...
BryanK
0

votes
0

answer
4

Views

Unable to derive module descriptor for legacy signed JAR

I'm trying to update a software system to JDK-11 using modules, and everything was going just fine right up until I slammed head-on into the aforementioned issue. I have a legacy signed JAR that I need to incorporate for interaction with legacy systems. There's no way to update the JAR and no way to...
Diego Rivera
1

votes
1

answer
3.6k

Views

PKCS#11 engine for openSSL

I'm trying to setup openSSL under Windows 7 to use a vendor specific security module. From the vendor I got a PKCS#11 API dll (lets say vendor.dll). The PKCS#11 engine has been created according to https://github.com/OpenSC/libp11 As described in the link, for testing, I start openssl engine pkcs11...
michael
1

votes
3

answer
778

Views

Recommended order of input and output ports in Verilog module declaration

Being new to Verilog I noticed that lots of code is ordering their ports in module declarations with inputs first: module do_something( input wire clk_in, input wire a_in, input wire b_in, output reg val_out); .... endmodule (Almost the same way I'm used to it when programming in C/C++: inputs first...
fhw72
1

votes
3

answer
748

Views

Importing dynamically all modules from a folder

I know there is this question, but not only they're not working, it's not exactly what I want. I'm developing a racing game and want to load all tracks from a folder dynamically (They're stored as .py instead of .json). I don't want to know the names of the tracks, since users can mod/add them at wi...
Ericson Willians
1

votes
1

answer
456

Views

ASP.NET Boilerplate Plugin Module or Dynamic Module

I am a .NET developer and currently, I am trying to learn ASP.NET Boilerplate. I came across PlugIn Modules and I got the idea that it can be used for module dependency, but they have these lines that I am trying to understand: The AbpBootstrapper class defines the PlugInSources property which can b...
Darshan Dave
1

votes
2

answer
408

Views

How to declare a global variable and access it in all the other modules in ReactJS?

Being new to ReactJS, I wanted help with the global variable declaration and usage. The scenario is that I have different modules and I want to access a variable which is available in all the modules, irrespective of their relations. To be precise, I have an admin panel and a user dashboard which ha...
Miral Kumbhani
1

votes
3

answer
330

Views

Exporting and requiring an async function error

I export an async function in a file called resourcess.js like this: //resourcess.js module.exports = function(arg) { let do_stuff = async (arg) => { ... } Then i require that file in routes.js like this: let importedFunc = require('./resourcess.js'); Finally i use it in routes.js like this: app.pos...
user1584421
1

votes
1

answer
86

Views

Fluent Interface in ReasonML

Is there a way to get a module to return its own type using a functor submodule? Example module type A = {}; module type B = { let varB: int; }; module AMod : A = {}; module BMod : B = { let varB = 42; }; module Fn = (A: A, B: B) => A; /* Lets say this does some complex function that returns Type A...
GTDev
1

votes
2

answer
123

Views

What are the valid path roots in the use keyword?

With the module system being revamped for the 2018 edition, the functioning of the use keyword has changed. What are the valid paths that can go after the use keyword?
French Boiethios
1

votes
1

answer
63

Views

'strsep' causing Linux kernel freeze

I have a program in userspace that writes to a sysfs file in my kernel module. I have isolated that with high probability the source of the crash is this specific function, as when I run the user code before reaching this point it doesn't crash, but when I add the write code it crashes with high pro...
Eloo
0

votes
2

answer
32

Views

Variables in custom python module

I am making my own custom python module called zoro, and I want to enable people making a variable, and the variable is equal to a function in my module, but how do I make that? I've already tried looking in to the code of other modules like turtle, and turtle used the self argument, so I tried to u...
BE Official
1

votes
1

answer
208

Views

Linux Kernel error: missing binary operator before token “(”

Some simple preprocessor code in Linux Kernel module gives error: missing binary operator before token '(' The code: #if defined(AAA) || defined(BBB) #if LINUX_VERSION_CODE
z0lupka
1

votes
2

answer
39

Views

How to load a python module from a string?

Given the string optimizer = 'tensorflow.train.ProximalAdagradOptimizer' How can I achieve the following: import tensorflow optimizer = tensorflow.train.ProximalAdagradOptimizer() Context To add context to my specific use case (to address one of the comments): I'm trying to create a text-based confi...
rodrigo-silveira
1

votes
2

answer
121

Views

What causes “Pattern matched no module dependencies” when using go mod download?

When running go mod download the warning (warning: pattern 'all' matched no module dependencies) is shown and none of the modules in my go.mod file are download to the local cache. I've spent the last hour on google trying to find similar errors but have been stuck with the only results being broke...
Aoradon
1

votes
1

answer
38

Views

Electron Atom - Module “Node-Windows” not found after compiling

After hours of searching and still not finding a usefull answer, I hope somebody could help me with following issue that I'm facing: I inclued to my Electron APP a module called 'node-windows' so I could register a script as a service to a windows machine. I've installed it over the command => npm...
Dennis
1

votes
2

answer
625

Views

Android Studio gradle modules dependency error

I have some application modules who's sharing some same content (Adapters,Layouts,etc..) when i include the shared module dependency i get the error below Notice: that i want my shared module to be application type in order to put in it some shared layout resources shared build.gradle apply plugin:...
Hassan
1

votes
0

answer
29

Views

What is the need of passing additional arguments to browserify's module constructor?

I am just checking how browserify creates a bundle code. prelude.js contains the IIFE that is executed with arguments of the format: ({ id_one: [function(require, module, exports) { // Module Code }, { dependency_one: id_two, dependency_two: id_three }], }, {}, [entryid]) However, I couldn't underst...
Nishant
1

votes
1

answer
117

Views

Unit tests not importing project modules (Python)

My code structure is: + project | + - - project_code | | __init__.py | \ main.py | + - - test | __init__.py \ test_main.py In my test_main.py I have: import unittest from project_code.main import MainClass where MainClass is just a class in main.py I then navigate to the project direct...
numberjak
1

votes
0

answer
135

Views

React Native project build failed after installing new module

When I install any new module in my previously build React Native project and trying to run then it fails to build. I also uninstalled previously build app from my android emulator and tried again but it failed again. whats the actual problem and whats the solution?
Mudassir Zakaria
1

votes
1

answer
45

Views

How to pack a library using es2015 modules

Say I have created a library consisting of a bunch of es2015 module-files using the export-statement, how could I pack them together in one .js file in order to deliver the library? The es2015 modules should be preserved, so that a user of this library could still use import-statements to import the...
treeno
1

votes
1

answer
31

Views

Access caller script's __filename from within a module function

I'm using node.js. I would like to access the filename of a script from within a module function called by that script. For example, exampleModule.js: module.exports = function(){ console.log(__filename); // more code which may also use the filename }; example.js var exampleModule = require('./examp...
Jack Robinson
1

votes
1

answer
351

Views

add module into ios framework, app get “module not found”

I have a swift framework project(let's call it Framework1), inside it use some 3rd party objective c files. I use module instead of umbrella file because of ambientlight's answer in this post I create a subfolder(let's call it MiscModule), put module.modulemap under that folder, include all oc heade...
Lazydev
1

votes
0

answer
31

Views

Multi-moduled project not running

I have a project with parent module /onlinetore/ it has spring boot modules bookstore and admin , which has been working properly because both application don't share much just a url path defined in app.properties , but now I created a domain module, all domain objects have been imported from this n...
valik
1

votes
0

answer
311

Views

Uncaught ReferenceError: require is not defined, webpack error

I'm using node modules for a client application in the browser. I get 'Uncaught ReferenceError: require is not defined' when I try to require a constructor function from a neighbouring file into the app.js. app.js and Desktop.js are located in the same folder so the relative link path should be cor...
Evelina
1

votes
1

answer
84

Views

How to include MSM into a MSP with WiX

I am using WiX for building MSI and MSP. In my MSI, I have an MSM file present. I made some changes to the files in the MSM and re generated the same. Now I wanted to create a patch/MSP with the change in MSM included. Please help me to create a MSP with the updated MSM file.
Kandarpa
1

votes
0

answer
556

Views

Odoo Unknown field in domain

I am trying to make some changes in the crm.lead model or more precisely inside the form view of opportunity. In the original, i have 2 buttons like 'Mark as Win' and 'Mark as Lost'. I replaced these buttons with other 4 buttons like 'FFS - Win', 'FFS - Lost', 'Package - Win', and 'Package - Lost'....
Blichu
1

votes
1

answer
339

Views

Translation not loaded on multimodule shared components - Angular 5

I have following problem. I created multimodule project with Angular 5 and would like to load translations dynamically for lazy loaded modules. Let's say my structure is like this: app ->app.module.ts ->shared-components ->shared.components.module.ts and components ->lazy-loaded-module1.ts ->lazy-l...
JFCorleone
1

votes
0

answer
56

Views

dependency injection between modules

in Android project I have two modules: app core App module build.gradle is using core module with: implementation project(':core') So I can use core module classes in app module In core module I have class A that uses class B (also in core module). I want to add class C in module App extending class...
taulus

View additional questions