Coder Social home page Coder Social logo

itam's People

Contributors

jidong9527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

itam's Issues

ModuleNotFoundError: No module named 'share'

請問執行後發生 no module named 'share' 該怎麼處理?

我安裝的步驟如下

安裝套件

(.ve) 2018-11-16 15:36:14 [mini@s055 itam]$ pip install -r requirements.txt 
Collecting Django==1.8.17 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/0a/df/5ac011953ca547a1fb602e3e5c96a4cb94f7333e8f27b13d51dca880a110/Django-1.8.17-py2.py3-none-any.whl (6.2MB)
    100% |████████████████████████████████| 6.2MB 194kB/s 
Collecting IPy==0.83 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/88/28/79162bfc351a3f1ab44d663ab3f03fb495806fdb592170990a1568ffbf63/IPy-0.83.tar.gz
Collecting olefile==0.44 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip (74kB)
    100% |████████████████████████████████| 81kB 8.6MB/s 
Collecting Pillow==4.2.0 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/be/6e/5084627fee802fa6a13741ff988e34f2d2ee25e8a6a276b4832f278c5654/Pillow-4.2.0-cp36-cp36m-manylinux1_x86_64.whl (5.8MB)
    100% |████████████████████████████████| 5.8MB 269kB/s 
Requirement already satisfied: pkg-resources==0.0.0 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 5))
Collecting pytz==2017.2 (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/55/62/e7cd0e15b76062d298413f14bb4ec3cd8568a22d274427f9c3c7286969f4/pytz-2017.2-py2.py3-none-any.whl (484kB)
    100% |████████████████████████████████| 491kB 2.4MB/s 
Building wheels for collected packages: IPy, olefile
  Running setup.py bdist_wheel for IPy ... error
  Complete output from command /home/mini/git/itam/.ve/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mve0q8f4/IPy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp7q7xw17fpip-wheel- --python-tag cp36:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  Failed building wheel for IPy
  Running setup.py clean for IPy
  Running setup.py bdist_wheel for olefile ... error
  Complete output from command /home/mini/git/itam/.ve/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mve0q8f4/olefile/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpy4iqz8tdpip-wheel- --python-tag cp36:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  Failed building wheel for olefile
  Running setup.py clean for olefile
Failed to build IPy olefile
Installing collected packages: Django, IPy, olefile, Pillow, pytz
  Running setup.py install for IPy ... done
  Running setup.py install for olefile ... done
Successfully installed Django-1.8.17 IPy-0.83 Pillow-4.2.0 olefile-0.44 pytz-2017.2
(.ve) 2018-11-16 15:36:33 [mini@s055 itam]$ pip install -r requirements.txt 
Requirement already satisfied: Django==1.8.17 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: IPy==0.83 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied: olefile==0.44 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied: Pillow==4.2.0 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied: pkg-resources==0.0.0 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 5))
Requirement already satisfied: pytz==2017.2 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 6))
(.ve) 2018-11-16 15:36:42 [mini@s055 itam]$ python -V
Python 3.6.5

執行後發生錯誤

(.ve) 2018-11-16 15:37:04 [mini@s055 itam]$ python manage.py 
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/mini/git/itam/.ve/lib/python3.6/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/home/mini/git/itam/.ve/lib/python3.6/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/home/mini/git/itam/.ve/lib/python3.6/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/mini/git/itam/.ve/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/home/mini/git/itam/.ve/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/mini/git/itam/iasset/models.py", line 9, in <module>
    from share import ASSET_TYPE_CHOICES
ModuleNotFoundError: No module named 'share'

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.