Most voted "import" questions
52 questions
Sort by count of
-
8
votes1
answer329
viewsImporting the java.lang. package*
Adding the studies in Java I came across a package so much that special, the java.lang, where the author of the book mentions that we do not need to perform the import of that package. There’s a…
-
7
votes2
answers102
viewsDo partial imports bring advantages to the application?
Some languages have as a resource the import of parts of the library used. Using Dart as an example we have two types of partial Imports showand hide . import 'package:google_maps/google_maps.dart'…
-
6
votes1
answer302
viewsDo you have anything like the C# namespaces in Java?
I noticed the size of the command to put a message on the screen in Java, wanted to know if it has how to decrease? As in C# that the programmer puts the word using "namespace"; and you can use the…
-
5
votes2
answers74
viewsWhat it really means "from modulox import *"
As far as I know it matters all the classes and functions of a certain file without having to reference it in the code, right? But I’m beginning to think from modulo import * doesn’t mean that. I…
-
3
votes1
answer102
viewsImporting files without naming with Nodejs
I am creating a file structure in an application where each directory contains an "index" file. This index file takes the name of my directory to improve readability. Ex: foo |--foo.js // <-…
-
3
votes2
answers312
viewsOptimizing Imports in python
I have a folder that contains several files with the extension. py and inside each file has a dictionary with the data of the monsters that I need to start. However, the more monsters I create, the…
-
2
votes1
answer81
viewsscript import in wrong order, Function not defined
I have a Vue Component (Map.vue): <template> ... </template> <script> import '../../assets/js/map.js' export default { name: 'home', data () { return { init_data: {}, } }, created:…
-
2
votes3
answers1185
viewsThere is no library called Math
Why when I care sqrt bookstore math He says there is no bookstore called math, but still the code works? No error works well, but it is underlined in math and sqrt. To "heal" while I can’t find the…
-
2
votes1
answer581
viewsUse require() (or other method) in Nodejs as in PHP
In PHP Suppose I have a constant file, in a root directory, called const.php: define('CONST_1', BASE_CONST_1 || 'Value 1'); define('CONST_2', 'Value 2'); define('CONST_3', 'Value 3'); And another…
-
2
votes1
answer742
viewsCannot import X
I have two files inside a project of which one has the import of the other and vice versa, in this case the main_server.py has the import from Servidor.skeletons.Threads import Thread to be able to…
-
2
votes1
answer1371
viewsExtract Data between Lines from txt to VBA spreadsheet
I am creating a code that will automate reports at work from a button. The measuring equipment gives me a file in . mmf or . txt, and there’s an important part that I’m cracking my head to solve and…
-
2
votes1
answer273
viewsHow to import and export members using Ecmascript modules in the browser?
I am trying to import a class, but I am making one or several mistakes. Can anyone enlighten me about? Filing cabinet js/calendar: export default class Calendar { constructor(date) {…
-
1
votes1
answer399
viewsError in relative python import
I’m looking to test simple python code using pytest. My hierarchy is as follows:: PythonExamples files mymath.py tests test_mymath.py in test_mymath.py, I import mymath as from ..files import mymath…
-
1
votes1
answer3068
views -
1
votes1
answer334
viewsDifficulties with Dll import C#
I’m having a hard time rewriting a method of a dll in C#, we bought a price checker from a manufacturer, in case it provides a dll and an example code in Delphi. This dll has some functions between…
-
1
votes1
answer366
viewsImport style React
You can import a style from another directory in the React import? I tried something similar to what is done in require to change the directory with ".. /" but to no avail.
-
1
votes2
answers77
viewsHow to "reimport" an object from a Python module?
I wrote a module called mymodule.py who has the function def funcion(x): return x So I imported this function into a code like from mymodule import function and worked normally. Then I wanted to…
-
1
votes1
answer5446
viewsPython 3 import of classes
I have three . py files in my directory: Banco.py, app.py, Usuarios.py. My app.py contains the Tkinder import that I am using in the code and here I start all my view and in it I import the class…
-
1
votes0
answers33
viewsDo you have any python library for creating an online game? The idea is Tetris in pygame, in q in it you can fzr a X1 with someone on another pc
My idea is that the two X1 screens, appear to both players, that they can see each other’s moves in real time. I couldn’t find anyone who knows a library like this or who can teach you how to use…
-
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…
-
1
votes0
answers23
viewsImport and Construction of the Pnad 1999 Sampling Plan
I’m looking to analyze the 1999 PNAD and expand its results to the population, so I’m using the package Survey and , however, my problem lies in the import and construction phase of the sampling…
-
0
votes1
answer78
viewsORA-01843 error when importing table in Sqoop
I’m facing a mistake that I can’t understand the origin of. Previously I had imported a table with the same data format, with 54 million lines to my HDFS cluster hadoop. Now I’ve created a _View_ in…
-
0
votes1
answer325
viewsModule requests is imported into IDLE, but not into Thonny (the IDE I use)
I installed the module requests by Terminal with sudo pip3 install requests (I am using Mac) and managed to import it through the Interactive shell without problems in IDLE. But when I try to import…
-
0
votes1
answer517
viewsPython import file from variable
If I set a variable as the directory from which I will import a file, such as: a = 'C:\\Users\\Windows 7\\Desktop\\Program10.py If I try from a import foo, me is given Modulenotfounderror: No module…
-
0
votes0
answers142
viewsProblem stop importing Edittext class
I’m trying to import the Edittext class and I can’t, which may be? import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View;…
-
0
votes0
answers205
viewsHow to use the Chunk method of Laravel Excel?
public function uploadNotaCorte(Request $request, EstadoRepository $estadoRepository) { $error = array(); $path = $request->file('file')->getRealPath(); $notasCorte = Excel::load($path,…
-
0
votes0
answers104
viewsHow to pass variable in require
I am trying to pass a variable populated by the database, containing my route to require, but is giving the following error: "Cannot find module 'views/Cadastros/Usuario'" And these are the ways I…
-
0
votes1
answer7196
viewsModulenotfounderror: No module named 'authorizations'
How can I import a folder using Python in Spyder ? Currently I have the following structure of dir Gestao | |_ Aplicacao | |_ Autorizacoes In the script import pandas as pd import imaplib import…
-
0
votes0
answers141
viewsHow to import pydensecrf.densecrf?
I’m getting the following error when I try to run the code: ImportError: No module named densecrf I’m using Jupyter Notebook 5.5.0 from Anaconda on Ubuntu 18.04 Does anyone know what could be? I try…
-
0
votes1
answer76
viewsReferencing scripts on different PHP pages
I have the following structure: |- /root |-- /services |--- /criminal records |-- /view |--- Dashboard.php |--- php menu. |--- /registers |---- /people |----- Include_people.php |-- /scripts |-- js…
-
0
votes0
answers52
viewsError connecting 2 postgres database with FOREIGN DATA WRAPPER
I’m trying to connect two postgre databases and I’m getting an error importing the tables: CREATE EXTENSION postgres_fdw; CREATE SERVER gestware_server FOREIGN DATA WRAPPER postgres_fdw OPTIONS…
-
0
votes1
answer366
viewsBackground image with Styled-Components in React invalid path?
I’m trying to use an image as the background of a page in a React project, I thought to import with styled-components but I did not succeed, follows a print where the picture is, and what I tried to…
-
0
votes1
answer78
viewsHow to import photos from XML with PHP
I am trying to import an XML file, but do not know how to import when there is a field inside another field, see below the example that explains better: <imovel> <id>1</id>…
-
0
votes1
answer432
viewsSweetalert2: Uncaught Typeerror: Failed to resolve module specifier "Vue-sweetalert2.js"
I’m trying to use swal2 in Vue, but with this import I’m getting the error Uncaught Typeerror: Failed to resolve module specifier "Vue-sweetalert2.js". Relative References must start with either…
-
0
votes0
answers250
viewsChatterbot import error
Using the library manual chatterbot I tried to make a simple chatbot, however, when I have it run on the console of pycharm appears the following error: Modulenotfounderror: No module named 'pytz'…
-
0
votes1
answer61
viewshow to import a file. ofx in VFP
I need to import a valid OFX THAT IS AN SGML file for a cursor, so I searched how it is not the same structure as an XML it is not possible to import using the same method as an xml (which is…
-
0
votes1
answer44
viewsI can’t understand that kind of import
I’m beginner in Python and I came across something I didn’t understand: import pygame from pygame.sprite import Sprite class Bullet(Sprite): def __init__(self,ai_settings,screen,ship): My question…
-
0
votes0
answers29
viewsError importing Sqlalchemy
I cannot import flask_sqlalchemy even after installing from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy ^aqui mostra o erro: ImportError: "flask_sqlalchemy" could not…
-
0
votes1
answer48
viewsImport this into map/index.js
I need to import that Istance which is in map/index.js and display it in Details/index.js Map/index.js import React, { Component, Fragment } from 'react'; import { View, Image } from "react-native";…
-
0
votes0
answers19
viewsWhat is "require" and "import" for in javascript?
I’m a beginner in JS and, during some readings for educational purposes to sites like Stack Overflow and Mozilla Documentation, I noticed commands like require() and import. I would like to know…
-
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
answer434
viewsImport and Export Javascript functions and classes
When I try to import a console class from the browser, the following error appears: Uncaught SyntaxError: Cannot use import statement outside a module Filing cabinet models/Evento.js: export class…
-
0
votes2
answers107
viewsImports in Python 3
Hello! I’m having a very recurring problem regarding "custom" module Imports in python 3 I’m doing a project of a very basic game thing myself and so far this is the structure of my project: game/…
-
0
votes0
answers35
viewsPython packages, how to send json files
Hello! The title seems a little contradictory, but the following is happening, I’m making a library in python 3.8 and using the following way to install it: pip install…
-
0
votes0
answers62
viewsFunction to work when I put import, Function does not work, import does not work
I got into a problem here that I can’t solve the problem and the next: I ran -> npm install fontfaceobserver then went there in the code -- code.js ai pus import --> import Fontfaceobserver…
-
-1
votes1
answer596
viewsPython imports not found
I am facing some problems with downloaded Imports with pyPI, more specifically Imports Pypi Wikipedia and Google... I install both via Pip install and they can be found in the site-Packages folder…
-
-1
votes2
answers66
viewsProblems with import and from/import command
I have a problem with my show. When I type "from Math import sqrt (or anything else", the Math library is not recognized by pycharm. Follows the code: from math import sqrt n = int(input('Digite um…
-
-1
votes1
answer214
viewsHow to import libraries into Unity 3d
So, I’m with a 3d Unity project, where I need to adjust some problems, I’m completely new to Unity... I cloned the project in git. But there was a git ignore, in which these folders and files were…
-
-2
votes1
answer42
viewsI cannot make two modules of the same package "recognize"
Good evening, I’m learning more about importing and creating packages. But I can’t get two modules to "communicate", follow the link: https://github.com/Gramosa/Importacao_teste If you look at the…
-
-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…