import Questions

8

Solved

How can I import variables from one file to another? example: file1 has the variables x1 and x2 how to pass them to file2? How can I import all of the variables from one to another?
Houseboat asked 22/6, 2013 at 22:4

5

Solved

My source files are located under src and my test files are located under tests. When I want to run a test file, say python myTest.py, I get an import error: "No module named ASourceModule.py". Ho...
Columbia asked 21/1, 2011 at 16:15

8

Solved

I have a CSV file. It contain 1.4 million rows of data, so I am not able to open that csv file in Excel because its limit is about 1 million rows. Therefore, I want to import this file in MySQL w...
Lubin asked 11/7, 2012 at 9:42

4

I'm building a react app. I imported a slider into a file, then I got a css-loader. I'm using webpack. Here is my slider: import React, {useState} from 'react'; import RubberSlider from '@shwilliam...
Surprisal asked 22/11, 2020 at 10:7

1

I've created a simple VM in VirtualBox and installed Ubuntu, however, I am unable to import this to AWS and generate an AMI from it. Operating system: Ubuntu 20.04.4 LTS Kernel: Linux 5.4.0-104-gen...

6

Solved

I split my tests across multiple Python files: tests ├── __init__.py ├── test_apples.py └── test_bananas.py.py I import the tests in the ‘__init__.py’ file: from test_apples import ApplesTest from...
Polyandrist asked 8/12, 2011 at 7:38

10

I'm attempting to merge multiple csv files using R. all of the CSV files have the same fields and are all a shared folder only containing these CSV files. I've attempted to do it using the followin...
Wicked asked 14/5, 2015 at 16:10

3

Solved

I want to run several code before the code inside import syntax gets executed. Example file-1.js console.log('Inside File 1') import './file-2.js' file-2.js console.log('Inside File 2') Output ...
Hearthside asked 10/1, 2021 at 17:12

2

Solved

I want to access the main package from another package, but this is impossible because the main file isn't in a directory. I already tried putting the main file in a directory, but when I try to im...
Knew asked 7/6, 2017 at 19:2

1

So basically, I have a json file that defines what to load when a user logs in. This includes javascript files. When a different user logs in, the previous stuff needs to be unloaded without a page...
Mcgruter asked 30/3, 2022 at 21:51

1

When importing a JSON file in a TypeScript project with the resolveJsonModule option enabled the TypeScript compiler is able to automatically infer the type of the imported JSON file. However, this...
Xenomorphic asked 26/9, 2020 at 12:55

3

Solved

I have a project in React, using Material UI, and I am applying one of their suggested methods to reduce my bundle size. Basically, I need to install the babel-plugin-transform-imports package and...
Froward asked 14/8, 2019 at 13:28

2

Solved

I am getting started with Azure App Services. I followed this tutorial and was able to get the example main.py app running. The modules (fastapi, uvicorn, etc...) specified in the requirements.txt ...
Manno asked 4/9, 2022 at 22:51

3

Solved

Trying to import simple data (see below), gets me an error "Operation passed in cannot be an array" in Compass 1.29.6 This error makes no sense to me, as the outer object is not an array....
Hoff asked 12/6, 2022 at 7:44

31

Solved

I'm creating an installation script for an application that I'm developing and need to create databases dynamically from within PHP. I've got it to create the database but now I need to load in sev...
Urinate asked 29/9, 2008 at 7:38

2

Solved

I have a CSV file with all of my passwords from Chrome and want to transfer them all to Firefox. But recently Firefox removed the feature to import login data. This feature is currently disabled by...
Brahmi asked 11/7, 2022 at 12:49

3

Solved

trying to add an existing Windows form into a VS2012 WinForm project, I go "Add/Existing item..." then import: MyForm.cs, MyForm.designer.cs, MyForm.resx This used to work in earlier versions of V...
Ecphonesis asked 25/2, 2013 at 8:23

8

the problem that I am facing is importing JSON into Mysql. I have searched the interwebs, I have searched stackoverflow and probably even more sources, but could not find a single proper solution. ...
Sodden asked 28/6, 2013 at 14:39

2

Solved

I am having a very hard time trying to set up a simple test. My project structure is as follows: project: models: __init__.py user.py constants.py test: test.py I want to test user.py py...
Flageolet asked 25/2, 2016 at 19:39

1

Solved

I have the following package structure (drastically simplified from a real use case): mypackage/ ├── __init__.py ├── mod1.py │   ├── def func1(): return 1 │   └── ... │ ├── mod2.py │   ├── def func...
Destination asked 21/8, 2022 at 18:52

4

Solved

I'm trying to import COUNTRIES from pygal.i18n by using the piece of code below. from pygal.i18n import COUNTRIES After I run this, I get the following error. ImportError: No module named 'pygal...
Brundisium asked 3/3, 2016 at 11:27

6

I have an Articles component that shows a blog page with listed articles. render() { const articles = { ...this.state.articles } const article = Object.keys(articles).map(cur => { return ...
Babirusa asked 14/12, 2018 at 8:28

2

Solved

I'm running into more and more situations where I need out-of-memory (OOM) approaches to data analytics in R. I am familiar with other OOM approaches, like sparklyr and DBI but I recently came acro...
Empathize asked 19/3, 2021 at 15:17

7

Solved

Im trying to import the database of my client side (wordpress platform) to localhost (using xampp). Other clients' sites work OK, except for this one particular site. When I want to import ...
Hubbs asked 6/5, 2018 at 16:15

3

I am using the AWS Console and trying to add data to a MySQL table using a Lambda function. Whenever I try to test the function, I get the following error: Unable to import module 'app' : no mo...
Akela asked 3/8, 2016 at 22:19

© 2022 - 2024 — McMap. All rights reserved.