Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. #24

Closed
MaanasPeri23 opened this issue Jul 1, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@MaanasPeri23
Copy link

MaanasPeri23 commented Jul 1, 2021

Describe the bug
A clear and concise description of what the bug is.

Not able to install ibeam

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Once I open up my terminal and type in 'pip install ibeam' after successfully running 'docker pull voyz/ibeam' I get this issue:

ERROR: Command errored out with exit status 1:
command: /Users/maanasperi/opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/setup.py'"'"'; file='"'"'/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-pip-egg-info-5_zlsoap
cwd: /private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/
Complete output (17 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/setup.py", line 5, in
import ibeam
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/ibeam/init.py", line 3, in
config.initialize()
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/ibeam/config.py", line 15, in initialize
logs.initialize()
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/ibeam/src/logs.py", line 26, in initialize
file_handler = DailyRotatingFileHandler(os.path.join(var.OUTPUTS_DIR, 'ibeam_log'))
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/ibeam/src/logs.py", line 43, in init
super().init(*args, **kwargs)
File "/Users/maanasperi/opt/anaconda3/lib/python3.8/logging/init.py", line 1143, in init
StreamHandler.init(self, self._open())
File "/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/ibeam/src/logs.py", line 53, in _open
return open(self.get_filename(self.timestamp), self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/qy/nns7ytvd43gdkj25fgtxrlkc0000gn/T/pip-install-q2pd_a5o/ibeam/outputs/ibeam_log__2021-07-01.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

FYI: I'm running this on my MacBook Pro M1 ~ Apple Silicon Chip, so maybe the Docker Version for the M1 may have something to do with this?

Expected behavior
A clear and concise description of what you expected to happen.

Environment
IBeam version:
Docker image or standalone:
Python version (standalone users only):
OS:

Additional context
Add any other context about the problem here.

Suggest a Fix
If you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit).

@MaanasPeri23 MaanasPeri23 added the bug Something isn't working label Jul 1, 2021
@Voyz
Copy link
Owner

Voyz commented Jul 2, 2021

Hi @MaanasPeri23 thanks for reporting the issue and welcome to IBeam 👋

Interesting, thank you for this issue, as you've highlighted one error in my design - that the logs are being initialised when IBeam is built during a pip install. I should be able to fix it.

I notice that you both pull the image and do a pip install - is there any particular reason for you doing it this way? You can just pull the image and run it in a containerised environment, no need to pip install unless you'd like to run IBeam as standalone.

Also, note that M1 chip is built in the ARM architecture, which makes the default IBeam Docker image not work. I've attempted to create an ARM image in the past upon one such request from another user, but I wasn't successful in either testing it or running it. Feel free to look at it if you'd like to pick it up: #17

@Voyz Voyz self-assigned this Jul 2, 2021
@RunTrade-io
Copy link

Hey @Voyz just wondering if there is a workaround/fix to this issue?

I get the same error when I try to pip install

$ sudo pip install ibeam
Collecting ibeam
Downloading ibeam-0.3.0.tar.gz (23 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sj20m_gh/ibeam/setup.py'"'"'; file='"'"'/tmp/pip-install-sj20m_gh/ibeam/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-sj20m_gh/ibeam/pip-egg-info
cwd: /tmp/pip-install-sj20m_gh/ibeam/
Complete output (17 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-sj20m_gh/ibeam/setup.py", line 5, in
import ibeam
File "/tmp/pip-install-sj20m_gh/ibeam/ibeam/init.py", line 3, in
config.initialize()
File "/tmp/pip-install-sj20m_gh/ibeam/ibeam/config.py", line 15, in initialize
logs.initialize()
File "/tmp/pip-install-sj20m_gh/ibeam/ibeam/src/logs.py", line 26, in initialize
file_handler = DailyRotatingFileHandler(os.path.join(var.OUTPUTS_DIR, 'ibeam_log'))
File "/tmp/pip-install-sj20m_gh/ibeam/ibeam/src/logs.py", line 43, in init
super().init(*args, **kwargs)
File "/usr/lib/python3.8/logging/init.py", line 1147, in init
StreamHandler.init(self, self._open())
File "/tmp/pip-install-sj20m_gh/ibeam/ibeam/src/logs.py", line 53, in _open
return open(self.get_filename(self.timestamp), self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-sj20m_gh/ibeam/outputs/ibeam_log__2021-10-26.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@Voyz
Copy link
Owner

Voyz commented Oct 26, 2021

Hey @chriswweber the most recent release candidate 0.4.0-rc2 should have this issue fix, feel free to give it a shot:

docker pull voyz/ibeam:0.4.0-rc2

@MaanasPeri23
Copy link
Author

MaanasPeri23 commented Nov 2, 2021

Hey @Voyz just wanted to try the Standalone method since my docker wasn't working -- due to the 2FA issue I posted here:

Were you able to fix the pip3 install ibeam error I was having earlier - the issue is still persisting

Thank You!!

@Voyz
Copy link
Owner

Voyz commented Nov 3, 2021

@chriswweber @MaanasPeri23 sorry, my bad - you're trying to work with standalone and I've been sharing the Docker image. Please use the following to install the 0.4.0-rc2 standalone:

pip install ibeam==0.4.0rc2

https://pypi.org/project/ibeam/0.4.0rc2/

Let me know if that solves the install issue 👍

@Voyz
Copy link
Owner

Voyz commented Apr 7, 2022

Closing this as v0.4.0 just got released which should fix this issue. Feel free to open a new issue if you'd like to continue the discussion 👍 Thank you for participating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants