22,704 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
42
views
install lifecycle doesn't compile all modules maven
As far I'm concerned the install lifecycle will follow sequential lifecycles (according to the default lifecycle of maven) up to the install.
The problem is that in my multi-module project, it doesn't ...
0
votes
1
answer
107
views
"No module named " error on raspi and not Windows
The module I am trying to import is part of a project with the structure
VIS/
├── __init__.py
└── Objects/
├── __init__.py
└── _Root.py
I am trying to import Root from \_Root.py with from VIS....
0
votes
2
answers
112
views
Jupyter kernel can't find local package after editable install
I'm a beginner in Python and GitHub, so I apologize if this is a basic question. I'm trying to make some functions available in any notebook in my project by creating a local package and installing it ...
0
votes
1
answer
62
views
FastAPI: /v1/modules returns {"detail": "Not Found"} even though router is defined
I have a FastAPI app that I start with:
uvicorn app.main:app --reload
In the code I have (simplified):
# routers.py
API_PREFIX = "/v1"
def register_routers(app: FastAPI) -> None:
...
-2
votes
1
answer
87
views
ESM & CommonJS Dual Support in an Existing Node.js Project [duplicate]
I'm updating a Node.js project to support both CommonJS and ES Modules (Dual Package).
My current issue appears when trying to load the module from the project root using exports field instead of main....
3
votes
1
answer
142
views
When is the definition of an exported function available to an importing TU?
Consider the following translation unit:
export module Example;
export inline void fn1();
export void fn2();
export void fn3();
void fn1() {}
void fn2() {}
module :private;
void fn3() {}
Firstly, ...
1
vote
2
answers
139
views
pytorch Module B=A, A.to('cpu'), but the tensor in B is still in GPU, why?
After converting module A to CPU, the origin parameter tensor still stays on the GPU? When it is released? Is it wrong if I reuse the parameter?
My code:
import torch.nn as nn
class A(nn.Module):
...
-2
votes
2
answers
86
views
Change in module behavior for clang in GitHub
I've inherited a GitHub job I don't understand well and that has stopped compiling.
It creates a .a library for iOS.
The source consists of a set of modules, each declared thus:
export module x;
...
0
votes
2
answers
110
views
python: vscode doesnt highlight direct import from module
When I attempt to import a module from a local package (from core import config), VSCode's syntax highlighting isn't working. When hovering over config, it shows "config: Any" (the editor ...
1
vote
1
answer
51
views
Trying to build Python extension (module) with Dlang and pyd with dub + ldc2
I am trying to build a Python extension (module) with D and the pyd (https://github.com/ariovistus/pyd) and dub and ldc2 compiler on Windows.
I have the following dub.sdl:
name "hello"
...
1
vote
1
answer
163
views
How do I convert a JavaFX application into an executable .jar file with all dependencies included?
I’ve built a modular JavaFX application using JDK 21 and JavaFX SDK 21.0.1. The project runs perfectly inside my IDE (IntelliJ IDEA), but when I try to export it as a .jar file and run it outside the ...
1
vote
1
answer
90
views
Ray: Resource request cannot be scheduled — using offline data and enabled the RL module
I tried training a BC algorithm using offline data and enabled the RL module in the algorithm configuration. I ran the code on Google Colab, which only provides 2 CPUs, and encountered the following ...
7
votes
1
answer
104
views
Detect leaking of private types which are only public in their module
Suppose I have a Rust crate mycrate with lib.rs:
mod internal {
pub struct X();
pub fn x() -> X {
X()
}
}
pub use internal::x;
This works fine on Rust 2024 and any consumer ...
0
votes
0
answers
32
views
Wordpress assets loading. Uncaught TypeError: Failed to resolve module specifier
I hope you can help me with one, it's drivinig me crazy :(
I recently splitted a giant file called admin.js into many modules, using these two WordPress functions:
wp_register_script_module
...
3
votes
1
answer
137
views
pycharm seems to load some modules BEFORE my own code
In a blank new PyCharm Project I create a file "runner.py" with following code:
import random
print(random.random())
Next to this file I create a file "random.py" which stays ...