import Questions

1

Solved

from geopy.distance import vincenty I just installed the geopy package 2.0.0, I want to use geopy.distance.vincenty() as this doc says. However, it returns ImportError: cannot import name 'vincent...
Sinistrodextral asked 12/7, 2020 at 7:58

2

Solved

I'm importing some rows to my postgres database like so: psql -U postgres import_test < 1432798324_data Where my import_test is my database and 1432798324_data file is just plain text formatt...
House asked 28/5, 2015 at 8:0

2

I am writing a python module neuralnet. It was working all fine in Python2, but in Python3 imports are failing. This is my code structure. neuralnet/ __init__.py train.py # A wrapper to train (do...
Alroi asked 8/2, 2015 at 23:38

2

Solved

my question is about writing Python (3.x) packages and (sub-)modules and the correct usage of __init__.py files to declare namespaces. I used to code in C++, so I like to use a lot of separate file...
How asked 26/1, 2017 at 10:17

3

What I want, is to get an image to replace the default turtle, just like it is done here: http://blog.trinket.io/using-images-in-turtle-programs/. This is my code, but I don't know why it doesn't w...
Coition asked 6/11, 2016 at 9:37

3

Solved

I'm using R in my Python script through the rpy2 library and I need a package that is not in the default installation of R. How can I install it? install.packages("DirichletReg", repos="http://r-f...
Leannleanna asked 19/7, 2012 at 12:51

4

I am importing data into a Postgres database. The table I am importing to includes a couple of columns with dates. The CSV file I am uploading, however, has empty values for some of the date fiel...
Attis asked 4/11, 2016 at 17:18

1

Solved

I am using VSCode and JavaScript ES6 Modules. If I autocomplete an import like this import * as test from './test' the .js ending on ./test is missing and I have to add it manually. Is there a sett...
Calvinna asked 21/6, 2020 at 18:46

3

To learn the new ES6 syntax, I've been trying to refactor some JS code. I'm absolutely confused though by the whole import / export methods. How do I change this require statement into ES6? var ...
Euhemerus asked 13/2, 2016 at 0:7

1

I have the following file structure ├── test.py └── sub ├── foo.py └── bar.py With test.py: # test.py from sub import foo foo.test() And foo.py: # foo.py from . import bar def test(): ba...
Nicole asked 14/6, 2020 at 16:49

6

Solved

Should I use from foo import bar OR import foo.bar as bar when importing a module and and there is no need/wish for changing the name (bar)? Are there any differences? Does it matter?
Gudrunguelderrose asked 7/3, 2014 at 9:5

3

Solved

Goal: - Import the newest file (.csv) from a local directory into R Goal Details: - A csv file is uploaded to a folder daily on my Mac. I would like to be able to incorporate a function in my R sc...
Snoopy asked 28/7, 2014 at 16:56

1

Solved

I currently have a java/spring-boot application where I changed the version (in code) from 2.1.4 to 2.3.0 but as a result I've come across the error error: package javax.validation.constraint...
Heriot asked 2/6, 2020 at 12:7

3

Solved

While trying to compile a proto file named UserOptions.proto which has an import named Account.proto using the below command protoc --proto_path=/home/project_new1/account --java_out=/home/project...
Haemostatic asked 16/1, 2014 at 10:42

2

Solved

I was just digging up some cool modules in python, and this antigravity module seems cool, and full of potentials, but I am not sure if it is what it sounds like. Is there any use for it other than...
Cenozoic asked 26/12, 2015 at 15:53

1

Solved

Goal: Import, transform / prep, and animate a coronavirus dataset from .xlsx using only R. Text from Reproducible Error: Error in seq.default(range[1], range[2], length.out = nframes) : 'from' m...
Pauiie asked 26/5, 2020 at 20:29

2

I have a problem with some imports in NodeJS. I want to use the new features of Typescript 3.8, like private fields : #myPrivateField I don't know how to correctly import the module "typescript" i...
Tuddor asked 29/4, 2020 at 16:51

2

I have two Modules with components which use each other. So I have to import "word" in "test" and "test" in "word" --> throw an error... How can I do ? Mo...
Outrun asked 18/9, 2018 at 18:24

2

I have a problem problem in my program using Electron. First, I was typing require() code in 'main.js'. const { app, BrowserWindow, globalShortcut, Menu, ipcMain } = require('electron') Above c...
Heterodoxy asked 29/9, 2018 at 12:26

7

Solved

We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like...
Vinegarroon asked 1/3, 2012 at 14:38

9

Solved

I love the "Organize Imports" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript). Is there a command in Xcode to update the #import di...
Resection asked 15/12, 2009 at 5:28

6

Solved

i want to import csv file into mysql.. something like: load data local infile 'uniq.csv' into table tblUniq fields terminated by ',' enclosed by '"' lines terminated by '\n' (uniqName, uniqCity, u...
Chablis asked 10/11, 2010 at 11:24

3

Solved

Can't fix this problem: app.component.ts import { AngularFire, AuthProviders, AuthMethods } from 'angularfire2'; /angularfire2/index has no exported member 'AngularFire', /angularfire2/index has...
Cita asked 4/5, 2017 at 8:30

5

Solved

How to Copy/Paste following delimited data (by default delimited with tab) from excel: declare @t_values nvarchar(max) = N' NULL 490366 NULL NULL NULL 490400 NULL NULL NULL 490402 NULL NULL 4830...
Outbalance asked 3/4, 2020 at 13:5

1

I write a simple code trying to use numpy in C++. My OS is ubuntu16.04, with gcc5.4.0, Python2.7.12 and numpy1.15.0. Here is my codetest2.cpp: #include "Python.h" #include "numpy/arrayobject.h"...
Swastika asked 29/8, 2018 at 9:34

© 2022 - 2024 — McMap. All rights reserved.