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

Compilation failed: PROJECTLIBDEPS_DIR should be PROJECT_LIBDEPS_DIR #62

Open
woutput opened this issue May 2, 2020 · 0 comments
Open

Comments

@woutput
Copy link
Contributor

woutput commented May 2, 2020

Hi @puuu thank you for this great project.
I'm working on a new protocol for my 433 MHz doorbell. I want to use an ESP8266 running MQTT433gateway to test my new protocol.
When I tried to manually compile the (unmodified) source code, I ran into this error message:

...
|-- <SystemTools>
|-- <WifiManager> 0.15.0
|   |-- <DNSServer> 1.1.1
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WebServer> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
Building in release mode
KeyError: 'PROJECTLIBDEPS_DIR':
  File "/home/pi/.platformio/penv/lib/python3.7/site-packages/platformio/builder/main.py", line 164:
    env.SConscript(item, exports="env")
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/pi/adding_doorbell/original_MQTT433gateway/MQTT433gateway/scripts/fw_version.py", line 53:
    generate_file()
  File "/home/pi/adding_doorbell/original_MQTT433gateway/MQTT433gateway/scripts/fw_version.py", line 50:
    build_with=escape_string(get_dependencies_json())))
  File "/home/pi/adding_doorbell/original_MQTT433gateway/MQTT433gateway/scripts/fw_version.py", line 40:
    return json.dumps(get_dependencies(), separators=(',', ':'), sort_keys=True)
  File "/home/pi/adding_doorbell/original_MQTT433gateway/MQTT433gateway/scripts/fw_version.py", line 30:
    lib_storage = os.path.join(env['PROJECTLIBDEPS_DIR'], env['PIOENV'])
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 405:
    return self._dict[key]
============================================================ [FAILED] Took 254.97 seconds ==============

Environment    Status    Duration
-------------  --------  ------------
esp12e         FAILED    00:04:14.975
esp12e_160     IGNORED
nodemcu        IGNORED
nodemcuv2      IGNORED
d1_mini        IGNORED
huzzah         IGNORED
======================================================= 1 failed, 0 succeeded in 00:04:14.975 ==========

I also found this rjwats/esp8266-react#56
so I just tried to change PROJECTLIBDEPS_DIR to PROJECT_LIBDEPS_DIR on line 30 of ./scripts/fw_version.py and that worked:

Building .pio/build/esp12e/firmware.bin
Creating BIN file ".pio/build/esp12e/firmware.bin" using ".pio/build/esp12e/firmware.elf"
Retrieving maximum program size .pio/build/esp12e/firmware.elf
Checking size .pio/build/esp12e/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=====     ]  54.2% (used 44428 bytes from 81920 bytes)
Flash: [=====     ]  49.9% (used 520785 bytes from 1044464 bytes)
==================================== [SUCCESS] Took 2400.67 seconds ====================================

Environment    Status    Duration
-------------  --------  ------------
esp12e         SUCCESS   00:40:00.673
esp12e_160     IGNORED
nodemcu        IGNORED
nodemcuv2      IGNORED
d1_mini        IGNORED
huzzah         IGNORED
===================================== 1 succeeded in 00:40:00.673 =====================================

I use these:

platformio --version
PlatformIO, version 4.3.3
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
uname -a
Linux domotica 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux

I didn't want to create a pull request yet, since I expect that is was running without problems using "PROJECTLIBDEPS_DIR" in your configuration.

What do you think?

Kind regards,
woutput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant