import Questions
2
Solved
5
Solved
I have used the following code to create a temporary file in my android app:
public File streamToFile (InputStream in) throws IOException {
File tempFile = File.createTempFile("sample", ".tmp");
...
Graphite asked 4/7, 2014 at 16:33
4
Solved
I'm writing a dart file:
import 'something.dart'
part of my_lib;
class A{
//...
}
I have tried this with the import and part of directives reversed and it still won't work, can you not have a...
7
Solved
The question of how to speed up importing of Python modules has been asked previously (Speeding up the python "import" loader and Python -- Speed Up Imports?) but without specific example...
Nihi asked 4/5, 2013 at 10:54
5
I have a question about imports. The question might seem a bit contrived, but its purpose is to explore the limitations of using absolute imports for all imports in a package. PEP8 highly discourag...
4
Solved
29
Let's say I have a file called app.js. Pretty simple:
var express = require('express');
var app = express.createServer();
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app...
Billy asked 26/4, 2011 at 23:56
4
I'm struggling to wrap my head around these,
use declaration
A use declaration creates one or more local name bindings synonymous with some other path. Usually, a use declaration is used to short...
6
I'm using TypeScript in Vue project.
But when I try to import vue file, I can't get .vue file since the 'cannot find module...' error.
What is weird is that intellisense only shows the directory r...
Turbo asked 15/3, 2022 at 4:59
4
I'm new in VS code and in coding in general, I've been trying to install transformers with the command pip install transformers and pip install transformers[tf-cpu] both didn't work, with the follo...
Stander asked 6/1, 2022 at 13:58
4
I get an error when I import the TensorFlow. I tried to reinstall it but still, I keep getting this error---> TypeError: Unable to convert function return value to a Python type! The signature w...
Shishko asked 28/4, 2022 at 12:25
6
When I do this it makes a NEW table yet I've already selected the table to import to. I've tried CSV and ODS formats, still get the same results. The first column in my existing table is ID auto in...
Playreader asked 4/3, 2013 at 9:46
3
Solved
So, here is the problem:
Whenever I am coding with Flutter and Dart, and I use a feature from another file, when I press Tab, VS Code will auto-import the file for me.
The thing is, VS Code will us...
3
Solved
I'm new to svelte and I am trying to use an installed node module in my dependancies called momentum-slider. In the script tags of my svelte component I have:
import MomentumSlider from "../.....
2
I am running into some issues when I try to import Wand (an ImageMagick binding for Python).
Here's what's happening:
from wand.image import Image
getting the standard error message:
ImportErr...
Enfield asked 13/12, 2015 at 14:55
2
Solved
Our client has provided us with a file named db.schema. Now is there a command which I can use to run this file to create a .db file in sqlite3? Can I do this without having to type in all the quer...
5
Solved
I have .sql files which have the following content:
#cat db.sql
create table server(name varchar(50),ipaddress varchar(15),id init)
create table client(name varchar(50),ipaddress varchar(15),id in...
2
Solved
I watch youtube tutorials and when the presenter types part of a screen name the import is automatically created. In one video the presenter enters part of a screen name and a list appears with the...
Mediatory asked 19/11, 2020 at 12:23
1
How could I fix this:
UserWarning: Importing OpenAI from langchain root module is no longer supported.
UserWarning: Importing LLMChain from langchain root module is no longer supported.
UserWarning...
Saker asked 28/9, 2023 at 0:17
3
Solved
Given a directory structure like this
main/
common/
foo.py
A/
src/
bar.py
How can I use Python's relative imports to import foo from bar? I've got a working solution by adding it to the path,...
Oligosaccharide asked 27/12, 2012 at 15:58
7
Currently trying to work in Python3 and use absolute imports to import one module into another but I get the error ModuleNotFoundError: No module named '__main__.moduleB'; '__main__' is not a packa...
Printery asked 1/8, 2017 at 19:42
12
I am trying to import a project in IntelliJ Idea 2016.1.1 using: File->Project from existing sources->choose the required pom.xml
It comes to this dialog box, but nothing happens on clicking next ...
Abroach asked 7/4, 2016 at 10:15
9
Solved
I successfully install different modules using pip and they are shown in the
pip list
such as:
beautifulsoup4 (4.4.1)
requests (2.10.0)
Scrapy (1.1.0)
From Terminal
However, whenever I try ...
Abelmosk asked 20/5, 2016 at 8:23
3
How can I import an IntelliJ IDEA project into Netbeans?
I know I can just use IntelliJ but I prefer Netbeans...
With this particular project I can't just copy the source directory into a Netbean...
Tiedeman asked 25/7, 2011 at 17:43
4
Solved
I am trying to study how to use alembic in flask, I want to import a method in flask app:
tree .
.
├── README.md
├── alembic
│ ├── README
│ ├── env.py
│ ├── env.pyc
│ ├── script.py.mako
│ ...
© 2022 - 2024 — McMap. All rights reserved.