kirei / python-base45 Goto Github PK
View Code? Open in Web Editor NEWBase45
License: BSD 2-Clause "Simplified" License
Base45
License: BSD 2-Clause "Simplified" License
When installing base45 with pip3 install base45
on RBPi - with Python v3.10.0 I get the "Could not find a version that staisfies tge requirement base45 (from versions: ) No Matching distribution found for base 45"
Is Python 3.10 or RBPi not supported?
hi, I apologize if this is not the right place... but since I'm attempting to use this library (version 0.2.1
) to decode a base45 string... I really would need to figure out if I'm not testing with a malformed string... or if it is a library problem...
"6BFOXN%TS3DH0YOJ58S S-W5HDC *M0II5XHC9B5G2+$N IOP-IA%NFQGRJPC%OQHIZC4.OI1RM8ZA.A5:S9MKN4NN3F85QNCY0O%0VZ001HOC9JU0D0HT0HB2PL/IB*09B9LW4T*8+DCMH0LDK2%K:XFE70*LP$V25$0Q:J:4MO1P0%0L0HD+9E/HY+4J6TH48S%4K.GJ2PT3QY:GQ3TE2I+-CPHN6D7LLK*2HG%89UV-0LZ 2ZJJ524-LH/CJTK96L6SR9MU9DHGZ%P WUQRENS431T1XCNCF+47AY0-IFO0500TGPN8F5G.41Q2E4T8ALW.INSV$ 07UV5SR+BNQHNML7 /KD3TU 4V*CAT3ZGLQMI/XI%ZJNSBBXK2:UG%UJMI:TU+MMPZ5$/PMX19UE:-PSR3/$NU44CBE6DQ3D7B0FBOFX0DV2DGMB$YPF62I$60/F$Z2I6IFX21XNI-LM%3/DF/U6Z9FEOJVRLVW6K$UG+BKK57:1+D10%4K83F+1VWD1NE"
seems to get me a
buf = [BASE45_CHARSET.index(c) for c in s]
File "/home/gms/tmp/local/qr_encode_disaster_recovery/.p3/lib/python3.9/site-packages/base45/__init__.py", line 32, in <listcomp>
buf = [BASE45_CHARSET.index(c) for c in s]
ValueError: substring not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gms/tmp/local/qr_encode_disaster_recovery/.p3/bin/base45", line 8, in <module>
sys.exit(main())
File "/home/gms/tmp/local/qr_encode_disaster_recovery/.p3/lib/python3.9/site-packages/base45/cli.py", line 28, in main
sys.stdout.buffer.write(b45decode(data.decode()))
File "/home/gms/tmp/local/qr_encode_disaster_recovery/.p3/lib/python3.9/site-packages/base45/__init__.py", line 45, in b45decode
raise ValueError("Invalid base45 string")
ValueError: Invalid base45 string
I initially opened the ticket on this other project... siddolo/eHealthDecoder#2
Hello,
just a question, is Python 3.7 absolutely necessary?
hi!
I tried installing base45 by pip install base45
(or pip3 install base45
), but I got this:
ERROR: Could not find a version that satisfies the requirement base45 (from versions: none)
ERROR: No matching distribution found for base45
any hint?
Alessandro
How would I go about using this tool from the shell?
python --version
Python 3.9.5
echo -e 'alfa' | ./base45 --encode
Traceback (most recent call last):
File "/home/c0rn3j/.local/bin/./base45", line 8, in <module>
sys.exit(main())
File "/home/c0rn3j/.local/lib/python3.9/site-packages/base45/cli.py", line 25, in main
sys.stdout.write(b45encode(data))
TypeError: write() argument must be str, not bytes
cat cert | ./base45 --decode
Traceback (most recent call last):
File "/home/c0rn3j/.local/lib/python3.9/site-packages/base45/__init__.py", line 32, in b45decode
buf = [BASE45_CHARSET.index(c) for c in s]
File "/home/c0rn3j/.local/lib/python3.9/site-packages/base45/__init__.py", line 32, in <listcomp>
buf = [BASE45_CHARSET.index(c) for c in s]
ValueError: substring not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/c0rn3j/.local/bin/./base45", line 8, in <module>
sys.exit(main())
File "/home/c0rn3j/.local/lib/python3.9/site-packages/base45/cli.py", line 28, in main
sys.stdout.buffer.write(b45decode(data.decode()))
File "/home/c0rn3j/.local/lib/python3.9/site-packages/base45/__init__.py", line 45, in b45decode
raise ValueError("Invalid base45 string")
ValueError: Invalid base45 string
cert contents
HC1:NCFOXN%TS3DH3ZSUZK+.V0ETD%65NL-AH-R6IOO6+IUKRG*I.I5BROCWAAT4V22F/8X*G3M9JUPY0BX/KR96R/S09T./0LWTKD33236J3TA3M*4VV2 73-E3GG396B-43O058YIB73A*G3W19UEBY5:PI0EGSP4*2DN43U*0CEBQ/GXQFY73CIBC:G 7376BXBJBAJ UNFMJCRN0H3PQN*E33H3OA70M3FMJIJN523.K5QZ4A+2XEN QT QTHC31M3+E32R44$28A9H0D3ZCL4JMYAZ+S-A5$XKX6T2YC 35H/ITX8GL2-LH/CJTK96L6SR9MU9RFGJA6Q3QR$P2OIC0JVLA8J3ET3:H3A+2+33U SAAUOT3TPTO4UBZIC0JKQTL*QDKBO.AI9BVYTOCFOPS4IJCOT0$89NT2V457U8+9W2KQ-7LF9-DF07U$B97JJ1D7WKP/HLIJLRKF1MFHJP7NVDEBU1J*Z222E.GJF67Z JA6B.38O4BH*HB0EGLE2%V -3O+J3.PI2G:M1SSP2Y3D38-G9C+Q3OT/.J1CDLKOYUV5C3W1A:75S4LB:6REPKM3ZYO4+QDNDLT2*ESLIH
I see that the code mentions
Python >= 3.6
but PyPI mentions
Requires: Python >=3.7, <4.0
Would be great if we could have PyPI match the code.
PS: thank you for the effort of making and maintaining this!
hi, i have tried to install using pip
and result
ERROR: No matching distribution found
maybe for missing setup.py ?
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.