I got this protostar error when I tried initializing a project - python-3.x

I ran protostar init and got this error error below:
protostar init
[5238] Error loading Python lib '/home/page/.protostar/dist/protostar/libpython3.9.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/page/.protostar/dist/protostar/libpython3.9.so.1.0)
what could be wrong here??

Related

Installation of back-level version of h5py (2.10.0) fails .... wheel fails to build

I've tried this on Intel and ARM and both times it fails. I'm using a program, that needs to use 2.10.0. The 3.1.0 version works fine. I've played around with different dependencies and dead stuck.
Cam anyone help me figure out how to get this on either Mac?
Here is the error at the end:
#warning "Using deprecated NumPy API, disable it with " \
^
In file included from /private/var/folders/0m/8fmd9y8509v4xdcglsxv5rg40000gn/T/pip-install-0sjv5knz/h5py_75305355e2ca4b928d9fd980a5e2af77/h5py/defs.c:790:
./h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
^~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages
Rolling back uninstall of h5py
Moving to /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/h5py-3.8.0.dist-info/
from /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/~5py-3.8.0.dist-info
Moving to /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/h5py/
from /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/~5py
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> h5py```

Cant install Pyhash package on Mac OS 12.3.1 Monterey

I get this error when I run 'pip3 install pyhash'
return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
^ ~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyhash
What can I do to fix this. I have spent many hours trying to figure this out and it always leads me to this same error.

Error with xlsx-style when building angular 6 app

I installed xlsx-style in my angular 6 app via yarn and I get errors when I build my app :
ERROR in ../node_modules/xlsx-style/dist/cpexcel.js
Module not found: Error: Can't resolve './cptable' in 'C:\Users\cabannesj\Documents\Virga3\virga-frontend\node_modules\xlsx-style\dist'
ERROR in ../node_modules/xlsx-style/xlsx.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\cabannesj\Documents\Virga3\virga-frontend\node_modules\xlsx-style'
ERROR in ../node_modules/xlsx-style/ods.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\cabannesj\Documents\Virga3\virga-frontend\node_modules\xlsx-style'
I added 'xlsx.core.min.js' in the script section of my angular.json file.
I don't know what is missing to get xlsx-style work with my app.

Unable to create bdist_egg in pycharm - error: package directory 'venv\Lib\site-packages\pip-10\0\1-py3\6\egg\pip' does not exist

Running the bdist_egg through PyCharm fails with the error -
error: package directory
'venv\Lib\site-packages\pip-10\0\1-py3\6\egg\pip' does not exist
I noticed that the setup.py contains venv.Lib.site-packages.pip-10.0.1-py3.6.egg.pip
However, I find the following package available in path venv/Lib/site-packages/pip-10.0.1-py3.egg/pip.

Install imdb-api and use it in Angular2 Webpack

I am trying to use the imdb-api repo (https://github.com/worr/node-imdb-api) in my angular2 project, but can't seem to get it working.
I'm working on the newest angular2 webpack (Angular2 Webpack Starter). I usually know how to get libs working, but this one is just not working :(
Have cloned the Angular2 Webpack starter, and made the Npm install and npm start.. everything works great.
Then I have installed version 2.0.0 of imdb-api like this:
npm install --save imdb-api
It installed with no problems.
In a component, (lets say the about component) , I have imported the module like:
import * as imdb from 'imdb-api';
In the constructor, I am trying to console.log(imdb) to see if it's available.
constructor(public route: ActivatedRoute) {
// var imdb = require('imdb-api');
console.log(imdb);
}
As you see, I also tried using the var imdb = require ...
The problem is all this gives me errors I just can't seem to solve. I am getting the following errors:
ERROR in ./~/request/lib/har.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\request\lib'
ERROR in ./~/forever-agent/index.js
Module not found: Error: Can't resolve 'net' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\forever-agent'
ERROR in ./~/forever-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\forever-agent'
ERROR in ./~/tough-cookie/lib/cookie.js
Module not found: Error: Can't resolve 'net' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\tough-cookie\lib'
ERROR in ./~/tunnel-agent/index.js
Module not found: Error: Can't resolve 'net' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\tunnel-agent'
ERROR in ./~/tunnel-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'C:\Users\Mikkel\Documents\Programmering\angular2-webpack-starter\node_modules\tunnel-agent'
I have found a post about the request problem. The imdb-api is using the request-promise, thats why I'm getting the error.
The post you find here: https://github.com/request/request/issues/1529
The suggested to add the following:
console: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty'
to the node object in the webpack.config.js file. Have added it to the webpack dev config, but now I don't see any errors at all, but the application wont load.

Resources