Questions tagged [module]

A logical subdivision of a larger, more complex system.

0
votes
0answers
11 views

How to fix in <module> Error for my neural network?

I get the following error File "C:/Users/xx/Desktop/xxx/ost.py", line 213, in main(), while trying to initiate training of neural network This is for a final lab assignment about pictures ...
0
votes
0answers
27 views

Installing packages with pip on the command-prompt

I am trying to install the requests package from PyPi, but when i run: c:\Users\someone\AppData\Local\Programs\Python\Python37\Scripts>pip install requests it doesn't install the requests ...
0
votes
0answers
14 views

TensorFlow: AttributeError when calling TensorFlow's IO functions; why are they missing?

I use TensorFlow 1.12.0 with Python 3.5. When I call tf.io.decode_jpg() (or any function from tf.io), I get the following error: AttributeError: module 'tensorflow._api.v1.io' has no attribute '...
0
votes
1answer
26 views

How to use multiple instance of the same import module

I want to use the import module in 2 separate instances [python] import pygame [...] player1 = pygame.mixer player1.init() player1.music.load('file1.mp3') player1.music.play() [...] player2 = ...
0
votes
3answers
23 views

how module/function is imported and how to know which keywords can be passed to built-in functions

my first question is how a function is actually imported? i have below statement but show() function is not in bokeh.plotting but in another folder/module i.e. bokeh.io.showing then how is it imported ...
0
votes
0answers
7 views

@ng-select/ng-select and ng2-search-filter modules are conflicted in angular 7

I am doing project in angular 7. When I am using ng2-search-filter module to search from table and it's working fine. But when i install @ng-select/ng-select module it's removed my search module. ...
0
votes
1answer
18 views

How to fix “No module named 'quaternion'” in Python?

I am trying to import the module quaternion into my code to be able to rotate my sensor data. I keep getting the error, 'No module named 'quaternion''. To install the quaternion module to my ...
0
votes
0answers
9 views

TypeError message is showing up even for correct code

this is my code: corrmat = data.corr() fig = plt.figure(figsize = (12, 9)) sns.heatmap(corrmat, vmax = .8, square = True) plt.show() error showing: TypeError ...
0
votes
1answer
13 views

Import issues Python3: import from package for flask project with api modules

I have my code structured as follows: src/ --- api/ --- --- __init__.py --- example_app.py the init.py contains the following code: from flask_restplus import Api from api.about_api import api as ...
0
votes
2answers
26 views

How to properly call functions defined in other directories in Python?

Sorry, this has been already answered for sure, but I cannot find the answer to my problem... I want to make two separate scripts callable. Let me explain in detail with an example. I have a ...
0
votes
1answer
28 views

how to set concrete working directory in multi module sbt project

I have package structure similar to below; myapplication/ ├── my-library/ │ └── src │ └──main │ └── scala │ ├── my-other-library/ │ └── src/ │ └──main/ │ └── ...
0
votes
0answers
10 views

New nodejs app deployed on heroku app doesn't find my libs

I'm trying to deploy a node.js app on heroku (btw it is my first time that I do that). The same module that works on dev doesn't on testing (as usuall I would like to say) because the directory is ...
2
votes
1answer
29 views

Structuring python module so it can be run from a command line with and without -m switch

Background I'm working on Python module that consists of a number of of scripts. The end goal is to make functions in this module importable via import statement when working interactively and to ...
0
votes
1answer
19 views

How to test private helper(module) method in rspec

I have a helper module named "AppHelper" and private method "sum" which I want to test using rspec. For example: module AppHelper private def sum(a,b) puts a+b end end
0
votes
1answer
38 views

Configure .jar to expose its dependencies

I have 3 modules: annotations, annotation_processor and app. annotations/build.gradle apply plugin: 'java-library' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) } ...
0
votes
1answer
27 views

ImportError: No module named 'bword2vec'

I am working on a python project, trying to get it to run. However, I keep getting the following error. ImportError: No module named 'bword2vec' Traceback Traceback (most recent call last): ...
1
vote
1answer
36 views

ImportError: No module named 'support'

I have already referred to all the question related to the No module named <module name> questions on StackOverflow and had no luck in addressing my specific issue. Hence, am posting this ...
0
votes
1answer
32 views

VBA to save a Sheet as CSV breaks existing module

I am trying to build a VBA sub that will copy a sheet and save it as a CSV. I am using the tried and true method of: 1) Copying the sheet 2) Opening a new workbook 3) Pasting the copied data into ...
0
votes
1answer
32 views

Regexp::Common qw /URI/ not allowing HTTPS

A bug was given to me where https isn't allowed to be entered into one of our forms. After searching the form I noticed that we are using Regexp::Common qw /URI/ I have tried if ($params{URL} =~ /$...
0
votes
0answers
8 views

is there an inbuilt method in python or in modules to separate ones, tens and hundreds place digits from a number

I am writing a python code for a project and I need to separate ones, tens or hundred place digits from a number. I want to know if there is any inbuilt method in python or in python modules to do ...
0
votes
0answers
23 views

Can someone help me with this "Module not found' 'email not a module error'?

I am trying to use the requests function which i tried to install with pip. Installation displayed an error.'Requirment already satisfied requests in c:\users\user\appdata\local\python\python337\lib\...
0
votes
0answers
36 views

How to create module with own entities for ASP NET BOILERPLATE Core 2.2

I am implemeting module with required functionality. This module is used on application template which can be downloaded from aspnetboilerplate site. The goal is simple: create module that adds own ...
1
vote
1answer
13 views

Cannot import module from source directory in pycharm

This question has been asked before - but i could not solve it with any of the answers. I opned a project folder in pycharm (note that the project folder is not in the ../PycharmProject/... directory. ...
0
votes
1answer
14 views

How to display all available options from .context import

In certain python source code, the following line of code occurs: from .context import Context, current_context, cpu, gpu, cpu_pinned So what is this .context exactly is, and if there is an error ...
0
votes
0answers
19 views

How does python import work and how does it load the requiring DLL in windows

I want to understand how does the "self._handle = _dlopen(self._name, mode)" in ctypes__ inits____ work, if the self.name ="path/xxx.dll" and that self.name dll needs additional dll, where ...
0
votes
2answers
20 views

Python3 unable to find a package module

I have a file called dns_poison.py that needs to call a package called netscanner. When i try and load the icmpscan module from dns_poison.py I get this message: ModuleNotFoundError: No module named ...
1
vote
0answers
28 views

Error working with Lua modules using LuaBridge and C++

I am unable to include a Lua file in another Lua file. I am compiling Lua using C++ and LuaBridge. Here is my main function. Very very small. lua_State* luaState = luaL_newstate(); ...
0
votes
0answers
20 views

I tried to install emcee and corner for python (linux). I got missing 'python.h' during installation. How to fix the corner installation?

I tried to install 'emcee' for python. It seems to work. To start I tried the example here http://dfm.io/emcee/current/user/line/ I want to get such corner plots as in the example so I've to install '...
-1
votes
1answer
47 views

ModuleNotFoundError: No module named 'win32api'

This is the error received: Traceback (most recent call last): File "C:/Users/Joe Martin/AppData/Local/Programs/Python/Python37/test.py", line 12, in <module> import win32com.client ...
0
votes
0answers
13 views

How to add react native module or library in native app as dependency?

I have existing base Android app, I need to add a reusable .aar library(created in react native) as dependency to base app. There should be both way communication and callback.
0
votes
0answers
12 views

In python runpy module, why are sys.argv ignored when launching another module in a subprocess? Is there an alternative way to do so?

I have the following class that attempts to launch a jupyter-lab instance using runpy & concurrent.futures: import logging import runpy import subprocess import sys from concurrent.futures import ...
0
votes
0answers
19 views

Using a function inside another function inside a module [duplicate]

I have functions and subroutines in my module. Then I use that module inside the main program. But inside my module there is function where I call another function. While I compile that it says ...
2
votes
1answer
36 views

PyCharm editor and Python console unresolved reference

If I have a module in my project with all the inits configured properly and I try to import anything from this module, PyCharm does not identify what I am trying to import. It would work before but ...
0
votes
0answers
15 views

ES6 modules in chrome: ERR_ABORTED 404 (not found)

I am making an ultra simplistic site using the new-ish module tags inside the html file I serve from node. I have the latest version of chrome. My node js function: (appController) exports....
0
votes
0answers
27 views

C# - How can I get the unloaded modules list from a process?

I need to get the process unloaded modules list as Process Hacker does.
1
vote
1answer
21 views

custom element type reports HTMLElement when loaded in script type=module?

I'm working with custom elements and I noticed in one case I was unable to access the properties of an instance as in var prop = myCustomElement.myPropery // undefined where the property is defined in ...
0
votes
1answer
29 views

AttributeError: 'module' object has no attribute '_Condition' in the script

I am trying to access AWS S3 object using boto3 from python. I have given the AWS credentials. However the place i use the boto3 API boto3.client('S3') to access S3 resource it is throwing attribute ...
0
votes
0answers
23 views

PYTMX is not importing after installing

I have tried looking at other posts about this but nothing is working or I am not understanding it correctly. I have just uninstalled and reinstalled it now with this message C:\Users\chris>pip ...
0
votes
0answers
73 views

app.module.ts > APP_INITIALIZER dependent on another

I need an APP_INITIALIZER to get data from a previous APP_INITIALIZER SERVICE. In this case, to set the language. I have a previous initializer, tha tloads the export function configLoaderFactory(...
0
votes
1answer
49 views

How to define parametric module in Verilog?

I have below module in Verilog for imposing delay on a wire: module DelayModule (input_signal, delayed_signal); output delayed_signal; input input_signal; wire [16:1] dummy_wire; ...
0
votes
1answer
20 views

How to run code that has modules, each in a different virtualenv?

Short Story: I have a very big python project It is comprised of ServiceA, ServiceB, ServiceC and so on. For modularity, each service has its own virtual environment. Each service needs some foo() ...
0
votes
1answer
20 views

cx_Freeze : Importing modules fails

I would like to compile a Python3 project with cx_Freeze, but no matter what I do I can never import my own .py files. Here's my directory structure: projectname/ setup.py app/ code/ ...
0
votes
0answers
14 views

Unable to import module in Google Colab after installing it

I was trying to clone and install the "Equal Groups K-Means Clustering" Repository from GitHub. Here is the link: Link of repository. Problem: I am unable to import the module. On my local PC it ...
1
vote
3answers
66 views

In Powershell is it possible to publish module to an in-memory storage?

Motivation I need to test my custom module loading logic. Publishing a test module for real and then installing it for real is just too time consuming in Powershell. So, instead of publishing a test ...
0
votes
0answers
25 views

I have some error when i import from python file what is the problem?

I create file database_setup in python then when I import it in git bash using vagrant I have ImportError, how can I fix it? database_setup upgrade ' vagrant@vagrant:/vagrant$ python Python 2.7.12 (...
0
votes
1answer
44 views

What is really being imported?

I'm getting a bit confused by how import works in Python (3.5). I thought that using something like "import x" would be just as writing whatever is written into "x.py", however it does not seem like ...
0
votes
1answer
19 views

Is it possible to force functions from one module to honor read-only setting on variables from different module?

Hi imagine this situation. You have 2 powershell modules as defined bellow. If you import them to console (just run the code in console), you will be able to use variable test, but not modify it (...
0
votes
0answers
23 views

Moodle page Included js file still shows ReferenceError: wordfindgame is not defined

I am creating a word-search activity type plugin in moodle for my client and trying to use this code into moodle activity type plugin. Source:https://ourcodeworld.com/articles/read/274/how-to-create-...
0
votes
1answer
18 views

Where to get PKI module for powershell

I need to get pki.psm1 file for the PKI module. Not pspki, not pkiclient, not pkitools, just pki. I need cmdlet Import-Certificate, which isn't in any of the above-mentioned modules, only in PKI. When ...
-1
votes
2answers
15 views

How to install Python modules in a specific folder and use them in any project with Pycharm or Visual Studio?

I would like to know if there is any way to install python modules in a specific folder and use these modules (in that specific folder) in any project, to avoid having to install them everytime. How ...

http://mssss.yulina-kosm.ru