Code Monkey home page Code Monkey logo

bitglitter-python's People

Contributors

dgnsrekt avatar drunpy avatar markmichon1 avatar pratikpc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitglitter-python's Issues

I dont even know what to call this.

Uhh what is this error when running pip install bitglitter (latest version of pip as of 3/1/24)
C:\Users\Home>pip install bitglitter
Collecting bitglitter
Downloading BitGlitter-2.0.0-py3-none-any.whl.metadata (36 kB)
Collecting bitstring==3.1.9 (from bitglitter)
Downloading bitstring-3.1.9-py3-none-any.whl.metadata (3.5 kB)
Collecting cryptography==3.4.8 (from bitglitter)
Downloading cryptography-3.4.8-cp36-abi3-win_amd64.whl.metadata (5.1 kB)
Collecting opencv-python==4.5.3.56 (from bitglitter)
Downloading opencv-python-4.5.3.56.tar.gz (89.2 MB)
---------------------------------------- 89.2/89.2 MB 1.7 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> [118 lines of output]
Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
Collecting setuptools
Downloading setuptools-69.1.1-py3-none-any.whl.metadata (6.2 kB)
Collecting wheel
Downloading wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
Collecting scikit-build
Downloading scikit_build-0.17.6-py3-none-any.whl.metadata (14 kB)
Collecting cmake
Downloading cmake-3.28.3-py2.py3-none-win_amd64.whl.metadata (6.5 kB)
Collecting pip
Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Collecting numpy==1.19.3
Downloading numpy-1.19.3.zip (7.3 MB)
---------------------------------------- 7.3/7.3 MB 2.9 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\cli\req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\commands\install.py", line 377, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 397, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 182, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 290, in init
super().init(
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 156, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 222, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 301, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\operations\prepare.py", line 525, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\operations\prepare.py", line 640, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\operations\prepare.py", line 71, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\distributions\sdist.py", line 54, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\distributions\sdist.py", line 124, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\distributions\sdist.py", line 101, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_internal\utils\misc.py", line 745, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home\AppData\Local\Programs\Python\Python312\Lib\importlib_init
.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 994, in exec_module
File "", line 488, in call_with_frames_removed
File "C:\Users\Home\AppData\Local\Temp\pip-build-env-30jbfku6\overlay\Lib\site-packages\setuptools_init
.py", line 18, in
from setuptools.extern.six import PY3, string_types
ModuleNotFoundError: No module named 'setuptools.extern.six'

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I keep getting this error. Help!



>>> write("Untitled.png")
21:28:43.888 INFO Verifying write parameters...
21:28:43.888 INFO 84.72% of the frame for initial header is allocated for frame payload (higher is better)
21:28:43.888 INFO 20992 B, or 97.17% of subsequent frames is allocated for frame payload (higher is better)
21:28:43.888 INFO As a video, it will effectively be transporting 78720 B/sec of data.
21:28:43.888 INFO Minimum geometry requirements met.
21:28:43.888 INFO Write parameters validated.
21:28:43.888 INFO Preprocess initializing...
21:28:43.889 INFO Preparing files for packaging...
21:28:43.893 INFO Packaging files...
21:28:44.005 INFO Packaging complete.
21:28:44.005 INFO Compressing package...
21:28:44.015 INFO Compression complete.
21:28:44.016 INFO SHA-256: 4f0c214d46c48b861a3570cd821a0c5129c616481d974078cd0055925fb87362
21:28:44.016 INFO Skipping encryption.
21:28:44.016 INFO Package size: 61764B
21:28:44.016 INFO Preprocess complete.
21:28:44.028 INFO 24 frame(s) required for this operation.
21:28:44.029 INFO Rendering frame 1 of 24 ...
21:28:44.676 INFO Rendering frame 2 of 24 ...
21:28:45.237 INFO Rendering frame 3 of 24 ...
21:28:45.741 INFO Rendering frame 4 of 24 ...
21:28:46.052 INFO Rendering frame 5 of 24 ...
21:28:46.376 INFO Rendering frame 6 of 24 ...
21:28:46.683 INFO Rendering frame 7 of 24 ...
21:28:46.994 INFO Rendering frame 8 of 24 ...
21:28:47.295 INFO Rendering frame 9 of 24 ...
21:28:47.594 INFO Rendering frame 10 of 24 ...
21:28:47.899 INFO Rendering frame 11 of 24 ...
21:28:48.222 INFO Rendering frame 12 of 24 ...
21:28:48.528 INFO Rendering frame 13 of 24 ...
21:28:48.896 INFO Rendering frame 14 of 24 ...
21:28:49.226 INFO Rendering frame 15 of 24 ...
21:28:49.554 INFO Rendering frame 16 of 24 ...
21:28:49.885 INFO Rendering frame 17 of 24 ...
21:28:50.199 INFO Rendering frame 18 of 24 ...
21:28:50.510 INFO Rendering frame 19 of 24 ...
21:28:50.835 INFO Rendering frame 20 of 24 ...
21:28:51.140 INFO Rendering frame 21 of 24 ...
21:28:51.453 INFO Rendering frame 22 of 24 ...
21:28:51.753 INFO Rendering frame 23 of 24 ...
21:28:52.098 INFO Rendering frame 24 of 24 ...
21:28:52.407 INFO Rendering video...
21:28:52.408 INFO 2019-05-30 21-28-44.mp4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\bitglitter\write\write.py", line 70, in write
    framesPerSecond, activePath, preProcess.passThrough)
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\bitglitter\write\renderhandler.py", line 76, in __init__
    self.streamName, self.streamDescription, self.postEncryptionHash)
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\bitglitter\protocols\protocol_one\write\protocol_one_renderlogic.py", line 126, in beginSessionProcess
    self.framesPerSecond)
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\bitglitter\write\rendervideo.py", line 15, in renderVideo
    .output(f'{videoOutputPath}{time.strftime("%Y-%m-%d %H-%M-%S", time.localtime(dateCreated))}.mp4')
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\ffmpeg\_run.py", line 300, in run
    overwrite_output=overwrite_output,
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\site-packages\ffmpeg\_run.py", line 272, in run_async
    args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream)
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
>>> 

AttributeError when running bitglitter as an installed command.

After installing bitglitter as an editable package I attempted to run it like so.

$ bitglitter

Output:

Traceback (most recent call last):
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2451, in resolve
    return functools.reduce(getattr, self.attrs, module)
AttributeError: module 'bitglitter.__main__' has no attribute 'cli'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/bin/bitglitter", line 11, in <module>
    load_entry_point('BitGlitter', 'console_scripts', 'bitglitter')()
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2453, in resolve
    raise ImportError(str(exc))
ImportError: module 'bitglitter.__main__' has no attribute 'cli'

CLI issue on windows

I have an error when trying CLI
No module named bitglitter.__main__; 'bitglitter' is a package and cannot be directly executed

Error when installing with the local setup.py in a virtual environment.

After cloning the repository and attempting to install it in a virtual environment by running the following command.

$ pipenv run pip3 install -e .

The following error is raised.

Obtaining file:///home/dgnsrekt/dev/python/BitGlitter
    ERROR: Command errored out with exit status 1:
     command: /home/dgnsrekt/.local/share/virtualenvs/BitGlitter-h2UJ9Cja/bin/python3.7m -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/dgnsrekt/dev/python/BitGlitter/setup.py'"'"'; __file__='"'"'/home/dgnsrekt/dev/python/BitGlitter/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /home/dgnsrekt/dev/python/BitGlitter/
    Complete output (1 lines):
    error in BitGlitter setup command: ('Invalid group name', 'console scripts')
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Issues with Linux

@reillykw mentioned in another thread:

Is this linux compatible? I've got ffmpeg, having issues encoding data.

Another Linux user I've been speaking to didn't have this issue, but had another regarding temporary frames not being deleted during read(). They were all accumulating in the folder, rather than only one being in the folder at any given time and then being deleted.
Relevant lines of code:
https://github.com/MarkMichon1/BitGlitter/blob/staging/bitglitter/read/fileslicer.py#L61
https://github.com/MarkMichon1/BitGlitter/blob/staging/bitglitter/read/videoframepuller.py#L30

It seems to be an issue with os, which I found pretty surprising. If that isn't the case, perhaps the problem is simply the result of incorrect permissions for the file.

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.