Comments (10)
Try npm install --verbose --foreground-scripts=true pymport
from pymport.
Post the whole error message, I just tried installing it on the same configuration and it works for me.
from pymport.
As you may have seen from my profile, I am currently living on social welfare because of an extortion involving the French police, judicial system and many open source projects. In order to intimidate me, people are posting simultaneously issues on my project. Currently, they have been trying to post with an ever increasing time difference between those issues so that I stop saying what I am saying at the moment, all while it remains obvious to everyone.
from pymport.
Sorry to hear that, it sounds really crazy ;/
Here is the log file:
2024-03-31T18_06_21_757Z-debug-0.log
from pymport.
Try CXXFLAGS=-fpermissive npm install pymport
to see if it fixes the prolem
from pymport.
Nope, same
2024-03-31T20_59_37_946Z-debug-0.log
from pymport.
Yes, this one works, Installed!
Thanks!
from pymport.
But then import fails:
import { pymport, proxify } from 'pymport';
VITE v5.2.7 ready in 149 ms
➜ Local: http://localhost:9500/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] No loader is configured for ".html" files: node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html
node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:86:21:
86 │ return require('./' + command)(self, argvx, callback);
╵ ~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "mock-aws-s3"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28:
43 │ const AWSMock = require('mock-aws-s3');
╵ ~~~~~~~~~~~~~
You can mark the path "mock-aws-s3" as external to exclude it from the bundle, which will remove
this error and leave the unresolved path in the bundle. You can also surround this "require" call
with a try/catch block to handle this failure at run-time instead of bundle-time.
✘ [ERROR] Could not resolve "aws-sdk"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:22:
76 │ const AWS = require('aws-sdk');
╵ ~~~~~~~~~
You can mark the path "aws-sdk" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle. You can also surround this "require" call with
a try/catch block to handle this failure at run-time instead of bundle-time.
✘ [ERROR] Could not resolve "nock"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:112:23:
112 │ const nock = require('nock');
╵ ~~~~~~
You can mark the path "nock" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle. You can also surround this "require" call with
a try/catch block to handle this failure at run-time instead of bundle-time.
08:47:39 [vite] error while updating dependencies:
Error: Build failed with 4 errors:
node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:86:21: ERROR: No loader is configured for ".html" files: node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28: ERROR: Could not resolve "mock-aws-s3"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:22: ERROR: Could not resolve "aws-sdk"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:112:23: ERROR: Could not resolve "nock"
at failureErrorWithLog (/data/dev/dev/snoot/snoot_pcd/node_modules/esbuild/lib/main.js:1651:15)
at /data/dev/dev/snoot/snoot_pcd/node_modules/esbuild/lib/main.js:1059:25
at /data/dev/dev/snoot/snoot_pcd/node_modules/esbuild/lib/main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Should I open an other issue ?
from pymport.
No, you are trying to load pymport
which is a Node.js addon into a web project. This does not work.
from pymport.
Oh yes, sorry
from pymport.
Related Issues (20)
- Race condition on macOS with worker_threads
- `pymport` leaks TLS memory when used in a `worker_thread` HOT 2
- Random crash with `worker_threads`
- V8 GC does not know if `PyObject`s grow after initialization
- Background Python operations can block the event loop
- Loading and unloading `pymport` leaks memory HOT 2
- A single `Buffer` argument is incorrectly transformed to Python `kwargs` HOT 2
- Second Interpreter and stdin/out HOT 4
- `pymport` not compatible with Python 3.12
- feat request: Support IPython Kernel HOT 2
- Support multiple subscript operator in proxified PyObjects. HOT 3
- Using the Node.js inspector can lead to a crash HOT 3
- After loading `pymport`, further loading of other binary modules does not work HOT 2
- Don't have the pymport built-in Python environment installed HOT 3
- Installation error HOT 1
- Error when installing build-need package such as auto_gptq HOT 1
- "libsqlite3.so.0: cannot open shared object file: No such file or directory" HOT 1
- Hard crashes Node.js when a worker thread is terminated HOT 6
- How does it differs from node-calls-python ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymport.