27,526 questions
1
vote
1
answer
129
views
Error when running a .exe Go program if I add a line break in the import
I'm running into a strange error when running the .exe that I built from a simple Go script I'm making, when I try to run the .exe it gives the following error and deletes the .exe file:
Translation: ...
Best practices
0
votes
6
replies
94
views
How should modules be conditionally imported based on output of a later-defined function?
I need to emulate the auto-detection functionality for os.path (ntpath vs posixpath) but with support for the file being run within an MSYS2 environment (if running the Python release specific to any ...
0
votes
0
answers
64
views
How to import a .dwg file containing 3D solids into a solidworks part or assembly? Must be via soliworks API - SolidWorks Macro Editor
The process as follows works perfectly fine:
When I click on the open option, select a .dwg file containing 3D solids inside it, and press OPEN, it automatically redirects me to the DXF/DWG Import ...
0
votes
0
answers
90
views
Python pyc cache is not invalidated when source code is modified quickly
I am writing a Python project where the source code is modified quickly. I am noticing that Python seems to run old versions of the program.
a.py:
import b
print(b.i)
b.py:
# will be changed later
i =...
Advice
0
votes
1
replies
74
views
What does the syntax import { some_type_or_function } from "@software/more" indicate?
I'm mostly wondering about the "@software/more" part.
Is this a package? I can see it in my package-lock.json installed as a dependency. In my example, I'm looking at "@playwright/test&...
Tooling
0
votes
4
replies
115
views
Why is the code not working, even after import ing it
from selenium.webdriver.support import expected_conditions as EC
import time
\# 1. Setup Service and Driver
service = Service('C:/Users/HP/Desktop/Drivers/chromedriver_win32/chromedriver.exe')
driver ...
Advice
0
votes
2
replies
81
views
Starting to learn React, at first it got executed but now its not, and giving such errors
[plugin:vite:import-analysis] Failed to resolve import "./src/assets/Header.jsx" from "src/App.jsx". Does the file exist?
C:/Users/MCLAREN/Desktop/Website react/my-react-app/src/...
0
votes
2
answers
369
views
Angular Material: "'imports' must be an array of components, directives, pipes, or NgModules"
I'm following the Angular Material documentation. https://material.angular.dev/guide/getting-started
When using MatSlideToggle in a standalone component I get this error:
'imports' must be an array ...
3
votes
3
answers
244
views
Import large CSV files with many unknown column names and types (auto-detection)
Using PostgreSQL 18, I want to import a large .csv file with unknown column names and types. I have 2 related .csv files:
The 1st file contains around 100 columns and 2,000,000 rows of data, like ...
Advice
0
votes
3
replies
69
views
How to include imports across multiple subfiles in python?
I am currently working on a project using pygame and am putting some of my code in seperate files to keep it organised (which I understand is best practice) and importing it. In the past I have just ...
Best practices
0
votes
0
replies
37
views
Imprt trouble with Cargo workspace(s): use top-modules within a sub-module
I have a small Rust project that I'm using as a learning exercise/sandpit to understand how the workspace and project schema works.
I have had trouble resloving what to me seems like a ver "...
Advice
0
votes
1
replies
80
views
sklearn_boilerplate anything else should be included for everyday use?
this are sklearn imports I use in every notebook, is anything else to be included for everyday use?
import numpy as np
import pandas as pd
from sklearn.impute import SimpleImputer
from sklearn....
1
vote
2
answers
139
views
In Raku, how to import a module during runtime?
I would like to import Test::Color only when %*ENV<TEST_COLOR> is set.
I can't put use inside an if block, because use happens at compile time. I put require inside the if block, to no effect.
...
Best practices
2
votes
4
replies
89
views
How to solve import problem in Microservice Architecture?
As part of learning I'm trying to switch monolithic project to microservice architecture and encountered import problems.
GitHub Project
Project's tree looks like:
users/
pyproject.toml
src/
...
0
votes
1
answer
126
views
Why do I get an Unresolved error when I make an import in Kotlin wear?
I've forged a sample from github but some imports give me an error:
Unresolved reference 'common'.
It's these two import:
import com.google.common.util.concurrent.Futures
import com.google.common....