GithubHelp home page GithubHelp logo

Comments (9)

232824787 avatar 232824787 commented on May 18, 2024

reinstall python is ok

from yolo2-pytorch.

xmfbit avatar xmfbit commented on May 18, 2024

@232824787 Hi, I have run into the same problem. Could you share your solution with more detail? The error of mine is as following:

Traceback (most recent call last):
  File "detect.py", line 33, in <module>
    import pybenchmark
  File "/home/me/anaconda2/envs/pyyolo/lib/python3.5/site-packages/pybenchmark/__init__.py", line 1, in <module>
    from .profile import profile, stats, kpystones, pystones
  File "/home/me/anaconda2/envs/pyyolo/lib/python3.5/site-packages/pybenchmark/profile.py", line 3, in <module>
    from test import pystone            # native python-core "PYSTONE" Benchmark Program
ImportError: cannot import name 'pystone'

from yolo2-pytorch.

rosenfeldamir avatar rosenfeldamir commented on May 18, 2024

I ran into the same problem....

from yolo2-pytorch.

diggerdu avatar diggerdu commented on May 18, 2024

Quick Fix: You can checkout a copy of pystone.py from the cpython github repository and copy it to a test directory that is present in your PYTHONPATH. Or you would copy it to a test directory in your python project's root (ugly way).

Perhaps Anaconda Python does not ship with a copy of the test module. This is a standard part of Python 2.7. Other times, users accidentally overwrite their Python standard library's test module with something else. You can try to use the Python version that is shipped with OS X instead. If that fails as well, then try to see which test module is being loaded, and go from there.

from yolo2-pytorch.

xmfbit avatar xmfbit commented on May 18, 2024

@diggerdu Thanks for your kindness. I have solved the problem and forgot to write my solution down. My solution was just the same with your second solution and I indeed used Anaconda.

from yolo2-pytorch.

jacktkk avatar jacktkk commented on May 18, 2024

@xmfbit
hi~ sorry for bothering u
the pystone.py I found only match python2,
so can u tell me where I can find the proper file(pystone.py)?
best wishes!

from yolo2-pytorch.

diggerdu avatar diggerdu commented on May 18, 2024

@jacktkk
I post a gist

from yolo2-pytorch.

jacktkk avatar jacktkk commented on May 18, 2024

@diggerdu thx~

from yolo2-pytorch.

jacktkk avatar jacktkk commented on May 18, 2024

@diggerdu do you know how to fix the problem #8 ?

from yolo2-pytorch.

Related Issues (16)

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.