question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting an error when setting up a new project

See original GitHub issue
Traceback (most recent call last):
  File "/Users/captain/PycharmProjects/a8/.venv/bin/cookiecutter", line 11, in <module>
    sys.exit(main())
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/cookiecutter/cli.py", line 123, in main
    default_config=default_config,
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/cookiecutter/main.py", line 91, in cookiecutter
    output_dir=output_dir
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/cookiecutter/generate.py", line 349, in generate_files
    generate_file(project_dir, infile, context, env)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/cookiecutter/generate.py", line 153, in generate_file
    if is_binary(infile):
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/binaryornot/check.py", line 25, in is_binary
    return is_binary_string(chunk)
  File "/Users/captain/PycharmProjects/a8/.venv/lib/python3.5/site-packages/binaryornot/helpers.py", line 96, in is_binary_string
    if (detected_encoding['confidence'] > 0.9
TypeError: 'NoneType' object is not subscriptable

OS: OSX Python 3.5.3 (default, Jan 26 2017, 13:12:44) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pydannycommented, Apr 12, 2017

@hackebrot No, we don’t generate the PyCharm files in CI. If one of the PyCharm staff wants to submit a PR for it, that would be awesome.

ping @pauleveritt

1reaction
luzfcbcommented, Apr 12, 2017

@plus500s chardet released new version yesterday. a very large changes in the code base.: https://github.com/chardet/chardet/compare/2.3.0...3.0.1

try install a old version of chardet:

pip install "chardet<3.0.0"

And see if the error occur again …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting an error while creating a new project in VS2019
Developer Community · Open a developer command prompt for your VS 2019 install · Type vsregedit read local HKCU NewProjectDialog\ ...
Read more >
Microsoft Project 2013 Setup Error
I am trying to install Microsoft Project 2013 on my computer but I keep getting a setup error about 1/3 of the way...
Read more >
I get this error when i create a new project in android studio
when I create a new project in android studio I get this error in constraint layout: enter image description here and I can...
Read more >
Error when trying to create new project. · Issue #10160 - GitHub
Steps to reproduce the problem. Select "Project">"New Project". Describe the problem in detail. I get the following error:.
Read more >
Keep Getting an error when starting a new project - C++
Discovering modules, targets and source code for project… ERROR: Could not find NetFxSDK install dir; this will prevent SwarmInterface from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found