Giter Club home page Giter Club logo

Comments (8)

trishankkarthik avatar trishankkarthik commented on May 24, 2024

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.

JustinCappos avatar JustinCappos commented on May 24, 2024

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.

leonwlaw avatar leonwlaw commented on May 24, 2024

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.

trishankkarthik avatar trishankkarthik commented on May 24, 2024

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.

leonwlaw avatar leonwlaw commented on May 24, 2024

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.

trishankkarthik avatar trishankkarthik commented on May 24, 2024

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.

trishankkarthik avatar trishankkarthik commented on May 24, 2024

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.

trishankkarthik avatar trishankkarthik commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.