When I try to upload my package to PyPI why do I get an upload failed? - setuptools

The upload failed and I see there is a warning that MANIFEST.in does not exist and standard file not found: should have one of README, README.txt, README.rst.
Can someone please help? I'm not sure if I need to create the manifest template and standard readme files or if there's something wrong with the code I'm using:
C:\Users\Sean\Desktop\Projects\Head_First_Python\nester>python setup.py sdist upload
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
warning: sdist: standard file not found: should have one of README, README.txt, README.rst
writing manifest file 'MANIFEST'
creating nester-1.0.0
making hard links in nester-1.0.0...
hard linking nester.py -> nester-1.0.0
hard linking setup.py -> nester-1.0.0
Creating tar archive
removing 'nester-1.0.0' (and everything under it)
running upload
Submitting dist\nester-1.0.0.tar.gz to https://upload.pypi.org/legacy/
Upload failed (403): Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for details
error: Upload failed (403): Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for details
C:\Users\Sean\Desktop\Projects\Head_First_Python\nester>

Related

Page on github wont publish (error 404 not found)

My page wont go live when i try to publish it on github: https://starzje.github.io/NFT-card/
in "pages build and deployment", im both getting errors on deploy and built parts on github.
My file is just normal index.html and style.css, nothing else in it (just a folder with few imgs).
I did install sass and used bootstrap on a project before this (but there is no scss in this project).
github errors:
**DEPLOY ERROR**
Error: Error: No uploaded artifact was found! Please check if there are any errors at build step.
Error: Error: No uploaded artifact was found! Please check if there are any errors at build step.```
**BUILD ERROR:**
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss':
No such file or directory # dir_chdir - /github/workspace/docs
As mentioned in 2019, try and add a .nojekyll file at the root of your NFT-card repository.
That should allow you to bypass Jekyll completely: it would not try to apply a jekyll/minima theme at all.

Getting errors while trying to build istio source on mac

I'm a newbie in Istio and I’m trying to build the Istio source locally in mac but somehow when I run "make build" I get the following errors.
...
Downloading envoy: https://storage.googleapis.com/istio-build/proxy/envoy-alpha-74393cf764c167b545f32eb895314e624186e5b6.tar.gz to
real 0m5.288s
user 0m0.707s
sys 0m0.685s
cp: cannot create regular file '': No such file or directory
Unexpected failure
make[1]: *** [Makefile.core.mk:230: /work/out/darwin_amd64/istio_is_init] Error 1
...
These are the following env variables that I have set.
export HUB="docker.io/shriramsharma"
export TAG="shriramsharma"
export GOOS=darwin
export USE_LOCAL_PROXY=1
export BUILD_WITH_CONTAINER=1
Is there something I’m missing? any help would be appreciated
Version: I ran make build on the master branch of the source. I did not checkout any release version tag.
Docs: I followed the steps in the docs here. https://github.com/istio/istio/wiki/Preparing-for-Development-Mac

Kubernetes Pod - External library dependency

I'm using the Vault's Kubernetes Helm Chart.
Before proceeding, I'd like to mention that my issue is extremely similar to this one, but it didn't help.
So, inside Vault, I need to load a custom plugin, which has two dependencies: libpbc and libgmp.
While trying to install the plugin, I get this error:
* fork/exec /vault/plugins/plugin_name: no such file or directory
which is not normal, for the simple reason that everything seems okay (the plugin_directory (a Vault dependency) exists, the plugin is indeed under /vault/plugins etc).
So, by investigating, I found out that there is a big issue.
Executing ldd /vault/plugins/*plugin_name*, I get:
Error loading shared library libpbc.so.1: No such file or directory (needed by vault/plugins/plugin_name)
Error loading shared library libgmp.so.10: No such file or directory (needed by vault/plugins/plugin_name)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7eff0c4ba000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7eff0c4ba000)
Error relocating vault/plugins/plugin_name: pbc_param_init_a1_gen: symbol not found
Error relocating vault/plugins/plugin_name: pbc_param_init_e_gen: symbol not found
Error relocating vault/plugins/plugin_name: pbc_cm_search_d: symbol not found
...
What I have already tried:
Moving the libraries inside the pod and under /usr/local/lib. No. Error: tar: can't create symlink 'libpbc.so' to 'libpbc.so.1.0.0': Permission denied
Moving the libraries "anywhere" and exporting the LD_LIBRARY_PATH. Again, no. Not working (Expected)
Any other thing that came to my mind and got me a "Permission denied" error.
Issue solved.
I created a custom Vault image and in the Dockerfile I made it to include all the dependencies
RUN apk add build-base gmp-dev ...
For the libpbc, I wget the files, decompress them and then
./configure
make
make install

Does a recipe provided as DEPENDS can have own do_install() in yocto?

I am trying to build a custom recipe with Yocto (Rocko) for my Linux i.MX6 based embedded system.
The main recipe had dependency on a other custom recipe(as the main recipe is using header-files from this recipe) which is also creating some binaries which needs to be included in the final image.
I have added other_recipe(nbdkit) in the "DEPENDS" of main_recipe.bb
DEPENDS += "nbdkit"
the main recipe is creating a .so with the help of its own source file which is including header-files from the 'kit' recipe. I am able to install the binaries & .so generated using this main_recipe by adding it in do_install().
Now in the other_recipe(nbdkit http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-support/nbdkit/nbdkit_git.bb?h=master), When I add do_install()to include the binaries generated from that recipe the main_recipe build gets failed with PKG_CONFIG error as follow,
| Package nbdkit was not found in the pkg-config search path.
| Perhaps you should add the directory containing `nbdkit.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'nbdkit' found
Other build errors says that the header-files of kit included in the main_recipe is not found.
app-nbdkit-plugin.c:2:10: fatal error: nbdkit-plugin.h: No such file or directory
Where app-nbdkit-plugin.c is source file of main_recipe & kit-plugin.h is header file of other_recipe.
The strange thing is, when I remove do_install() from other_recipe(nbdkit) the main_recipe is getting built successfully.
Now I doubt, Is it possible to set a recipe as DEPENDS of other recipe and at the same time it provides output file as do_install()?
Will sharing header-files from other_recipe to main_recipe resolves the issue? If yes, how to do that?
Thanks.
[EDIT] Added nbdkit recipe link.

how to include a local javascript im ember-cli application

I have a local javascript in my application that i want to include in my ember-cli application.
it is called carrotsearch.foamtree.js
In order that it will be included i put it under vendor\foamtree\carrotsearch.foamtree
and in the app.js i write
import CarrotSearchFoamTree from 'foamtree/carrotsearch.foamtree'
the problem is that i get an error
===== 1 JSHint Error
Build failed. ENOENT, no such file or directory
'C:\Users\davidga\Desktop\ember\nextgen\tmp\tree_merger-tmp_dest_dir-37cYqLzL.tmp\foamtree\carrotsearch.foamtree.js'
File: foamtree/carrotsearch.foamtree.js Error: ENOENT, no such file or directory C:\Users\davidga\Desktop\ember\nextgen\tmp\tree_merger-tmp_dest_dir-37cYqLzL.tmp\foamtree\carrotsearch.foamtree.js'
at Object.fs.statSync (fs.js:689:18) at addModule
(C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\no
de_modules\broccoli-es6-concatenator\index.js:83:46) at addModule
(C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\no
de_modules\broccoli-es6-concatenator\index.js:126:9) at
C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\node_modules\
broccoli-es6-concatenator\index.js:59:7 at tryCatch
(C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\nod
e_modules\rsvp\dist\commonjs\rsvp-internal.js:163:16) at
invokeCallback
(C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-c
li\node_modules\rsvp\dist\commonjs\rsvp-internal.js:172:17) at
publish
(C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\node
_modules\rsvp\dist\commonjs\rsvp-internal.js:150:13) at flush (C:\Users\davidga\Desktop\ember\nextgen\node_modules\ember-cli\node_m
odules\rsvp\dist\commonjs\rsvp\asap.js:51:9) at
process._tickCallback (node.js:419:13)
I thought that the problem is maybe bower related so i followed the following post how to include a private local file in javascript project using bower
The problem is that neither
"foamtree": "foamtree/carrotsearch.foamtree.js"
nor
"foamtree": "vendor/foamtree/carrotsearch.foamtree.js"
works.
What may i do?
Thanks,
David
I found an answer.
In brocfile.js we can add the line
app.import('vendor/foamtree/carrotsearch.foamtree.js')
I don't know if this is an optimal anser but it works
Update:
This solution is stated in the ember-cli documentation
http://iamstef.net/ember-cli/#managing-dependencies
If you don't need them to minified in your vendor.js file you can put them in the public/js and then include it as a normal script file in app/index.html. I use this method for some libraries like moment.js.
The public folder gets directly copied to your site root during the build.