python: converting an numpy array data type from int64 to int

I am somewhat new to python and I am using python modules in another program (ABAQUS). The question, however, is completely python related. In the program, I need to create an array of integers....

Gradle | Spring boot dependencies are not excluding

I'm trying to get log4j to work in a project that I'm working on. I added the relevant log4j dependencies in build.gradle and excluded the Spring boot starter logging so it can work. This worked...

Typescript es6 import module "File is not a module error"

I am using typescript 1.6 with es6 modules syntax. My files are: test.ts: module App { export class SomeClass { getName(): string { return 'name'; } } } main.ts: import App...

Error Loading MySQLdb Module and "pip install MySQLdb"

I'm trying start up a Django project. I get this error on trying to run the manage.py: (venv)dyn-160-39-161-214:proj Bren$ python manage.py Traceback (most recent call last): File "manage.py",...

Cannot retrieve field values from realm object, values are null in debugger

It seems like my RealmObject values are being hidden by the RealmProxy class, but can be set from the proxyclass. My model is pretty straight forward as you can see. public class GroupRealm...

Unable to Resolve Module in React Native App

I'm getting an error in React Native saying it can't resolve a module. It's saying a certain folder doesn't exist but the path isn't accurate. It is telling me that Directory...

Import error running unittest in Python3

I have a problem importing files in Python 3.6. My directories tree is as given below: project/ app/ ├── __init__.py ├── a.py └── b.py test/ ├──...

Android Studio Error:Execution failed for task ':app:compileDebugJavaWithJavac'

I updated Android Studio and SDK tools to the latest version and now I got this error. I have updated Google Services and firebase dependencies accordingly. I tried to clean and rebuild the...

vscode eslint not ignoring directory?

Despite clearly indicating in esignore that I want to ignore everything inside lib directory, vscode is saying 9 problems found in that minimized file. If I run eslint inside foldera in command...

AttributeError: 'module' object has no attribute 'mkdirs'

While creating a nested directory in Python 3.6 received following error: AttributeError: 'module' object has no attribute 'mkdirs' Sample code: def create_sample_data(): ...

ModuleNotFoundError: No module named 'ckeditor_uploader' in django

I'm trying to integrate a ckeditor in my django blog application. I followed all the instructions in the github page of django-ckeditor precisely. i.e. installed, added to installed apps, added in...

How do you use shims to map global thirdparty project to scoped object

In the documenation there is an example to include lodash in the project, which typically adds the variable "_" to the global scope. With AMD shims, you can map what is expected (globally) and...

Jest watch not detecting changes to files

Running npm t -- --watch is not detecting changes to test files. If I run npm t or npm run test:changed (my script for only running tests that cover changed files via jest -o) everything works...

Django Error Module 'Whitenoise' not found

I'm using whitenoise to deploy static files in prod, so according to whitenoise's docs, it's recommended to use it in development too. So I followed the documentation and added the following to my...

OSError: SavedModel file does not exist at: ../dnn/mpg_model.h5/{saved_model.pbtxt|saved_model.pb}

** code editor: vscode cmd: anaconda prompt I followed the tutorial but why this error? ** first error was ModuleNotFoundError: No module named 'tensorflow' but i make env and install it second...

Angular 9 mat-card-actions' is not a known element

Angular 9 mat-card-actions' is not a known element, I have imported and exported the Angular material modules but I get the following error: mat-card-actions' is not a known element: ...

Webpack Error - configuration.node has an unknown property 'fs'

I have encountered an error when using the latest version of Webpack (5.1.0). It looks like the configuration is throwing an error because the validation schema is too restrictive. Here is my...

How to import module in pydroid

I'm having problem in importing my created module in pydroid 3. The process seems very simple in desktop version of python 3 but I tried doing it in Mobile in pydroid 3 application, but it does...

Nest e2e test : Jest did not exit one second after the test run has completed

I perfome some e2E test in nestJs microservice (using Redis as transporter). Everything is going well except that the process never end. This is the message displayed on console Ran all test...

pod install failed on macOS Big sur

I am pretty new to macOS and recently shift to macOS from windows, I started to working on react-native app and when I try react-native run-ios it gives me below error error Could not find...

Ensurepip module not existing, how to install manually?

In the interest of not getting an XY problem: the goal is to create a virtual environment on synology dsm, so no apt-get, where pip is installed manually. I am trying to create a virtual...

YogaKit.modulemap not found in React Native on IOS after build in Xcode 12.4 on Macbook M1

Just make a new React Native projects on new Macbook M1. At first it was building on Xcode 12.4 with any troubles. But after a few days build failed with error: fatal error: module map file...

WebSocket.send is not a function

i am trying to setup a websocket server for Minecraft. Code: const WebSocket = require('ws') const uuid = require('uuid') // For later use console.log('Worldedit Ready. On Minecraft chat,...

Saleor Platform running, storefront wont start the server

I've used the saleor platform method, with docker and dashboard and everything else works properly, but not the frontend, any idea how to debug this, this is the output of the last...

Error: Compiling RuleSet failed: Properties options are unknown

Having upgraded from webpack 4.46.0 to 5.45.1 I am encountering the following error during the build: Error: Compiling RuleSet failed: Properties options are unknown (at ruleSet[1].rules[6]:...

Is there a way to create a module that can be consumed by both ESM and CJS applications?

I have a backend CJS application & a frontend ESM application. And a node module I have created in ESM. The node module works fine for my ESM application because they are both using ESM import...

Unable to inject a chosen custom repository in a module

Current behavior I am attempting to apply SOLID principles, and therefore decoupling my service from TypeOrm. The benefit is that I could use an InMemoryRepository for test purposes, and...

from Google import Create_Service ModuleNotFoundError: No module named 'Google'

I'm trying to use Gmail api in python to send email but I cant get past importing the Google module despite using "pip install --upgrade google-api-python-client" or "pip install google". However...

(Python) dash core components - ModuleNotFound

) When I want to import dash_core_components import dash_core_components as dcc it throws the following error: File "d:\Desktop\python_projekte\ds2.py", line 1, in <module> import...

AttributeError: module 'pyparsing' has no attribute 'downcaseTokens' rasa

I am facing a problem working with rasa, i can't run or train or do anything because below error. Traceback (most recent call last): File "c:\users\dell\anaconda3\envs\rasanew\lib\runpy.py",...