Comments (8)
This happened because Leonard has not yet installed OpenSSL for Windows. We need to figure out a good plan to provide OpenSSL for Windows users of TUF.
from python-tuf.
So, does installing OpenSSL fix it? Is it that easy or is there more to
it?
Thanks,
Justin
On Thu, Mar 14, 2013 at 11:27 PM, TKK [email protected] wrote:
This happened because Leonard has not yet installed OpenSSL for Windows.
We need to figure out a good plan to provide OpenSSL for Windows users of
TUF.—
Reply to this email directly or view it on GitHubhttps://github.com/akonst/tuf/issues/35#issuecomment-14942194
.
from python-tuf.
I put a copy of libeay32.dll (from http://gnuwin32.sourceforge.net/packages/openssl.htm) in the /Scripts folder of the virtualenv setup and it got further. Now I get a repository not found error.
[2013-03-24 14:05:38,996] [tuf] [INFO] Metadata u'targets/simple/Django.txt' has changed.
[2013-03-24 14:05:38,997] [tuf.download] [INFO] Downloading: https://updateframework.com/pypi/repository/metadata/target
s/simple/Django.txt
[2013-03-24 14:05:39,457] [tuf] [ERROR] u'simple/django/index.html' not found
....
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\pip-1.4.dev1-py2.7.egg\pip\index.py", line 474, in
get_page
resp = urlopen(url)
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\tuf\interposition\__init__.py", line 283, in wrapp
er
return updater.open(url, data=data)
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\tuf\interposition\updater.py", line 119, in open
filename, headers = self.retrieve(url, data=data)
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\tuf\interposition\updater.py", line 139, in retrie
ve
temporary_directory, temporary_filename = self.download_target(target_filepath)
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\tuf\interposition\updater.py", line 60, in downloa
d_target
targets = [self.updater.target(target_filepath)]
File "C:\Users\leonw_000\Trishank Test\pipovertuf\lib\site-packages\tuf\client\updater.py", line 1472, in target
raise tuf.RepositoryError(message)
RepositoryError: u'simple/django/index.html' not found.
from python-tuf.
I think I see why. It should be simple/Django/index.html
, not simple/django/index.html
. What was your exact install command?
from python-tuf.
Ah, that fixed that issue, nice find. The command I used earlier was pip install django. I used pip install Django and I get an invalid hash error even though the hashes match, but no exceptions.
(pipovertuf) PS C:\Users\leonw_000\Trishank Test> pip install Django
No handlers could be found for logger "tuf.hash"
Downloading/unpacking Django
[2013-03-24 14:26:42,543] [tuf.download] [INFO] Downloading: https://updateframework.com/pypi/repository/metadata/timest
amp.txt
[2013-03-24 14:26:43,967] [tuf.download] [INFO] Downloading: https://updateframework.com/pypi/repository/targets/simple/
Django/index.html
[2013-03-24 14:26:44,648] [tuf.download] [INFO] The file's sha256 hash is correct: ca697ea11d91d393cf56f92e342ca2d04cfd8
1c5f5535e4ac4976ac0dcc90893
[2013-03-24 14:26:45,915] [tuf.download] [INFO] Downloading: https://updateframework.com/pypi/repository/metadata/timest
amp.txt
[2013-03-24 14:26:46,398] [tuf.download] [INFO] Downloading: https://updateframework.com/pypi/repository/targets/package
s/source/D/Django/Django-1.4.5.tar.gz
[2013-03-24 14:28:24,773] [tuf.download] [INFO] The file's sha256 hash is correct: 0e1e8c4217299672bbf9404994717fca2d8d4
b7a4f7b8b3b74d413e1fda81428
Downloading Django-1.4.5.tar.gz (unknown size): 31kB downloaded
Hash of the package https://pypi.python.org/packages/source/D/Django/Django-1.4.5.tar.gz#md5=851d00905eb70e4aa6384b3b8
b111fb7 (from https://pypi.python.org/simple/Django/) (<md5 HASH object @ 02C79340>) doesn't match the expected hash 851
d00905eb70e4aa6384b3b8b111fb7!
Bad md5 hash for package https://pypi.python.org/packages/source/D/Django/Django-1.4.5.tar.gz#md5=851d00905eb70e4aa6384b
3b8b111fb7 (from https://pypi.python.org/simple/Django/)
Storing complete log in C:\Users\leonw_000\pip\pip.log
from python-tuf.
That is odd. pip thinks that Django-1.4.5.tar.gz
is only 31kB in size. If you drop by the lab tomorrow, I can take a closer look at it.
from python-tuf.
From what I saw, it looks like the tuf.util.TempFile.move function is not doing what it is supposed to do on Windows. @akonst, could you take a look at this?
from python-tuf.
@vladimir-v-diaz has fixed this with v0.7.5, where we switched from evpy to PyCrypto. Internal tests show that TUF works on Microsoft Windows 7-8 32/64 bit.
from python-tuf.
Related Issues (20)
- tests: remove obsolete test metadata HOT 1
- repository: redesign needed after recent verify_delegate changes
- build: Enable python 3.12 HOT 4
- investigate alternative hatchling version pinning HOT 2
- Consider including `securesystemslib[crypto]` as a dependency in TUF HOT 4
- VerificationResult should include keys for keyids HOT 4
- Replace most linting tools with ruff HOT 1
- repository: maybe provide a Repository.get_delegating_role() HOT 2
- Yearly maintainer permissions review HOT 1
- Change `securesystemslib.dsse.Envelope.signatures` to dict upstream HOT 2
- Test all components with DSSE
- Test "ruff check --output-format=github" HOT 2
- linting: Enable more ruff rulesets HOT 7
- linting: enable pycodestyle for tests
- datetime.utcnow() is deprecated: stop using it HOT 1
- SimpleEnvelope._DEFAULT_PAYLOAD_TYPE should be public? HOT 1
- should build job require prior test job to pass? HOT 3
- possible blog post: Caching TUF metadata HOT 3
- provide user-agent customization?
- workflows: macos runners are missing older pythons
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 python-tuf.