Questions tagged [import]

The general process of moving data from an external source into one's platform, program, or data set.

0
votes
0answers
3 views

How to fix TypeError: _api__WEBPACK_IMPORTED_MODULE_2__.default.authorization.registration.checkIfEmailExist is not a function?

I am a newbie in react and quite don't understand some things. I am trying to import js file that contains object with methods. But after trying to use i get this error 'TypeError: ...
0
votes
0answers
14 views

Ionic not importing ngx-mathjax module

I'm trying to install Mathjax in an ionic app using ngx-mathjax ( https://www.npmjs.com/package/ngx-mathjax ) I imported the module in app.module.ts and pasted the config method as shown. I added ...
0
votes
0answers
18 views

Import XML into R

I am trying to import an xml file into R and convert it to a data frame, but am having trouble grabbing the different nodes. Many of the nodes have characters in them (ex: ") so I am having a hard ...
0
votes
1answer
23 views

Intellij-idea class import

there is a class called "Agent.class" that I wanna use inside of a java source file, and the .class file is in the same location as the .java file. the location is ./my/test/ when I tried to import ...
0
votes
0answers
11 views

cannot import name 'register_extension_dtype' while importing pandas

i am trying to import pandas but is giving me below error. Earlier it was giving me different errors but i fixed those. but now i am stuck on this one. Never had such a problem before while importing ...
0
votes
0answers
18 views

Is it possible to include external css inside the style attribute? [duplicate]

Is it possible to make work something like this? @import url("fineprint.css") print; inside of a style attribute? for example using <a style="@import url('fineprint.css') print;">test</...
2
votes
1answer
30 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 ...
-1
votes
1answer
19 views

Why do I get “ERROR in src/app/component.service.ts(9,29): error TS2304: Cannot find name 'Http'.” in angular?

I'm using Angular 7, and I have this folder structure src app app.component.css app.component.html app.component.spec.ts app.component.ts app....
0
votes
0answers
11 views

How to import ICS file in Android Google Calendar app?

I have ICS file and i want to import this ics file or through internet ics file into my Android Google calendar. I could not find option of import file and add URL like we have in google calendar ...
0
votes
0answers
18 views

I want to query Excel column values with names and get their Index ID and import ID into MySQL , how to get this done, in php? [duplicate]

Let's say I have a property table, I can create properties using a form with fields property_type , amenities(select amenities that property offers from list of amenities) , name , area etc. I have a ...
-5
votes
1answer
34 views

How to import a package from a different location?

I'm trying to import the package model into CVue.java, but I can't figure out how.
0
votes
2answers
19 views

Python Decorators import time

I am registering some of my functions in a global set: # registry.py import functools schedule_registry = set() def register_scheduler(func): @functools.wraps(func) def func_wrapper(): ...
1
vote
1answer
26 views

Importing massive dataset in Neo4j where each entity has differing properties

I'm trying to bulk load a massive dataset into a single Neo4j instance. Each node will represent a general Entity which will have specific properties, e.g.: label description date In addition to ...
0
votes
0answers
12 views

How to force trace run my program as module, not script?

I need to run my program as python3 -m directory.__init__, but trace does not allow to do so. It forces me to run it like python3 directory/__init__.py I am running trace like python3 -u -m trace -t ...
0
votes
0answers
42 views

Issue with trying to use some on-the-fly-generated code with Python

While running my code ("Test_Use_Generated_Code.py"), I do generate on-the-fly a new python function within a separate python file ("gen_code.py") using intermeaditae function ("write_gen_code.py") ...
0
votes
0answers
22 views

How to import csv to database in laravel

I need your valuable help/advice please! I have created a form in laravel. User inserts some data and before submitting it he/she selects a .csv file to upload. I want that file to be inserted into ...
0
votes
2answers
13 views

import already defined in single type import

I need help to figure out how to solve an issue on two conflicting imports in my activity namely: retrofit2.Response com.android.volley.Response the first import is meant to help me manage api ...
0
votes
1answer
35 views

Update imported variable from another file

In file A, I imported variable "x" from file B I changed the value of "x" in file A I then overwrite file B's declaration of "x". Now I need to use the new value of "x", from file B, in file A. But ...
0
votes
1answer
19 views

“from gtts import gTTS” works fine in python 2.7 but it does not work in python 3.5. Why?

I want to execute this code: from gtts import gTTS tts = gTTS('hello', lang='en') tts.save('hello.mp3') In python (python 2.7.13) works fine but in python3 (python 3.5.3) is not working. It has ...
0
votes
0answers
23 views

Import and Display an Image in python in Google Colab

I am using Google Colab and python in this program and I want to import and display an image from my computer(it is in the end). I tried to import the image by uploading it to Google colab and then ...
0
votes
0answers
24 views

How do I import services to my ToolWindowControl using [Import]?

I have tried to use [Import(typeof(ITextBufferFactoryService))] in the ToolWindowControl file and the ToolWindowPackage file but it doesn't seem to do anything. This is the code for import: [Import(...
1
vote
2answers
30 views

Import Coq variables from another file

I proved some basic properties of fields based on the axioms here, and now I continued to define axioms of vector spaces. In particular, Field.v contains the following lines: (***********) (* IMPORTS ...
0
votes
1answer
38 views

Import/export in JavaScript gives “Uncaught SyntaxError: Unexpected identifier”

I have been working on too many projects recently, looks like my brain starts to give errors. I have very simple question that I couldnt figure out almost for two days. I have 2 .js files. One is ...
-1
votes
1answer
25 views

Why in JS React and Node handle importing differently? [duplicate]

Why in JS, React handles importing like this import SomeThing from '../../components/SomeComponent/SomeThing'; while Node handles importing like this const someThing = require('../someWhere/...
0
votes
1answer
22 views

In AVA How can I import a variable from a test file to another test file

I am using AVA for testing. I have 2 files. In file1.spec.js, I am creating a user, and once the user is created a userId is generated and returned. I need this userId in file2.spec.js to test some ...
0
votes
1answer
40 views

In laravel, how to import bulk large data “quickly” from excel sheet?

I have an excel sheet. How do I import a large amount of data from excel sheet quickly? I'm using laravel package maatwebsite/excel. Do I need to chunk the data and process it, if so how do I process ...
0
votes
1answer
14 views

Import data with each value containing column lables

I have data in a text file with no headers. The values in each row have a label indicating which column they belong to. I want to take those labels as column names and feed the data under the columns. ...
1
vote
1answer
31 views

Python error: cannot import name cross_validation

I tried to import cross_validation by using the following statement in python 2 from sklearn import cross_validation but I am receiving the following error cannot import name cross_validation
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
0answers
23 views

How to use Prepared statement with excel import data n Laravel

My question is about the best practice. I have three tables: Users (ID, NAME) Cards (ID, NUMBER) User_cards (USER_ID, CARD_ID) Also i have a page with form, where i can import excel file with data. ...
-1
votes
0answers
7 views

I want to copy empty text file where I want

This tool makes a lot of folders named package and I also want to make empty text files named dict.txt in each package folders. but I'm beginner I try my best as much I can but I failed I think I ...
-3
votes
0answers
11 views

Is it possible to export posings from a facebook page and import to google docs spreadsheet?

I am looking for a way to import facebook posts to a google docs spreadsheet. Not my own, i look for content from other pages. Tried some google search but found nothing usefull
1
vote
2answers
35 views

Import data with each value containing column labels

I have data in a text file with no headers. The values in each row have a label indicating which column they belong to. I want to take those labels as column names and feed the data under the columns. ...
0
votes
0answers
15 views

While in virtualenv I'm getting “ModuleNotFoundError: No module named 'rets.client'; 'rets' is not a package”

I am implementing a script that I wrote in PyCharm a few weeks back, but when I run it on a virtual environment on my server using python3 -m venv myvenv (and of course using pip3 while running my ...
2
votes
1answer
24 views

How do you alias an imported package in a JSP file?

I have a JSP file that has a few imports at the top: <%@ page import="org.json.JSONObject" %> However, I have an issue because of a prior import resulting in a collision error with another ...
0
votes
0answers
23 views

impdp table with blobs from expdp dump

Can someone here help me with impdp syntax to import a table with different name in the same schema or a different schema (trying to make a copy of existing table with BLOBS). I was trying something ...
1
vote
1answer
29 views

Why does MtpDevice.ImportFile always fail?

I am modifying an existing application, written in C# in Xamarin, built exclusively for Android. The existing app searches for files on a wifi card in a camera, and downloads them via an HTTP ...
0
votes
2answers
36 views

Differences between “import module” and “from . import module” in python?

Recently I found there are weird errors when using "import M" and "from . import M". I am using python3.6. For example, the Doucment tree are as belows. test/ ├── pacA │   ├── a1.py │   ├── a2.py │   ...
0
votes
1answer
32 views

I want to Import CSV column values with names into SQL rather than their table ID's, how to get this done, in php?

Let's say I have a property table, I can create properties using a form with fields property_type , amenities(select amenities that property offers from list of amenities) , name , area etc. I have a ...
0
votes
0answers
15 views

Can we use versions-maven-plugin to get the latest version of my POM specified in <dependencyManagement> import scope?

I have prepared one commonimport POM which has all my project dependencies with versions. Now I want to always use the latest version of commonimport POM in my project POM. I am trying to achieve it ...
-2
votes
1answer
18 views

Idea cannot resolve java.sql.* symbol,notice cannot import

the idea cannot resolve java.sql.* symbole,below is i find problem.i install jdk with 1.8.0_181. i have already tried using below actions. file->invalidate cache /restart,But the problem still ...
-2
votes
1answer
24 views

Im having trouble importing a the request module in Python

I wanted to use the request library for python and I went to windows powershell and put in 'pip install requests'and it said install successful but when I open up an ide it says that it cannot find ...
0
votes
0answers
28 views

Python - Multiprocessing suddenly getting stuck, although code is correct

I´ve spent the last few hours on the multiprocessing tool in python. Last thing I did was to set up a Pool with a few workers to execute a function. Everything was doing fine and multiprocessing was ...
0
votes
0answers
10 views

Failed import of custom module

I wrote a module consisting of 40 conversions, python 3.7. The module is all def statements with triple quoted HELP info at the beginning. When I try to import it, I get 'ImportError: DLL load failed: ...
1
vote
1answer
35 views

How to easily switch imports sources in java?

NB: Please suggest a better title for this question. Suppose I have two classes with the same name and I want to import one or the other before I compile depending on the use-case/app version. Is ...
-2
votes
0answers
16 views

How to import an excel sheet to pycharm using a windows machine?

How to import an excel sheet to "pycharm" using a windows machine? I know the command in a Mac computer is "reveal in finder" and most programmers have Macs...But I am using a windows computer and I ...
0
votes
0answers
18 views

Backpack for Laravel - Upload CSV and Store as JSON in Database

I have successfully configured Backpack for Laravel to handle all of the CRUD ops for my app except for one particular field. I need to import a CSV, convert it to JSON and then store the JSON in my ...
0
votes
1answer
20 views

AttributeError when calling a function from an imported file

I am trying to import functions from another file. From my understanding all I had to do was import and use . I am not familiar enough with classes but was trying to mess around and make the function ...
0
votes
0answers
10 views

Pycurl: ImportError: undefined symbol: PR_GMTParameters

I'm getting an ImportError from pycurl. import pycurl ImportError: /usr/local/lib/python3.7/site-packages/pycurl.cpython-37m-i386-linux-gnu.so: undefined symbol: PR_GMTParameters This is on a fresh ...
0
votes
0answers
11 views

XML file import as a data frame in R

I am trying to import xml file to R and convert it to data frame. The structure of file is below. What I need is to have item with date in one column and description in another. Could anyone help me? ...