anaconda / anaconda-client Goto Github PK
View Code? Open in Web Editor NEWAnaconda Server Client
Home Page: https://anaconda.org
License: BSD 3-Clause "New" or "Revised" License
Anaconda Server Client
Home Page: https://anaconda.org
License: BSD 3-Clause "New" or "Revised" License
What is distribution_type?
upload(login, package_name, release, basename, fd, distribution_type, description='', md5=None, size=None, attrs=None, callback=None)[source]
Upload a new distribution to a package release.
Parameters:
login – the login of the package owner
package_name – the name of the package
version – the version string of the release
basename – the basename of the distribution to download
fd – a file like object to upload
description – (optional) a short description about the file
attrs – any extra attributes about the file (eg. build=1, pyversion=‘2.7’, os=’osx’)
In binstar.upload we check if index.json is included in the tar file. I'm not familiar with what index.json is/does, I assume it's metadata but do we have to make a new one with each package? It does not exist when you build packages..?
hi,
I wonder how does one show on: https://binstar.org/explorer all available packages.
I see only "Most Recent" and "Most UpVoted" ... but I would like to brows ALL available packages or search for a name?
Anything I missed?
Cheers
P
hi,
I'm not sure if the notification message by a file conflict is correct.
Distribution already exists. Please use the -i/--interactive option or binstar delete peter/ta-lib-libraries/0.4.0/linux-64/ta-lib-libraries-0.4.0-0.tar.bz2
[Conflict] file linux-64/ta-lib-libraries-0.4.0-0.tar.bz2 already exists for package ta-lib-libraries version 0.4.0
binstar: error: invalid choice: 'delete'
Should it not be something like: binstar remove .........
P
If you press on the package name that appears on your dashboard a 404 error appears.
I uploaded cliutils from conda build after recipe was created using conda skeleton pypi. It was uploaded for tester3 and I pressed on the messages appearing on the dashboard where cliutils is underlined.
Note that I deleted and reentered the package several times in case it is related.
I hope this is easy to reproduce from my description.
Personal is already the default with conda build. It should probably be the default in the client too, since packages are so likely to fail without it (due to already being published).
I did binstar remove sphinxjp.theme.basicstrap
and it did nothing. I would hope for an error message (that's not even the right name for the package; it should be themes
).
The --all flag should upload the package for all versions of the file that can be created using conda convert.
It should upload the package itself and then successively run conda convert on the package for each different platform and upload the result.
>>binstar upload /usr/conda-bld/linux-32/pymc-2.3-np17py27_0.tar.bz2
detecting package type ...
conda
extracting package attributes for upload ...
done
[BinstarError] Someone has already published the package "pymc". You can either change the name of the package or change the visibility to "Public"
The way I understood is that a package can be distributed by multiple channels under the same name. Is this incorrect?
I am trying to upload a package to a Binstar organization of which I am a a member, but it fails with:
Uploading file pymc/pymc/2.3.2/osx-64/pymc-2.3.2-np18py27_0.tar.bz2 ...
[NotFound] The path u'/stage/pymc/pymc/2.3.2/osx-64/pymc-2.3.2-np18py27_0.tar.bz2' could not be found
Bug, or am I doing something wrong? I am uploading using binstar upload -u <orgname> <filename>
You should look at the binstar.org web site login.
I ran into issues with creating a tester account for testing binstar.
I tried to create tester1 and put in my email address. Initially I did not put the beta code so the system did not accept me and raised an error.
Once I put in the code the system rejected me because tester 1 existed, so I switched to tester2 - then the system rejected me because of an existing email.
Please check that the user information is not recorded upon rejection of a user.
I hope this is a quick fix.
I have a test recipe: https://github.com/asmeurer/test-recipe/tree/master. After building, I get
[BinstarError] Trouble reading metadata from '/Users/aaronmeurer/anaconda/conda-bld/osx-64/test-recipe-1.0-py33_0.tar.bz2'. Please make sure this package is correct or specify the --metadata, --package and --version arguments
binstar search should show platforms in the output. Otherwise it's easy to fall into the trap of thinking a package is available but it really isn't for your platform.
The Python name is called binstar_client. We should call at least the Python package, if not the whole GitHub package, just binstar.
$ binstar config --show
Site Config: /Library/Application Support/binstar/config.yaml
Traceback (most recent call last):
File "/Users/adrian/Software/anaconda/bin/binstar", line 6, in <module>
sys.exit(main())
File "/Users/adrian/Software/anaconda/lib/python2.7/site-packages/binstar_client/scripts/cli.py", line 58, in main
return args.main(args)
File "/Users/adrian/Software/anaconda/lib/python2.7/site-packages/binstar_client/commands/config.py", line 24, in main
log.info()
TypeError: info() takes at least 2 arguments (1 given)
Uploading file asmeurer/mako/0.9.1/osx-64/mako-0.9.1-py34_0.tar.bz2 ...
Traceback (most recent call last):
File "/Users/aaronmeurer/anaconda/bin/binstar", line 6, in <module>
sys.exit(main())
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/scripts/cli.py", line 60, in main
return args.main(args)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/commands/upload.py", line 175, in main
callback=upload_print_callback(args))
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/__init__.py", line 407, in upload
s3res = requests.post(s3url, data=data_stream, verify=True, timeout=10 * 60 * 60, headers=headers)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/api.py", line 88, in post
return request('post', url, data=data, **kwargs)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/sessions.py", line 383, in request
resp = self.send(prep, **send_kwargs)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/sessions.py", line 486, in send
r = adapter.send(request, **kwargs)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/adapters.py", line 330, in send
timeout=timeout
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 480, in urlopen
body=body, headers=headers)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 285, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Users/aaronmeurer/anaconda/lib/python3.3/http/client.py", line 1065, in request
self._send_request(method, url, body, headers)
File "/Users/aaronmeurer/anaconda/lib/python3.3/http/client.py", line 1103, in _send_request
self.endheaders(body)
File "/Users/aaronmeurer/anaconda/lib/python3.3/http/client.py", line 1061, in endheaders
self._send_output(message_body)
File "/Users/aaronmeurer/anaconda/lib/python3.3/http/client.py", line 906, in _send_output
self.send(msg)
File "/Users/aaronmeurer/anaconda/lib/python3.3/http/client.py", line 844, in send
self.connect()
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/requests/packages/urllib3/connection.py", line 108, in connect
self.sock = ssl.wrap_socket(conn, self.key_file, self.cert_file)
AttributeError: 'NoneType' object has no attribute 'wrap_socket'
binstar upload -i --user wpackages wtforms-1.0.4-py27_105.tar.bz2 --private
...
...
Do you want to make this package public? [y|N]: N
Traceback (most recent call last):
File "/opt/anaconda/bin/binstar", line 6, in <module>
sys.exit(main())
File "/opt/anaconda/lib/python2.7/site-packages/binstar_client/scripts/cli.py", line 58, in main
return args.main(args)
File "/opt/anaconda/lib/python2.7/site-packages/binstar_client/commands/upload.py", line 153, in main
publish=args.publish)
File "/opt/anaconda/lib/python2.7/site-packages/binstar_client/commands/upload.py", line 49, in create_package_interactive
publish=publish)
TypeError: add_package() got multiple values for keyword argument 'public'
Consider this amusing sequence of commands
$binstar remove sympy
Are you sure you want to remove file sympy [y|N]: y
UserError: package not given in spec (got 'sympy' expected <username>/<package> )
$binstar remove asmeurer/sympy
Are you sure you want to remove file asmeurer/sympy [y|N]: y
UserError: version not given in spec (got 'asmeurer/sympy' expected <username>/<package>/<version> )
$binstar remove asmeurer/sympy/0.7.3
Are you sure you want to remove file asmeurer/sympy/0.7.3 [y|N]: y
UserError: basename not given in spec (got 'asmeurer/sympy/0.7.3' expected <username>/<package>/<version>/<filename> )
$binstar remove asmeurer/sympy/0.7.3/sympy-0.7.3-py33_0.tar.bz
Are you sure you want to remove file asmeurer/sympy/0.7.3/sympy-0.7.3-py33_0.tar.bz [y|N]: y
NotFound: distribution u'sympy-0.7.3-py33_0.tar.bz' does not exist
$binstar remove asmeurer/sympy/0.7.3/sympy-0.7.3-py33_0.tar.bz2
Are you sure you want to remove file asmeurer/sympy/0.7.3/sympy-0.7.3-py33_0.tar.bz2 [y|N]: y
Through my token (I have just one):
[irritum@localhost ~]$ export BINSTAR_TOKEN="$(</home/irritum/.binstar.token)"
I'm able to upload new packages and publish them in binstar. Generally speaking I can perform all appropriate actions. Below you can see the result of day to day work:
[irritum@localhost ~]$ binstar -t ${BINSTAR_TOKEN} show mutirri
Username: mutirri
Member since: Mon Oct 28 10:21:04 2013
+user_type: user
+name: mutirri
Packages:
Name | Access | Package Types | Summary
------------------------- | ------------ | --------------- | --------------------
mutirri/boost | published | conda | http://www.boost.org/
mutirri/bottleneck | public | conda | None
...
But when I type below command, the authentication somehow fails:
[irritum@localhost ~]$ binstar -t ${BINSTAR_TOKEN} search boost
Run 'binstar show <USER/PACKAGE>' to get more details:
[Unauthorized] Invalid Token
More info:
[irritum@localhost ~]$ binstar -t ${BINSTAR_TOKEN} auth -l -s all
ID | Application | Remote Addr | Host | Expires In
--------------------------+----------------------+----------------------+----------------------+---------------------
XXXXXXXXXXXXXXXXXXXXXXXX | binstar_token:localhost.localdomain | XX.XXX.XXX.XXX | localhost.localdomain | 302 days
and
[irritum@localhost ~]$ binstar -V
binstar Command line client (version 0.4.4)
Hi
I am afraid I have messed up something on binstar, so I am now unable to add my package to the public registry. I get the following error on the homepage.
Package name has already been taken by another user
However, the name is not taken by an other user. I believe it happens since I was playing around trying to figure out how organizations work. I had a similar named published package in an organization. Then I deleted the organization without first removing the package.
The result is that I can't publish my packages from my personal account. Can you help me fix this.
Sorry for messing things up.
/Morten
Traceback (most recent call last):
File "/Users/aaronmeurer/anaconda/bin/binstar", line 6, in <module>
sys.exit(main())
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/scripts/cli.py", line 60, in main
return args.main(args)
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/commands/remove.py", line 25, in main
if not args.force and bool_input(msg, False):
File "/Users/aaronmeurer/anaconda/lib/python3.3/site-packages/binstar_client/utils/__init__.py", line 244, in bool_input
inpt = raw_input('%s %s: ' % (prompt, default_str))
NameError: global name 'raw_input' is not defined
I recommend running the Python 3 version of pyflakes across the codebase to find such simple errors.
>>binstar upload /usr/conda-bld/linux-32/pymc-2.3-np17py27_0.tar.bz2
Traceback (most recent call last):
File "/home/wiecki/envs/hddm/bin/binstar", line 9, in <module>
load_entry_point('binstar==0.3.0', 'console_scripts', 'binstar')()
File "/home/wiecki/envs/hddm/local/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/wiecki/envs/hddm/local/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/home/wiecki/envs/hddm/local/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/wiecki/envs/hddm/local/lib/python2.7/site-packages/binstar_client/__init__.py", line 8, in <module>
from binstar_client.requests_ext import stream_multipart
File "/home/wiecki/envs/hddm/local/lib/python2.7/site-packages/binstar_client/requests_ext.py", line 13, in <module>
from requests.packages.urllib3.filepost import choose_boundary, iter_fields, \
ImportError: cannot import name get_content_type
This is with requests 2.0.1 and binstar 0.3.0.
File "/opt/anaconda/lib/python2.7/site-packages/binstar_client/commands/authorizations.py", line 14, in format_timedelta
if date < datetime.now():
TypeError: can't compare offset-naive and offset-aware datetimes
I made the following changes that hardcode to UTC, but make it work for me temporarily.
binstar_client/commands/authorizations.py:L14
+ import pytz
+ if date < datetime.now(pytz.utc):
return 'expired'
+ delta = date - datetime.now(pytz.utc)
L71:
+ if "resource" not in auth:
+ auth["resource"] = "NotExists"
print template % auth
You should have stronger checking around your string formatting to catch non-existent keys.
I found a two problems with binstar upload.
When it uploads a package to binstar.org it doesn't create a valid repodata.json.bz2 file, the repodata.json is ok, it contains all the packages in the repository, but the bz2 version (which is the one that conda tries to fetch first) is always empty
{"info": {"platform": "win", "default_python_version": "2.7", "arch": "x86", "default_numpy_version": "1.7"}, "packages": {}}
When uploading a package on Windows8 it doesn't upload a valid bz2 archive. When I download it manually it's broken. Everything works fine on MacOSX (haven't tried it on Linux or Windows 7 yet).
I'm using the binstar 0.2.0 and Anaconda 1.6.2 (win) 1.6.1 (macox).
>>binstar
Traceback (most recent call last):
File "/usr/bin/binstar", line 4, in <module>
from binstar_client.scripts.cli import main
ImportError: No module named binstar_client.scripts.cli
binstar 0.4.4 py27_1
binstar client lets you specify multiple files to upload, but it only uploads the first one.
Accidentally forgot to add user.
binstar upload --user flask-login-0.1.3-py27_32.tar.bz2
echo $?
0
ConnectionError: HTTPSConnectionPool(host='api.binstar.org', port=443): Max retries exceeded with url: /packages/wakari (Caused by <class 'socket.gaierror'>: [Errno 8] nodename nor servname provided, or not known)
Using the python API, I needed to reconnect using my token after a while of not using my client object. The object has everything it needs to reconnect if the SSL connection drops.
I'm on a bare bones linux box, no gnome/kde running and it appears
a dbus keyring service is not available on it. as a cli application untied
to a desktop environment it seems that should not be a requirement.
ERROR:dbus.proxies:Introspect error on :1.144:/org/freedesktop/secrets/aliases/default: dbus.exceptions.DBusException: org.freedesktop.Secret.Error.NoSuchObject: The '/org/freedesktop/secrets/aliases/default' object does not exist
Traceback (most recent call last):
File "/usr/local/bin/binstar", line 9, in <module>
load_entry_point('binstar==0.3.0', 'console_scripts', 'binstar')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2394, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/binstar_client/__init__.py", line 9, in <module>
from binstar_client.utils import compute_hash, jencode, pv
File "/usr/local/lib/python2.7/dist-packages/binstar_client/utils/__init__.py", line 8, in <module>
from keyring import get_keyring, set_keyring
File "/usr/local/lib/python2.7/dist-packages/keyring/__init__.py", line 12, in <module>
from .core import (set_keyring, get_keyring, set_password, get_password,
File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 180, in <module>
init_backend()
File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 59, in init_backend
set_keyring(load_config() or _get_best_keyring())
File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 67, in _get_best_keyring
keyrings = backend.get_all_keyring()
File "/usr/local/lib/python2.7/dist-packages/keyring/util/__init__.py", line 24, in wrapper
func.always_returns = func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keyring/backend.py", line 127, in get_all_keyring
exceptions=TypeError))
File "/usr/local/lib/python2.7/dist-packages/keyring/util/__init__.py", line 35, in suppress_exceptions
for callable in callables:
File "/usr/local/lib/python2.7/dist-packages/keyring/backend.py", line 119, in is_class_viable
keyring_cls.priority
File "/usr/local/lib/python2.7/dist-packages/keyring/util/properties.py", line 22, in __get__
return self.fget.__get__(None, owner)()
File "/usr/local/lib/python2.7/dist-packages/keyring/backends/SecretService.py", line 27, in priority
secretstorage.Collection(bus)
File "/usr/lib/python2.7/dist-packages/secretstorage/collection.py", line 43, in __init__
self.collection_props_iface.Get(COLLECTION_IFACE, 'Label')
File "/usr/lib/python2.7/dist-packages/secretstorage/util.py", line 27, in function_out
raise ItemNotFoundException(e.get_dbus_message())
secretstorage.exceptions.ItemNotFoundException: The '/org/freedesktop/secrets/aliases/default' object does not exist
Using the new 0.4.0 release, I get:
$ binstar upload ~/boto-2.11.0-py27_0.tar
Traceback (most recent call last):
File "/home/ilan/a150/bin/binstar", line 6, in <module>
sys.exit(main())
File "/home/ilan/a150/lib/python2.7/site-packages/binstar_client/scripts/cli.py", line 58, in main
return args.main(args)
File "/home/ilan/a150/lib/python2.7/site-packages/binstar_client/commands/upload.py", line 95, in main
binstar = get_binstar(args)
File "/home/ilan/a150/lib/python2.7/site-packages/binstar_client/utils/__init__.py", line 95, in get_binstar
if config['keyring'] == 'plain-text':
KeyError: 'keyring
I have keyring 3.2
installed, but that does not seem to be the problem.
This is from the Anaconda email list:
Thanks, the binstar remove
command worked although it always gave a traceback at the end:
Traceback (most recent call last):
File "C:\dev\bin\Anaconda\Scripts\binstar-script.py", line 5, in <module>
sys.exit(main())
File "C:\dev\bin\Anaconda\lib\site-packages\binstar_client\scripts\cli.py", line 58, in main
return args.main(args)
File "C:\dev\bin\Anaconda\lib\site-packages\binstar_client\commands\remove.py", line 32, in main
binstar.remove_release(spec.user, spec.package, spec.version)
File "C:\dev\bin\Anaconda\lib\site-packages\binstar_client\__init__.py", line 273, in remove_release
return res.json()
File "C:\dev\bin\Anaconda\lib\site-packages\requests\models.py", line 651, in json
return json.loads(self.text or self.content, **kwargs)
File "C:\dev\bin\Anaconda\lib\json\__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\dev\bin\Anaconda\lib\json\decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\dev\bin\Anaconda\lib\json\decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
C:\Users\dhirschfeld>binstar -V
binstar-script.py Command line client (version 0.3.0)
I did a binstar upload ~/anaconda/conda-bld/osx-64/*.tar.bz2
to try and make sure that every package I had build was uploaded. But it failed because the first one already was. I used -i, but that made me answer for each package. Furthermore, I don't want to go through all the interactive crap for each package. I tried piping yes n
into it, but as soon as it got to a package that wasn't uploaded, it asked me if I wanted to create it and exited!
Binstar needs a --ignore-exists or --no-replace option.
So today I actually just used binstar_client for the first time to upload a package (yes I know, I was supposed to be testing it sooner, but I was busy with the Anaconda release and SciPy). So here are my first time comments. It's easy to get lost in usability if you already know how something works, so I think these first time impressions are important.
I pulled from source to try and get my binstar client to work again:
binstar register --user wpacakges --private workbench-1.1.0-py27_119.tar.bz2
Traceback (most recent call last):
File "/opt/anaconda/bin/binstar", line 9, in <module>
load_entry_point('binstar==0.4.3', 'console_scripts', 'binstar')()
File "/opt/anaconda/lib/python2.7/site-packages/binstar-0.4.3-py2.7.egg/binstar_client/scripts/cli.py", line 58, in main
return args.main(args)
File "/opt/anaconda/lib/python2.7/site-packages/binstar-0.4.3-py2.7.egg/binstar_client/commands/register.py", line 36, in main
if args.package_type:
AttributeError: 'Namespace' object has no attribute 'package_type'
When you forget your password, you input your email address to get an email to change your password (not your username). In the email you receive, your username is in the link - but it is not obvious. Perhaps add "forgot your username" option on the login screen, since you need the correct username and password to login?
When the user is not logged in, it should just call binstar login automatically when you try to do an upload. The same for config, which is apparently necessary in some cases (I don't understand what binstar config
does).
currently if I upload a package, people have to add https://conda.binstar.org/brentp to their condarc channels.
it would be nice if I could do, e.g.
conda install toolshed --binstar
or something like that and it would fall back to searching binstar if there wasn't one availalble in the paths specified in condarc channels.
I'm unable to upload a package to binstar with a name someone has already take:
[BinstarError] Someone has already published the package "nodejs". You can either change the name of the package or change the visibility to "Public"
Currently the PyPi search feature helpfully advises users of the versions available; the corresponding Binstar listing is obscure and requires many more clicks to find the correct package.
Using 'bottle' as an example;
https://pypi.python.org/pypi?%3Aaction=search&term=bottle&submit=search
https://pypi.python.org/pypi/bottle
https://binstar.org/search?q=bottle&type=conda&access=
I do not see a place to submit a pull request for the website itself. Is it here somewhere?
thank you!
ps, I came here via tickets ;
#54 make personal the default
#33 pkg upload error
#41 can't upload with same name
//AnneTheAgile
In a clean machine upon binstar login the system asked the user for a keyring password.
After this password has been entered the user is again asked to enter the keyring password each time the user uses binstar - even though the user is loged in.
For example:
binstar whoami askes for password
Even conda build asks for the password after the user asks to upload to binstar.
This behavior was observed on centos32 and ubuntu11x64
There should be a way to simplify the user experience on these machines - after all keyring should help the user with passwords.
I hope this is easy to fix.
Packages with numbers at start of name raise an error:
$ binstar upload 9ML-0.1.0.tar.gz
detecting package type ... conda
extracting package attributes for upload ... done
BinstarError: package name 4ml not valid
Tried it with a few others; 4chan, 42qucc, 2mp4 and they all have the same error
+ binstar -t $token upload --private /var/lib/jenkins/conda-bld/linux-64/wakari-file-xfer-app-1.0-py27_5.tar.bz2
BinstarError Someone has already published the package "wakari-file-xfer-app". You can either change the name of the package or change the visibility to "Public"
done
requests 2.0.1
File "/usr/local/bin/binstar", line 9, in <module>
load_entry_point('binstar==0.3.0', 'console_scripts', 'binstar')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2394, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/binstar_client/__init__.py", line 8, in <module>
from binstar_client.requests_ext import stream_multipart
File "/usr/local/lib/python2.7/dist-packages/binstar_client/requests_ext.py", line 13, in <module>
from requests.packages.urllib3.filepost import choose_boundary, iter_fields, \
ImportError: cannot import name get_content_type
This exception does not occur with 1.0.0/1.2.3.
I was doing some testing and I cannot upload larger packages with binstar. I tried astropy at 5mb and got this error:
" Error Code EntityTooLarge /Code Message Your proposed upload exceeds the maximum allowed size Message ProposedSize 1052600 ProposedSize RequestId 4AF6F4FF188F03DF RequestId HostId vgwGrUuiGqFF+nRBLfnz0GB6dIpJ0uxv9QxWgEAmnjVQTzI1SHOXAwMwDeXI5bvZ HostId MaxSizeAllowed 1048576 MaxSizeAllowed Error "
BinstarError: Error uploading to s3
This should behave like ssh and let you try your password multiple times with the same username rather than typing your username each time. The reasoning is that you can see that you typed your username correctly, but you most likely fat-fingered the password. If you screwed up your username as well, you can ctrl-c.
binstar login
Username: good_user_name
Password:
[error] Invalid Username password combination, please try again
Username: good_user_name
Password:
login successful
hi,
I noticed at: Create a New Package: https://binstar.org/new
the link in:
Publish Anyone can download and install this package. This package will be hosted on binstar's global public repository.
gets: 404: Page not Found
I can not edit it.
Just to let you know
P
Is it worth it having a dependency on appdirs just to figure out where to put the config file? What is wrong with os.path.expanduser("~")
?
Binstar needs to use requests 2.0 so it can run in the root environment and be called by conda without breaking anytime a package that uses requests 2.0 gets installed.
ie: we should need to use envs to isolate all other packages that use requests because the client uses 1.x.
On OSX Mavericks it is not possible to login with binstar login
. It asks for username and password but then fails with
File "/Users/adrian/Software/anaconda/bin/binstar", line 6, in <module>
sys.exit(main())
File "/Users/adrian/Software/anaconda/lib/python2.7/site-packages/binstar_client/scripts/cli.py", line 62, in main
interactive_login()
File "/Users/adrian/Software/anaconda/lib/python2.7/site-packages/binstar_client/commands/login.py", line 41, in interactive_login
kr.set_password('binstar-token', getpass.getuser(), token)
File "/Users/adrian/Software/anaconda/lib/python2.7/site-packages/keyring/backends/OS_X.py", line 62, in set_password
raise set_error
keyring.errors.PasswordSetError: Can't store password in keychain
The relevant packages are:
anaconda 1.7.0 np17py27_0
binstar 0.3.1 py27_0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.