Melissa-AI / Melissa-Core

A lovely virtual assistant for OS X, Windows and Linux systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup.py egg_info failed with error code 1

asleniovas opened this issue · comments

Hi everyone,

Hope all is well. Whilst running pip install -r requirements.txt on my RPi 3 I stumble upon the below error:

Command python setup.py egg.info failed with error code 1 in /tmp/pip-build-XJsUjk/pygame

Also, before the installation stops with the above I am getting this:

WARNING: "sdl-config" failed!

Unable to run "sdl-config". Please make sure a development version of SDL is installed.

I am quite new to RPi and Linux, therefore can't figure out what is going wrong. Any suggestions/help will be much appreciated!

Is it only for this program?

Can you try what suggested here http://stackoverflow.com/a/36025294

E: and here http://askubuntu.com/a/312779 (this second link is what I believe the cause of your problem)

Hello again,

@rachmadaniHaryono thank you for your suggestion. It seem to have worked to an extent... I am now getting the following error:

` WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...

Hunting dependencies...
SDL     : found 1.2.15
FONT    : found
IMAGE   : found
MIXER   : found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: found
PORTTIME: found
FREETYPE: found 2.6.0

If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.


Continuing With "setup.py"
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/tmp/pip-build-EyqfSX/pygame/setup.py", line 294, in <module>
    write_version_module(METADATA['version'], revision)
  File "/tmp/pip-build-EyqfSX/pygame/setup.py", line 286, in write_version_module
    with open('version.py.in', 'r') as header_file:
IOError: [Errno 2] No such file or directory: 'version.py.in'
Complete output from command python setup.py egg_info:




WARNING, No "Setup" File Exists, Running "config.py"

Using UNIX configuration...





Hunting dependencies...

SDL     : found 1.2.15

FONT    : found

IMAGE   : found

MIXER   : found

PNG     : found

JPEG    : found

SCRAP   : found

PORTMIDI: found

PORTTIME: found

FREETYPE: found 2.6.0



If you get compiler errors during install, doublecheck

the compiler flags in the "Setup" file.





Continuing With "setup.py"

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip-build-EyqfSX/pygame/setup.py", line 294, in <module>

write_version_module(METADATA['version'], revision)

File "/tmp/pip-build-EyqfSX/pygame/setup.py", line 286, in write_version_module

with open('version.py.in', 'r') as header_file:

IOError: [Errno 2] No such file or directory: 'version.py.in'

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-EyqfSX/pygame
Storing debug log for failure in /home/pi/.pip/pip.log
`

Can't find the specific error, but can you try http://stackoverflow.com/a/19875416

Is your problem resolved now @asleniovas?

@tanay1337 I think I'm almost there! I have followed @rachmadaniHaryono advice and successfully installed pygame with "hg". Requirements.txt was running well until this:

 `Found existing installation: six 1.8.0
 Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
 Can't roll back six; was not uninstalled
 Cleaning up...
 Exception:
   Traceback (most recent call last):
 File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
   status = self.run(options, args)
 File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
   requirement_set.install(install_options, global_options, root=options.root_path)
 File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
  requirement.install(install_options, global_options, *args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
  self.move_wheel_files(self.source_dir, root=root)
 File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
   pycompile=self.pycompile,
 File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_files
   clobber(source, lib_dir, True)
 File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 208, in clobber
   shutil.copy2(srcfile, destfile)
 File "/usr/lib/python2.7/shutil.py", line 130, in copy2
   copyfile(src, dst)
 File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
   with open(dst, 'wb') as fdst:
 IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/six.pyc'

Storing debug log for failure in /home/pi/.pip/pip.log`

From my previous errors I've understood that I'm lacking the needed software on my system. Is it something to do with "wheel" needing to be installed? Sorry for all the questions and many thanks for being patient with me guys!

from the error itself, it seem you may need to use sudo. but i'm not quite familiar with raspberry pi system and not quite sure if sudo is required in installation.

@tanay1337, @rachmadaniHaryono Hello, no luck unfortunately... I don't understand what exactly I should be installing, is it "wheel" or something else?

Seems like six is not being installed in your system. Can you try installing it separately using sudo pip install six? @asleniovas

Are you still having problems with installation @asleniovas? If yes, please re-open this issue and we will assist you.