Comments (14)
@sagrawal87 Same error here , same configuration as Rocky before. Any solution so far?
from abe.
Hi. I haven't seen this error before. May be try the newer version of Charm, Charm 0.43, which I used. It can be downloaded from here.
Let me know if the error doesn't go away.
from abe.
@sagrawal87 tried it with Charm 0.43 and still the same error
from abe.
@emantas @sagrawal87 Hi, everyone, I also tried Charm 0.43 on my Mac OS(High Sierra10.13, Python 2.7.11). After Installing GMP 5.x, PBC, OpenSSL, I download the Charm-Crypto-0.43_Python2.7.tar.gz (Python 2.7 Source) on my laptop, when executing "make", I meet this error:
Setup build/staging directories
set -x
set +x
Building the Charm Framework
/Users/rocky/anaconda/bin/python distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.42.tar.gz
Traceback (most recent call last):
File "distribute_setup.py", line 497, in <module>
main(sys.argv[1:])
File "distribute_setup.py", line 492, in main
tarball = download_setuptools()
File "distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: SSL is required
make: *** [all] Error 1
I am wondering whether it caused by my openssl installation, have you meet this error before?
from abe.
@sagrawal87 Hi Shashank, can I ask you which is your Charm 0.43 version? Charm-Crypto-0.43.dmg (Mac OS X 10.6+ Installer) or Charm-Crypto-0.43_Python2.7.tar.gz (Python 2.7 Source)?Have you test your code under Charm-dev?
from abe.
The DMG file is an easy way to install charm. Just download, extract, and follow the instructions in README-OSX.rtf. I think dependencies like PBC, OpenSSL, etc. are automatically taken care of.
from abe.
Hi Shashank, Thanks for your response, well, I still failed in my Macbook, but then I have deployed it successfully in my Ubuntu 12.04 with Charm 0.42 and Python 3.2.3. The AC17 and BSW07 scheme has been tested correctly. 👍 But there is another issue about CGW15 and waters11 scheme. I will open a new topic to talk with you more.
from abe.
sai@sai-Lenovo-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/veera/code/ABE$ python main.py
Traceback (most recent call last):
File "main.py", line 38, in
main()
File "main.py", line 25, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/sai/Downloads/veera/code/ABE/ac17.py", line 186, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str
@RockyZhangHKU please help me for getting this error...AC17 scheme
I am using Ubuntu 16.04 and python 2.7
from abe.
HI @RockyZhangHKU ,
I am facing the same issue ,can you suggest me the solution?
File "main.py", line 31, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/ubuntu/Desktop/CodeAccessControl/ABE-master/ac17.py", line 201, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str
from abe.
HI @sagrawal87 ,
I am facing the same issue ,can you suggest me the solution?
File "main.py", line 31, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/ubuntu/Desktop/CodeAccessControl/ABE-master/ac17.py", line 201, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str
from abe.
@samandeepdhindsa18 Could you say which version of Charm and Python are you using?
from abe.
from abe.
@samandeepdhindsa18 Try Charm 0.43 from here
from abe.
How can I save the masterkey and the publickey at the server and when I reboot the server I can still use mk, pk? Charm-Crypto
from abe.
Related Issues (18)
- Error: Could not find suitable distribution for Requirement.parse('pyparsing>=1.5.5') HOT 1
- error `libpbc.so.1: cannot open shared object file: No such file or directory.` HOT 2
- Type casting EC points from str to <class pairing.Element>
- encrypte file HOT 1
- Conditional Attributes and Policies HOT 1
- windows HOT 1
- Connecting on Implementation HOT 1
- how do I run this code on Ubuntu 20? HOT 15
- NameError: name 'downcaseTokens' is not defined HOT 3
- BLS12-381 curve
- No result output
- error loading from charm.toolbox.pairinggroup import PairingGroup, GT HOT 1
- ValueError: invalid literal for int() with base 10: 'FOUR' HOT 4
- ImportError: No module named benchmark
- charm installation error HOT 10
- NameError: name 'ZR' is not defined
- msp.py 'unicode' object has no attribute Error HOT 3
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 abe.